Configure Geocoder with API key as required by Google

This commit is contained in:
Maikel Linke
2018-10-16 16:49:52 +11:00
parent 61797fff56
commit 8fb81bb6a7

View 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)
)