Rails geocoder - Google Geocoding API error: query overrun - PRODUCTION ONLY

geocodergem stopped working exclusively in the production environment. It works perfectly and, as expected, in development.

I'm on Ubuntu 16.04 using ruby ​​2.3.1 and rails 4.2.6

When I run ModelName.near ("zip_code", "radius") in development from rails console, I return the corresponding lines as expected. When I run the same command on the server, it returnsGoogle Geocoding API error: over query limit.

UPDATE

latand longnot stored in the working environment, but stored in the design process.

+4
source share
1 answer

. google goi config/initializers/geocoder.rb .

0

Source: https://habr.com/ru/post/1679384/


All Articles