Commit ab410910 authored by Alexandre Friquet's avatar Alexandre Friquet

Use Base Adresse Nationale FR for geocoding: refs #12.

parent a3e90df2
......@@ -167,7 +167,7 @@ GEM
fuubar (2.2.0)
rspec-core (~> 3.0)
ruby-progressbar (~> 1.4)
geocoder (1.4.4)
geocoder (1.4.9)
globalid (0.4.0)
activesupport (>= 4.2.0)
google-api-client (0.8.6)
......
Geocoder.configure(
# Geocoding options
# timeout: 3, # geocoding service timeout (secs)
lookup: :ban_data_gouv_fr, # name of geocoding service (symbol)
# ip_lookup: :freegeoip, # name of IP address geocoding service (symbol)
language: :fr, # ISO-639 language code
# use_https: false, # use HTTPS for lookup requests? (if supported)
# http_proxy: nil, # HTTP proxy server (user:pass@host:port)
# https_proxy: nil, # HTTPS proxy server (user:pass@host:port)
# api_key: nil, # API key for geocoding service
# cache: nil, # cache object (must respond to #[], #[]=, and #del)
# cache_prefix: 'geocoder:', # prefix (string) to use for all cache keys
# http_headers: { "User-Agent" => ENV['APP_NAME'] }
# Exceptions that should not be rescued by default
# (if you want to implement custom error handling);
# supports SocketError and Timeout::Error
# always_raise: [],
# Calculation options
# units: :mi, # :km for kilometers or :mi for miles
# distances: :linear # :spherical or :linear
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment