0
votes

Lots of Google Place api REQUEST_DENIED post on Stackoverflow but no answer for me.

  1. I have create a project on Google API console

  2. Under that project, using SHA1 certificate fingerprint (debug.keystore) and package name to generate the Android API key

  3. Already turn on the "Place API" service on Googel API console.

  4. The request URL is come from google sample here and already replace the generated android API key https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=AddYourOwnKeyHere

But still get the REQUEST_DENIED.......

4
You have replaced the key in the URL haven't you?Simon
Yes, Key for Android apps (with certificates) API key: AIzaSyBgtuprISnWCnMw126CXuyGwA5KgvalObkandrewwang1TW

4 Answers

1
votes

Set the Request URL like this.

https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=API_KEY

I am sure it will work if you configured Google place API correct. Use your API Key.

How to get API Key.

enter image description here

0
votes

I just solved this problem.You should open the 'Places API'service in API console,and then the result will be correct.

0
votes

If your keyApi is a android key won't work because you need to create another browser api (leave in black for all access allowed) and mixing both on your project. The reason is here

0
votes

To use the Places API, you must include an API key with all API requests and you must enable billing on each of your projects.

https://developers.google.com/places/web-service/usage-and-billing