X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baf10cd39289cd7e94a819305e46f43e85a136c6..f2c955a96a5df1eb74746699f4d327527a3ac8c6:/lib/nominatim.rb 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}"