0

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

2
  • You have replaced the key in the URL haven't you?
    – Simon
    Commented Mar 15, 2013 at 19:11
  • Yes, Key for Android apps (with certificates) API key: AIzaSyBgtuprISnWCnMw126CXuyGwA5KgvalObk Commented Mar 15, 2013 at 19:20

4 Answers 4

1

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

14
  • Still { "html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED" } Commented Mar 15, 2013 at 19:19
  • @andrewwang1TW what URL you are trying and make sure you have replaced key=AddYourOwnKeyHere with you Key like i gave example above..
    – Ajay S
    Commented Mar 15, 2013 at 19:20
  • Yes, I have replace with my API key as maps.googleapis.com/maps/api/place/search/…"; Commented Mar 15, 2013 at 19:23
  • @andrewwang1TW Make sure your API key is right. I guess your API key is not correct i think something problem in that.
    – Ajay S
    Commented Mar 15, 2013 at 19:23
  • 2
    use "create new browser key" is OK. Now I got the result from Goolge Place API. Really THANKS. But it's really strange, it's an android app. Can you tell me why? THANKS... Commented Mar 15, 2013 at 19:48
0

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

0

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

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.