3 ms·
I don't know much about the Google Maps API, and this may sound obvious, but could you use caching to help you drastically reduce requests? I imagine many diffe
by csallen 10y ago
I don't know much about the Google Maps API, and this may sound obvious, but could you use caching to help you drastically reduce requests? I imagine many different visitors are making the exact same requests.
Also, are most of your requests coming from unique users, or do you see lots of users making repeated requests over and over? Maybe you could limit the number of requests for a single user. It sucks for them, but it allows you to implement a cap and affect the least number of people possible.
Are there any features of your product you can offload to other services? For example you mentioned directions -- why not link to Google Maps itself and let them handle that? (This might not be an applicable solution because I haven't studied your product to see how it works, but you get the gist.)
Is your code written modularly? Ideally you won't have to port all your code at once in some gigantic all-or-nothing rewrite. You can simply move one component of your code at a time to a free or open-source alternative to Google Maps. This could reduce your burden chunk-by-chunk over time until it's manageable.
Another avenue is to increase your revenue. Easier said than done, I know, but perhaps you could request payment/donations from users, or at least for repeat users. Or maybe you could reach out to the conferences on your site and see if they'll sponsor you.
Finally, I don't know anyone at Google, but it can't hurt for you to try to look up the right people and send some emails. I'd start with their developer advocates. This is a shameless plug, but I started a forum on my site (https://IndieHackers.com https://IndieHackers.com) recently as a place for founders to help each other out with problems just such as these. Can't hurt to post there and see if anyone has advice or connections at Google.
Good luck, sounds like a tough position to be in! (By the way, your site is awesome and it'd be very cool to interview you for Indie Hackers.)
- hamhamed 10y agoHey Courtland - u make some good points let me address some of your points: 1- Caching won't help. It seems I'm being limited on just "map loads", up to 25k https://developers.google.com/maps/pricing-and-plans/#details https://developers.google.com/maps/pricing-and-plans/#detail... After that I'm billed $0.50 per 1000 requests, and that's still a lot since we have around 200k loads a day (plus not to mention we're growing like crazy expecting to triple that amount by the end of this year). And the costs is just too damn high for us because our widget is like an ad impression..it doesn't always convert and requires lots of loads. 2- If I go OSM, or Bing maps, I might as well do the rest because I'd be spending more time trying to connect the services together. It wasn't meant to be changed or scaled.. I remember IndieHackers when it was launched here in HN, very good reads. I'll give it a try, thanks man!
- nfriedly 10y agoI'd suggest looking at caching a bit harder - could you take an (automated) screenshot of the map, load that initially, and then only actually load the map when the user began interacting with it? If this worked, it would probably load faster too ;)