문제

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

도움이 되었습니까?

해결책

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)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top