lib/geocoder/lookups/mapquest.rb in geocoder-1.4.9 vs lib/geocoder/lookups/mapquest.rb in geocoder-1.5.0

- old
+ new

@@ -11,16 +11,15 @@ def required_api_key_parts ["key"] end - def query_url(query) + private # --------------------------------------------------------------- + + def base_query_url(query) domain = configuration[:open] ? "open" : "www" - url = "#{protocol}://#{domain}.mapquestapi.com/geocoding/v1/#{search_type(query)}?" - url + url_query_string(query) + "#{protocol}://#{domain}.mapquestapi.com/geocoding/v1/#{search_type(query)}?" end - - private # --------------------------------------------------------------- def search_type(query) query.reverse_geocode? ? "reverse" : "address" end