ggmap icon indicating copy to clipboard operation
ggmap copied to clipboard

Change in Google Geocoding API billing

Open isteves opened this issue 7 years ago • 3 comments

Hi there! I just came across this as I was trying to figure out why mutate_geocode wasn't working for me: https://developers.google.com/maps/documentation/geocoding/usage-and-billing

All Google Maps Platform API requests must include an API key; we no longer support keyless access.

I'm not clear how you dealt with cases without an API key before, but I imagine this change may require some changes with error messaging/etc. Happy to take a deeper look into it if needed.

isteves avatar Aug 09 '18 05:08 isteves

The free, keyless tier of the API no longer exists as such; now you have to use a key and Google gives you a $200/month credit. The client and signature parameters currently allow authentication, though googleway::google_places's approach of just a key parameter is a bit simpler.

geocode probably needs to be updated, but the function API will need to change a little, so the maintainers will need to decide what it should look like.

alistaire47 avatar Aug 11 '18 15:08 alistaire47

When I define a key using register_google, I find mutate_geocode works great.

But I'm still limited to 2500 queries a day, even though billing is setup on my API to allow for more.

Is there a workaround for this? Apologies if I'm missing something obvious.

wnpr avatar Sep 01 '18 17:09 wnpr

There is a day_limit parameter in the function that should allow you increase the number of requests you can make per day.

When I use the geocode API provided by google I get a 100% fail rate with all requests returning "Over Query Limit" errors. I'm pretty sure i'm using the geocode API key. What am I doing wrong?

library(ggmap) register_google(key = 'MyApiKey') Locations <- geocode(Mylocations, output= "latlon")

collinschwantes avatar Sep 15 '18 20:09 collinschwantes