mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Configure Geocoder with API key as required by Google
This commit is contained in:
6
config/initializers/geocoder.rb
Normal file
6
config/initializers/geocoder.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
# Google requires an API key with a billing account to use their API.
|
||||
# The key is stored in config/application.yml.
|
||||
Geocoder.configure(
|
||||
use_https: true,
|
||||
api_key: ENV.fetch('GOOGLE_MAPS_API_KEY', nil)
|
||||
)
|
||||
Reference in New Issue
Block a user