public class TransitDetails
extends java.lang.Object
transit_details
object, returned as a field of an element in the steps array. From the
TransitDetails object you can access additional information about the transit stop,
transit line and transit agency.| Modifier and Type | Field and Description |
|---|---|
StopDetails |
arrivalStop
arrivalStop contains information about the arrival stop/station for this part of the
trip. |
org.joda.time.DateTime |
arrivalTime
arrivalTime contains the arrival time for this leg of the journey. |
StopDetails |
departureStop
departureStop contains information about the departure stop/station for this part of the
trip. |
org.joda.time.DateTime |
departureTime
departureTime contains the departure time for this leg of the journey. |
java.lang.String |
headsign
headsign specifies the direction in which to travel on this line, as it is marked on
the vehicle or at the departure stop. |
long |
headway
headway specifies the expected number of seconds between departures from the same stop
at this time. |
TransitLine |
line
line contains information about the transit line used in this step. |
int |
numStops
numStops contains the number of stops in this step, counting the arrival stop, but not
the departure stop. |
| Constructor and Description |
|---|
TransitDetails() |
public StopDetails arrivalStop
arrivalStop contains information about the arrival stop/station for this part of the
trip.public StopDetails departureStop
departureStop contains information about the departure stop/station for this part of the
trip.public org.joda.time.DateTime arrivalTime
arrivalTime contains the arrival time for this leg of the journey.public org.joda.time.DateTime departureTime
departureTime contains the departure time for this leg of the journey.public java.lang.String headsign
headsign 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.public long headway
headway 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.public int numStops
numStops 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, numStops will return 3.public TransitLine line
line contains information about the transit line used in this step.