类 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.
另请参阅:
序列化表格
  • 字段概要

    字段 
    修饰符和类型 字段 说明
    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.
  • 构造器概要

    构造器 
    构造器 说明
    TransitDetails()  
  • 方法概要

    修饰符和类型 方法 说明
    java.lang.String toString()  

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 字段详细资料

    • arrivalStop

      public StopDetails arrivalStop
      Information about the arrival stop/station for this part of the trip.
    • departureStop

      public StopDetails departureStop
      Information about the departure stop/station for this part of the trip.
    • arrivalTime

      public java.time.ZonedDateTime arrivalTime
      The arrival time for this leg of the journey.
    • departureTime

      public java.time.ZonedDateTime departureTime
      The departure time for this leg of the journey.
    • headsign

      public 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. This will often be the terminus station.
    • headway

      public long headway
      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.
    • numStops

      public int numStops
      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 equal 3.
    • line

      public TransitLine line
      Information about the transit line used in this step.
  • 构造器详细资料

  • 方法详细资料

    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object