apranav19 / pydirections

A Python client for Google's Directions API
Apache License 2.0
1 stars 0 forks source link

A DirectionsRequest object #17

Closed apranav19 closed 9 years ago

apranav19 commented 9 years ago

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")
apranav19 commented 9 years ago

Basic DirectionsRequest class implemented. The 2 required parameters are set. This issue can be closed.