22 lines
526 B
Ruby
Raw Normal View History

2014-03-09 14:43:33 -06:00
# config/initializers/geocoder.rb
Geocoder.configure(
# geocoding service (see below for supported options):
:lookup => :google,
# IP address geocoding service (see below for supported options):
:ip_lookup => :freegeoip,
# to use an API key:
# :api_key => "AIzaSyDitM1lyVWkrumteDvSkje6GiIKYyHlAXM",
# geocoding service request timeout, in seconds (default 3):
:timeout => 5,
# set default units to kilometers:
:units => :km,
# caching (see below for details):
#:cache => Redis.new,
#:cache_prefix => "..."
)