Files
openfoodnetwork/config/initializers/geocoder.rb
Matt-Yorkley 847a349a6b Fix geocoding in Rails 4 🎉
Responsibility for geocoding has moved from the `gmaps4rails` gem using `acts_as_taggable`, to the `geocoding` gem using `geocoded_by`. We already use this in the Address model.
2020-02-29 13:08:06 +01:00

8 lines
226 B
Ruby

# Google requires an API key with a billing account to use their API.
# The key is stored in config/application.yml.
Geocoder.configure(
lookup: :google,
use_https: true,
api_key: ENV.fetch('GOOGLE_MAPS_API_KEY', nil)
)