I did not find any relevant answer on SO. I can't figure out how to use the Google Maps python client with the client id and client secret.
The Maps Python lib doc show in its doc how to instantiate and use the client:
import googlemaps
gmaps = googlemaps.Client(client_id=client_id, client_secret=client_secret)
directions_result = gmaps.directions("Sydney Town Hall",
"Parramatta, NSW",
mode="transit",
departure_time=now)
And links to the documentation on how to generate a client_secret (which is the same as the signature) to here.
To generate a signature, we need to encode the API URL we'll be calling with our private key.
This means that
- Before instantiating
Client
, I need to determine myself what URL it is going to call ? - I need to re instantiate the
Client
each time I make a call ?
What am I missing here ?