rinku yadav
rinku yadav

Reputation: 121

fetching all the Restaurants, supermarkets, malls etc. nearby using the Google Maps Api

I'm new in iPhone Development. I'm creating an application in which i need to fetch all the Restaurents, supermarkets, malls etc. in the nearby location using GoogleApi. Im using following link to find the venue:

https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=grocery_or_supermarket&sensor=true&key=AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI

But I'm getting the following message:

"html_attributions" : [], "results" : [], "status" : "REQUEST_DENIED"

Please help. Any solution will be appreciated. Thanks in advance.

Upvotes: 0

Views: 2133

Answers (1)

Manish Agrawal
Manish Agrawal

Reputation: 11026

"Access denied" is coming because the key(AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI) you are using is not valid.
You have to register your project on on Google and have to generate unique key from this link.
replace the generated key with the key in your link, then this will work fine.
If you have any other query let me know.

Upvotes: 3

Related Questions