lib/geocoder/lookups/mapquest.rb in geocoder-1.1.9 vs lib/geocoder/lookups/mapquest.rb in geocoder-1.2.0

- old
+ new

@@ -12,11 +12,11 @@ def required_api_key_parts ["key"] end def query_url(query) - domain = configuration[:licensed] ? "www" : "open" + domain = configuration[:open] ? "open" : "www" version = configuration[:version] || 1 url = "#{protocol}://#{domain}.mapquestapi.com/geocoding/v#{version}/#{search_type(query)}?" url + url_query_string(query) end @@ -51,9 +51,10 @@ warn("Mapquest Geocoding API error: #{messages}") when 500 # Unknown error raise_error(Geocoder::Error, messages) || warn("Mapquest Geocoding API error: #{messages}") end + [] end end end