Browse Source

OSM geocoding is associated with a proper user agent

recurrent
echarp 7 years ago
parent
commit
2104f145cf
  1. 4
      config/initializers/geocoder.rb

4
config/initializers/geocoder.rb

@ -1,7 +1,7 @@
Geocoder.configure(
# geocoding options
# timeout: 3, # geocoding service timeout (secs)
timeout: 10,
lookup: :nominatim, # name of geocoding service (symbol)
language: :fr # ISO-639 language code
language: :fr, # ISO-639 language code
http_headers: { 'User-Agent' => 'agendadulibre.org' }
)

Loading…
Cancel
Save