lib/geocoder/lookups/nominatim.rb in geocoder-1.4.9 vs lib/geocoder/lookups/nominatim.rb in geocoder-1.5.0
- old
+ new
@@ -10,15 +10,15 @@
def map_link_url(coordinates)
"https://www.openstreetmap.org/?lat=#{coordinates[0]}&lon=#{coordinates[1]}&zoom=15&layers=M"
end
- def query_url(query)
+ private # ---------------------------------------------------------------
+
+ def base_query_url(query)
method = query.reverse_geocode? ? "reverse" : "search"
- "#{protocol}://#{configured_host}/#{method}?" + url_query_string(query)
+ "#{protocol}://#{configured_host}/#{method}?"
end
-
- private # ---------------------------------------------------------------
def configured_host
configuration[:host] || "nominatim.openstreetmap.org"
end