Question

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

Était-ce utile?

La solution

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)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top