py4e icon indicating copy to clipboard operation
py4e copied to clipboard

book3/ch13 googlemap api key-locked

Open Lheeli opened this issue 6 years ago • 2 comments

The google map API now behind a keylock: http://maps.googleapis.com/maps/api/geocode/json?address=Ann+Arbor%2C+MI returns: "error_message" : "You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account"

I think this will make it impossible to successfully do all the exercises, which is sad: I've been learning a lot!

Lheeli avatar Jun 12 '19 21:06 Lheeli

I guess it's because we need api_key to request data from the Google API, but you can skip this problem and move on, because in the following exercise, Chuck has given us an alternative way to request the data, if api_key is False: api_key = 42 serviceurl = 'http://py4e-data.dr-chuck.net/json?' else : serviceurl = 'https://maps.googleapis.com/maps/api/geocode/json?'

rexmzk avatar Sep 11 '19 10:09 rexmzk

We are getting output but it is not matching the place id in auto grader . please help me to know my mistake

sharon18BQ1A05L3 avatar May 13 '20 02:05 sharon18BQ1A05L3

Thanks - I removed the "Hey click on this URL" from the latest version of the book (January 2024)

csev avatar Jan 01 '24 18:01 csev