Skip to content

Commit

Permalink
add google maps api key
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-wood committed Nov 11, 2018
1 parent c1bc129 commit a0e9f35
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -29,7 +29,6 @@ rerun.txt
pickle-email-*.html
config/initializers/secret_token.rb
config/secrets.yml
geocoder.rb
config/initializers/new_framework_defaults_5_1.rb
config/initializers/application_controller_renderer.rb
config/cable.yml
Expand Down
12 changes: 12 additions & 0 deletions config/initializers/geocoder.rb
@@ -0,0 +1,12 @@
Geocoder.configure(

# street address geocoding service (default :nominatim)
lookup: :google,

# to use an API key:
api_key: ENV['GOOGLE_MAPS_API_KEY'],

# geocoding service request timeout, in seconds (default 3):
timeout: 5,
)

0 comments on commit a0e9f35

Please sign in to comment.