lib/geocoder/lookups/bing.rb in geocoder-1.1.4 vs lib/geocoder/lookups/bing.rb in geocoder-1.1.5
- old
+ new
@@ -27,10 +27,10 @@
:query => query.reverse_geocode? ? nil : query.sanitized_text
)
end
def query_url(query)
- "http://dev.virtualearth.net/REST/v1/Locations" +
+ "#{protocol}://dev.virtualearth.net/REST/v1/Locations" +
(query.reverse_geocode? ? "/#{query.sanitized_text}?" : "?") +
url_query_string(query)
end
end
end