]> git.openstreetmap.org Git - rails.git/blobdiff - lib/nominatim.rb
Fix margin
[rails.git] / lib / nominatim.rb
index fd0855fc9e02bf81e091ff443eb2713cce53e00c..f847ec84e323e2a6871f35e824b7d7e7bb53ff35 100644 (file)
@@ -8,7 +8,7 @@ module Nominatim
     language ||= http_accept_language.user_preferred_languages.join(",")
 
     Rails.cache.fetch "/nominatim/location/#{lat}/#{lon}/#{zoom}/#{language}" do
     language ||= http_accept_language.user_preferred_languages.join(",")
 
     Rails.cache.fetch "/nominatim/location/#{lat}/#{lon}/#{zoom}/#{language}" do
-      url = "https://nominatim.openstreetmap.org/reverse?lat=#{lat}&lon=#{lon}&zoom=#{zoom}&accept-language=#{language}"
+      url = "#{Settings.nominatim_url}reverse?lat=#{lat}&lon=#{lon}&zoom=#{zoom}&accept-language=#{language}"
 
       begin
         response = Timeout.timeout(4) do
 
       begin
         response = Timeout.timeout(4) do