Reputation: 119
Lots of Google Place api REQUEST_DENIED post on Stackoverflow but no answer for me.
I have create a project on Google API console
Under that project, using SHA1 certificate fingerprint (debug.keystore) and package name to generate the Android API key
Already turn on the "Place API" service on Googel API console.
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
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
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
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
Reputation: 48602
Set the Request URL like this.
I am sure it will work if you configured Google place API correct. Use your API Key.
How to get API Key.
Upvotes: 1