mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
The timeout default was 3 before, this changes it to 6. I presume these timeouts could happen in production too.
10 lines
335 B
Ruby
10 lines
335 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(
|
|
timeout: ENV.fetch('GEOCODER_TIMEOUT', 6).to_i,
|
|
lookup: ENV.fetch('GEOCODER_SERVICE', :google).to_sym,
|
|
use_https: true,
|
|
api_key: ENV.fetch('GEOCODER_API_KEY', ENV["GOOGLE_MAPS_API_KEY"])
|
|
)
|