You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
This worked OK with the API Key (but it quickly got a Rate Limit), however the client ID and crypto secret produces this Traceback. Is it possible that the client is not working under my previous license type.
import googlemaps
gmaps = googlemaps.Client(client_id=client, client_secret=crypto)
directions_result = gmaps.directions(from_1,
to_1,
mode="transit",
arrival_time=datetime.datetime(2018, 1, 10, 8))
File "geoloc_v2.py", line 81, in <module>
arrival_time=datetime.datetime(2018, 1, 30, 8))
File "/opt/anaconda3.5/lib/python3.6/site-packages/googlemaps/client.py", line 356, in wrapper
result = func(*args, **kwargs)
File "/opt/anaconda3.5/lib/python3.6/site-packages/googlemaps/directions.py", line 150, in directions
return client._request("/maps/api/directions/json", params)["routes"]
File "/opt/anaconda3.5/lib/python3.6/site-packages/googlemaps/client.py", line 253, in _request
result = self._get_body(response)
File "/opt/anaconda3.5/lib/python3.6/site-packages/googlemaps/client.py", line 267, in _get_body
raise googlemaps.exceptions.HTTPError(response.status_code)
googlemaps.exceptions.HTTPError: HTTP Error: 403
Am I missing a parameter? Maybe client_secret is the signature, not the crypto? if that is the case, I understand that the signature is created using the client, crypto key and url I'm querying, however the query url is a result of gmaps.directions. Hence, how do I generate the signature?
Many thanks
The text was updated successfully, but these errors were encountered:
Hi!
This worked OK with the API Key (but it quickly got a Rate Limit), however the client ID and crypto secret produces this Traceback. Is it possible that the client is not working under my previous license type.
Am I missing a parameter? Maybe client_secret is the signature, not the crypto? if that is the case, I understand that the signature is created using the client, crypto key and url I'm querying, however the query url is a result of gmaps.directions. Hence, how do I generate the signature?
Many thanks
The text was updated successfully, but these errors were encountered: