google.maps.TransitDetails
interface
Details about the departure, arrival, and mode of transit used in this step.
| Properties | |
|---|---|
arrival_stop |
Type:
TransitStopThe arrival stop of this transit step. |
arrival_time |
Type:
TimeThe arrival time of this step, specified as a Time object. |
departure_stop |
Type:
TransitStopThe departure stop of this transit step. |
departure_time |
Type:
TimeThe departure time of this step, specified as a Time object. |
headsign |
Type:
stringThe direction in which to travel on this line, as it is marked on the vehicle or at the departure stop. |
headway |
Type:
numberThe expected number of seconds between equivalent vehicles at this stop. |
line |
Type:
TransitLineDetails about the transit line used in this step. |
num_stops |
Type:
numberThe number of stops on this step. Includes the arrival stop, but not the departure stop. |
trip_short_name |
Type:
stringThe text that appears in schedules and sign boards to identify a transit trip to passengers, for example, to identify train numbers for commuter rail trips. The text uniquely identifies a trip within a service day. |