andrewwang1TW
andrewwang1TW

Reputation: 119

Google Place API, REQUEST_DENIED

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.......

Upvotes: 0

Views: 1994

Answers (4)

user6628772
user6628772

Reputation:

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

Upvotes: 0

Rafael Ruiz Tabares
Rafael Ruiz Tabares

Reputation: 731

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

Upvotes: 0

Rafael
Rafael

Reputation: 1

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

Upvotes: 0

Ajay S
Ajay S

Reputation: 48602

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

Upvotes: 1

Related Questions