google-maps-documentation

TransitDetails interface

google.maps.TransitDetails interface

Details about the departure, arrival, and mode of transit used in this step.

Properties
arrival_stop
Type:  TransitStop
The arrival stop of this transit step.
arrival_time
Type:  Time
The arrival time of this step, specified as a Time object.
departure_stop
Type:  TransitStop
The departure stop of this transit step.
departure_time
Type:  Time
The departure time of this step, specified as a Time object.
headsign
Type:  string
The direction in which to travel on this line, as it is marked on the vehicle or at the departure stop.
headway
Type:  number
The expected number of seconds between equivalent vehicles at this stop.
line
Type:  TransitLine
Details about the transit line used in this step.
num_stops
Type:  number
The number of stops on this step. Includes the arrival stop, but not the departure stop.
trip_short_name
Type:  string
The 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.