I had the same problem and found this.
In the url, this requires a server key, not the api key for the application.
Basically, you simply add the server key at the end of the URL, for example:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=yourlatitude,yourlongitude&radius=5000&sensor=true&key=SERVERKEY
Now, to get the server key, simply follow these steps:
1) Go to the developer console https://code.google.com/apis/console/
2) In the credentials in the "Open API Access" section, create a new key
3) Select a server key from the option.
4) Enter your IP address in the box and, if you have more IP addresses, you can simply add each line. NOTE. Enter only the IP address when you want to use it for testing purposes. Else leave the IP address field blank.
5) After you are finished, click "Create" and your new server key will be generated, and you can add this server key to your URL.
The last thing, instead of putting the sensor = true in the middle of the URL, you can add it at the end as follows:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=yourlatitude,yourlongitude&radius=5000&key=SERVERKEY&sensor=true
This will solve the problem and remember to use the server key for the Places API .
Hope this answer helps you and other viewers. Good luck .. :)
mike20132013 Jun 16 '14 at 1:30 2014-06-16 01:30
source share