slimkrazy / python-google-places

Simple wrapper around the new 'experimental' Google Places API
MIT License
461 stars 167 forks source link

Pass API key to geocode API endpoint. #100

Closed slimkrazy closed 7 years ago

slimkrazy commented 7 years ago

This issue fixes the issues in:

19

64

59

The root problem was that the geocode API call never sent up the API key. It seems that Google have added some more restrictions over the years since I wrote this little library. The API call now includes your key, but you will also have to log into the Google developer console and activate the geocoding API for your key prior to making this change.

I've also modified how the error was reported as the true cause of the error was obfuscated by the 'missing lat/lng keys' error message .