3 ms·
Oh boy that's going to be hefty bill for the street view API, isn't it? 300 people * 12 votes/min -> 3600 street view events/min 3600 events/min * $0.002/even
by hobofan 1y ago
Oh boy that's going to be hefty bill for the street view API, isn't it?
300 people * 12 votes/min -> 3600 street view events/min
3600 events/min * $0.002/event -> $7.2/min (at current usage)
- higgins 1y agohe cached the planet
- nosrepa 1y agoCACHE THE PLANET!
- Boogie_Man 1y ago1. Query the server for the URL 2. Use JavaScript to publish it to the webpage in an iframe 3. ???? 4. Profit You know our boy Neil isn't paying for shit lmao he's a real one
- caseyy 1y agoA clever trick would be to cache all options in the 8-second voting window and then blast them out to the clients. By the time the vote concludes, the clients would already have the image of the next step, and the server would have had 8 seconds to send that to 400+ people. Plus, only a few maps API calls. Though I'm not sure the StreetView API allows caching. Having worked with maps APIs in the past, I know they often don't allow it.
- moron4hire 1y agoIt is not clear what, exactly, they consider caching. There are caches everywhere, some of them practically outside of my application's control. Are those a violation of the ToS? Ask the ToS says is "caching". They also have to catch you, first.
- jdranczewski 1y agoI'm late to the thread, but Neal actually uses the embed API here, which is free with no limits. The website has two Street View iframes, and it fades between them when the new pano is loaded. Pretty funny way to avoid a hilariously large bill!