A DirectionsRequest object will be required to contain and wrap all the possible parameters that a developer will need to configure. An instance of a configured DirectionsRequest class will be passed to the Director class in order to make the HTTP request to the Directions API.
Possible way of configuring this object could be:
request = DirectionsRequest(origin="123 Fake St, Springfield, MA", destination="456 Maple St, Springfield, MA)
request.set_api_key(<Your API Key>).set_mode("walking")
A
DirectionsRequest
object will be required to contain and wrap all the possible parameters that a developer will need to configure. An instance of a configuredDirectionsRequest
class will be passed to theDirector
class in order to make the HTTP request to the Directions API.Possible way of configuring this object could be: