类 TransitDetails
java.lang.Object
ai.nextbillion.maps.model.TransitDetails
- 所有已实现的接口:
java.io.Serializable
public class TransitDetails
extends java.lang.Object
implements java.io.Serializable
Transit directions return additional information that is not relevant for other modes of
transportation. These additional properties are exposed through the
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.- 另请参阅:
- 序列化表格
-
字段概要
字段 修饰符和类型 字段 说明 StopDetailsarrivalStopInformation about the arrival stop/station for this part of the trip.java.time.ZonedDateTimearrivalTimeThe arrival time for this leg of the journey.StopDetailsdepartureStopInformation about the departure stop/station for this part of the trip.java.time.ZonedDateTimedepartureTimeThe departure time for this leg of the journey.java.lang.StringheadsignThe direction in which to travel on this line, as it is marked on the vehicle or at the departure stop.longheadwayThe expected number of seconds between departures from the same stop at this time.TransitLinelineInformation about the transit line used in this step.intnumStopsThe number of stops in this step, counting the arrival stop, but not the departure stop. -
构造器概要
构造器 构造器 说明 TransitDetails() -
方法概要
修饰符和类型 方法 说明 java.lang.StringtoString()
-
字段详细资料
-
arrivalStop
Information about the arrival stop/station for this part of the trip. -
departureStop
Information about the departure stop/station for this part of the trip. -
arrivalTime
public java.time.ZonedDateTime arrivalTimeThe arrival time for this leg of the journey. -
departureTime
public java.time.ZonedDateTime departureTimeThe departure time for this leg of the journey. -
headsign
public java.lang.String headsignThe 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. -
headway
public long headwayThe 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. -
numStops
public int numStopsThe 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,numStopswill equal 3. -
line
Information about the transit line used in this step.
-
-
构造器详细资料
-
TransitDetails
public TransitDetails()
-
-
方法详细资料
-
toString
public java.lang.String toString()- 覆盖:
toString在类中java.lang.Object
-