Honey
Honey

Reputation: 2880

Geocoding adress doesnot give latitude and longitude

Im using this URL http://maps.googleapis.com/maps/api/geocode/json?address="ADDRESS"&sensor=false?key=APIKey of our prjct. But not getting results. It shows me error eventhough I use an API Key

{
   "error_message" : "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}

Unable to understand where am I going wrong. Any help would be highly appreciated

Upvotes: 0

Views: 277

Answers (2)

xomena
xomena

Reputation: 32178

I believe http://maps.googleapis.com/maps/api/geocode/json?address="ADDRESS"&sensor=false?key=APIKey is wrong.

Have a look at this part ?key=APIKey, it should be &key=APIKey. Also note that address parameter shouldn't have " symbols and sensor parameter is not required anymore, it was deprecated long time ago.

The request should be

https://maps.googleapis.com/maps/api/geocode/json?address=ADDRESS&key=APIKey

I hope this helps!

Upvotes: 2

Mohmmad S
Mohmmad S

Reputation: 5098

it's clearly says,

"Keyless access to Google Maps Platform"

to use Google API's you need to register the application, and request API services. therefore you will have an

access to your key to use, keep in mind all the API services requires Client Key and you have to provide it in the Request otherwise you can't use any of google API's.

you can generate Key after Registering here

Upvotes: 0

Related Questions