I'm trying to debug a "too many queries" error I'm getting in my rails app. It appears that the rate limit is being surpassed. I'm trying to locate where the app is providing a Google Geocoding service API key but I don't see it anywhere. I understand that you can optionally create a geokit config file in config/initializers/geokit_config.rb
and provide an API key there. However, this project has no such geokit config file.
Does the geokit library use a default Google Geocoding service API key that is hardcoded in the library if there is no geokit_config.rb
file present in the app? Stated another way, is it completely optional to provide a Google geocoding API key to use the geokit library with its included google geocoding service functionality?
Thanks for any help.
I'm the maintainer of geokit. Yes, you can use it without a key, though I personally feel it would be unwise to do so in production.
But it is nice for "trying" the gem, though you'll hit your limit very quickly (you might even get that error straight away depending on how google limit, e.g. by IP)
See the README to easily set this:
# See https://developers.google.com/maps/documentation/geocoding/#api_key
Geokit::Geocoders::GoogleGeocoder.api_key = ''