I think I know your problem now, maybe you skipped a step.
steps should be:
1) Go to the Developer Console https://code.google.com/apis/console/
2) In Credentials, in the Public API Access section, Create 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 to each line. NOTE: Enter the IP address only if you want to use it for testing purposes. It remains to leave the IP address field blank.
5) When finished, click Create, and your new server key will be generated, and you can add this server key to your URL.
use it like:
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=[lat],[lon]&radius=[radius]&key=kGOOGLE_API_KEY&sensor=true
or from the textbook you are using.
https://maps.googleapis.com/maps/api/place/search/json?location=[lat],[lon]&radius=[radius]&types=[type]&key=kGOOGLE_API_KEY&sensor=true
as you can see, &sensor=true is the last parameter .. (do not trust anything on the Internet) .. hahaha ..
everything should have worked if you followed carefully .. I suggest doing it from above .. hahaha .. Lols .. you will know and find out what is lost / forgotten and this will help you become a better person .. Lols .. Good luck sir. . :)
0yeoj
source share