1.8.4" It was working at the beginning but then started raising this error Geokit::..." /> 1.8.4" It was working at the beginning but then started raising this error Geokit::..." /> 1.8.4" It was working at the beginning but then started raising this error Geokit::..."/>

Rails Geokit Too Many Queries Error

1.1k Views Asked by At

I was trying to do a little app to test the gem "geokit", "~> 1.8.4"

It was working at the beginning but then started raising this error

Geokit::Geocoders::TooManyQueriesError

at most I did 100 queries with this line of code

suggested_bounds = Geokit::Geocoders::GoogleGeocoder.geocode(params[:location])

Can anyone help me

Thank you

1

There are 1 best solutions below

2
On BEST ANSWER

Google has a limit of 2,500 requests per 24 hour period.

I think they also restrict it if you do too many in a short like (like many within a second).

Are you doing that many in a short period (e.g. many in a second)