X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f4885874f02bc197995dcc32dec1da04a0587791..35392c1a2f25ced94150ac81cba1b7e517ce145b:/lib/nominatim.rb?ds=sidebyside diff --git a/lib/nominatim.rb b/lib/nominatim.rb index fd0855fc9..f847ec84e 100644 --- a/lib/nominatim.rb +++ b/lib/nominatim.rb @@ -8,7 +8,7 @@ module Nominatim 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