Skip to content

Commit

Permalink
Update Directions and Distance Matrix API to indicate that transit di…
Browse files Browse the repository at this point in the history
…rections are available within a more limited time window (#463)

Update Directions and Distance Matrix API to indicate that transit directions are available within a more limited time window as explained in https://issuetracker.google.com/284178782

#462
  • Loading branch information
miguev authored Oct 3, 2023
1 parent 2e52e97 commit 04032f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specification/parameters/mode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ description: |
* `driving` (default) indicates standard driving directions or distance using the road network.
* `walking` requests walking directions or distance via pedestrian paths & sidewalks (where available).
* `bicycling` requests bicycling directions or distance via bicycle paths & preferred streets (where available).
* `transit` requests directions or distance via public transit routes (where available). If you set the mode to transit, you can optionally specify either a `departure_time` or an `arrival_time`. If neither time is specified, the `departure_time` defaults to now (that is, the departure time defaults to the current time). You can also optionally include a `transit_mode` and/or a `transit_routing_preference`.
* `transit` requests directions or distance via public transit routes (where available). Transit trips are available for up to 7 days in the past or 100 days in the future. If you set the mode to transit, you can optionally specify either a `departure_time` or an `arrival_time`. If neither time is specified, the `departure_time` defaults to now (that is, the departure time defaults to the current time). You can also optionally include a `transit_mode` and/or a `transit_routing_preference`.
<div class="note">Note: Both walking and bicycling directions may sometimes not include clear pedestrian or bicycling paths, so these directions will return warnings in the returned result which you must display to the user.</div>
in: query
Expand All @@ -29,4 +29,4 @@ schema:
- driving
- bicycling
- transit
- walking
- walking

0 comments on commit 04032f0

Please sign in to comment.