From 2104f145cf5d43c21c2ea213bd8bf3a6cc9afc01 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 30 Jan 2016 18:33:37 +0100 Subject: [PATCH] OSM geocoding is associated with a proper user agent --- config/initializers/geocoder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/geocoder.rb b/config/initializers/geocoder.rb index 843f50e3..17b57d33 100644 --- a/config/initializers/geocoder.rb +++ b/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' } )