问题
I am working on Android Google maps application but the query string i am using to get results of places near by the user is not working.
http://maps.googleapis.com/maps/api/place/search/json?location=123.666,33.166&radius=50000&sensor=false&types=establishment&name=hotel&key={myKey}
I am using this link to obtain a Maps API key.
here is the response i am receiving.
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
Thanks
回答1:
You need to generate the Places API key via: https://code.google.com/apis/console/
More on this under: https://developers.google.com/places/documentation/#Authentication
HTH
回答2:
I'm quite sure you are using a wrong/old key. Lokk at your link, it's over 3 years old. Better try this way to obtain a new key: Obtaining a Google Maps Android API Key. This is the official site.
来源:https://stackoverflow.com/questions/13112791/android-request-denied-google-places-api