Skip to content

Commit c9ea1ee

Browse files
committed
Better traffic_model docstrings.
Change-Id: I42c4b840bfb3ba5c074d1f836ebcb8f543efa32f
1 parent 57465e7 commit c9ea1ee

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎googlemaps/directions.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ def directions(client, origin, destination,
8686
:type transit_routing_preference: string
8787
8888
:param traffic_model: Specifies the predictive travel time model to use.
89-
"best_guess" or "optimistic" or "pessimistic"
89+
Valid values are "best_guess" or "optimistic" or "pessimistic".
90+
The traffic_model parameter may only be specified for requests where
91+
the travel mode is driving, and where the request includes a
92+
departure_time.
9093
:type units: string
9194
9295
:rtype: list of routes

‎googlemaps/distance_matrix.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ def distance_matrix(client, origins, destinations,
7676
:type transit_routing_preference: string
7777
7878
:param traffic_model: Specifies the predictive travel time model to use.
79-
"best_guess" or "optimistic" or "pessimistic"
80-
:type units: string
79+
Valid values are "best_guess" or "optimistic" or "pessimistic".
80+
The traffic_model parameter may only be specified for requests where
81+
the travel mode is driving, and where the request includes a
82+
departure_time.
8183
8284
:rtype: matrix of distances. Results are returned in rows, each row
8385
containing one origin paired with each destination.

0 commit comments

Comments
 (0)