geocoder: Geocoder raises "Google API error: over query limit." error if non-valid address is entered
With the following settings: Geocoder.configure(always_raise: :all)
Expected behavior
When attempting to geocode invalid input via the Google API, it should raise a Geocoder::InvalidRequest
(or similar) error – or, return nil
, as is the default behavior when the above config is unset.
Actual behavior
When attempting to geocode invalid input via the Google API, it raises a Google API error: over query limit.
error.
Steps to reproduce
Geocoder.coordinates("alksdjf")
produces a Google API error: over query limit.
error.
Geocoder.coordinates("25 Main St, Cooperstown, NY")
behaves as expected.
Environment info
- Geocoder version: 1.4.7
- Rails version: 5.1.4
- Ruby version: 2.5
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (5 by maintainers)
Hi! I’m in the same boat. Our Google account is unlimited, so I don’t think we’re going over. I checked the Google console and didn’t see so much activity that we would be going over the per-second query limit.
I have specified the API key in config but still getting over query limit error. Anyone still facing the issue?
@alexreisner I’ve been getting
over query limit
errors more frequently since posting the issue, regardless of thealways_raise
settings. I’m wondering if they are related to the upcoming changes to the Google Maps APII have the same issue. Any address returns nil.