apranav19 / pydirections

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

Handle mode of transport #14

Closed apranav19 closed 9 years ago

apranav19 commented 9 years ago

The 1st optional parameter that the Directions API states is mode. The acceptable modes of transportation include:

Therefore, a developer can set the mode of the DirectionsRequest object as follows:

   requester = DirectionsRequest(origin="123 Fake St, Springfield, MA", destination="456 Fake St, Springfield, MA").set_mode("walking")
apranav19 commented 9 years ago

Issue addressed in latest merge.