public class TransitDetails
extends java.lang.Object
implements java.io.Serializable
TransitDetails
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
Information about the arrival stop/station for this part of the trip.
|
org.joda.time.DateTime |
arrivalTime
The arrival time for this leg of the journey.
|
StopDetails |
departureStop
Information about the departure stop/station for this part of the trip.
|
org.joda.time.DateTime |
departureTime
The departure time for this leg of the journey.
|
java.lang.String |
headsign
The direction in which to travel on this line, as it is marked on the vehicle or at the
departure stop.
|
long |
headway
The expected number of seconds between departures from the same stop at this time.
|
TransitLine |
line
Information about the transit line used in this step.
|
int |
numStops
The number of stops in this step, counting the arrival stop, but not the departure stop.
|
Constructor and Description |
---|
TransitDetails() |
public StopDetails arrivalStop
public StopDetails departureStop
public org.joda.time.DateTime arrivalTime
public org.joda.time.DateTime departureTime
public java.lang.String headsign
public long headway
public int numStops
numStops
will equal 3.public TransitLine line