diff --git a/lib/geocoder/lookups/google.rb b/lib/geocoder/lookups/google.rb index 4b07dd573ebccb36fe52cc7340d9949893b0a0dc..9d0395503b2904654dcb69667742d43c61b944b7 100644 --- a/lib/geocoder/lookups/google.rb +++ b/lib/geocoder/lookups/google.rb @@ -31,7 +31,7 @@ module Geocoder::Lookup :language => Geocoder::Configuration.language, :key => Geocoder::Configuration.api_key } - "#{protocol}://http://maps.google.com/maps/geo?" + hash_to_query(params) + "#{protocol}://maps.googleapis.com/maps/api/geocode/json?" + hash_to_query(params) end end end