Closed mjohnson324 closed 6 years ago
Closing, because this sounds like it has to do with your environment, not the gem, but if you post your Geocoder.configure
block I might be able to suggest something. Are you using an API key and a paid Google API account? (This is required as of a few months ago.)
Thank you for the response. I don't have an API key, and until yesterday I hadn't set up a paid account on Google Maps. I don't intend for the site to be anything beyond a demo so I'll need to evaluate whether to stick with Google Maps.
got it working smoothly once keys and billing were set up, and the keys are encrypted.
Also just wanted to say this is an amazing project that's saved me a lot of time. Seriously, thank you.
Came here because of the same problem. Maybe information about Google now requiring billing etc. should be added to the readme for a while?
Recently I've been seeing "Google API error: over query limit." a lot. With only a few exceptions I raise this error in my rails app regardless of the number of queries that have already been fired and I don't know how to fix this.
Context
The app simulates ZocDoc and can be used to search for doctors. Fake doctors are added via seeding for demoing the app. Part of this involves geocoding their addresses via the following lines in the Doctor model:
Expected behavior
I run this line and expect geocoding to be successful:
Actual behavior
With few exceptions I instead raise 'Google API error: over query limit.'
Steps to reproduce
Geocode an object. I also get the same error if I attempt something like this in the rails console:
That's just an example of how I tried manually geocoding one doctor afterwards, and how I was updating doctors when I encountered the same error because of rate limits. The update failed due to the error but the commit was successful.
Environment info