mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
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.
8 lines
226 B
Ruby
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)
|
|
)
|