java.io.Serializable
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 | Description |
---|---|---|
StopDetails |
arrivalStop |
Information about the arrival stop/station for this part of the trip.
|
java.time.ZonedDateTime |
arrivalTime |
The arrival time for this leg of the journey.
|
StopDetails |
departureStop |
Information about the departure stop/station for this part of the trip.
|
java.time.ZonedDateTime |
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 | Description |
---|---|
TransitDetails() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
toString() |
public StopDetails arrivalStop
public StopDetails departureStop
public java.time.ZonedDateTime arrivalTime
public java.time.ZonedDateTime departureTime
public java.lang.String headsign
public long headway
public int numStops
numStops
will equal 3.public TransitLine line