I use an API key that I got from google maps in my swift project and it works perfectly. When I tried it on python it just gives me an error message. The code that I used and the error message I received are down below.
I already went on the Google cloud platform to get an api key for:
- places api
- map javascript api
- Geolocation api
- Geocoding api
Also with this api key I was not successful.
gmaps = googlemaps.Client(key='api-key')
geocode_result = gmaps.geocode('1600 Amphitheatre Parkway, Mountain View, CA')
I expect to get the location's id but I'm receiving: "googlemaps.exceptions.ApiError: REQUEST_DENIED (This API project is not authorized to use this API.)"