X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baf10cd39289cd7e94a819305e46f43e85a136c6..2b06961ce3702c2ddcbcd56cce005504ce2dffb3:/lib/nominatim.rb?ds=sidebyside diff --git a/lib/nominatim.rb b/lib/nominatim.rb index c5d60cebd..97d158cfd 100644 --- a/lib/nominatim.rb +++ b/lib/nominatim.rb @@ -3,7 +3,7 @@ module Nominatim def self.describe_location(lat, lon, zoom = nil, language = nil) zoom ||= 14 - language ||= http_accept_language.user_preferred_languages.join(',') + language ||= http_accept_language.user_preferred_languages.join(",") Rails.cache.fetch "/nominatim/location/#{lat}/#{lon}/#{zoom}/#{language}" do url = "http://nominatim.openstreetmap.org/reverse?lat=#{lat}&lon=#{lon}&zoom=#{zoom}&accept-language=#{language}"