contains information about the stop for this part of the trip.
contain the arrival time for this leg of the journey.
contains information about the station for this part of the trip.
contain the departure time for this leg of the journey.
specifies the direction in which to travel on this line, as it is marked on the vehicle or at the departure stop. This will often be the terminus station.
specifies the expected number of seconds between departures from the same stop at this time.
For example, with a headway
value of 600, you would expect a ten minute wait if you should miss your bus.
contains information about the transit line used in this step.
contains the number of stops in this step, counting the arrival stop, but not the departure stop.
For example, if your directions involve leaving from Stop A, passing through stops B and C, and arriving at stop D,
num_stops
will return 3.
Transit directions return additional information that is not relevant for other modes of transportation. These additional properties are exposed through the
transit_details
object, returned as a field of an element in thesteps[]
array. From theTransitDetails
object you can access additional information about the transit stop, transit line and transit agency