Class TrafficOnSpan

java.lang.Object
com.here.sdk.routing.TrafficOnSpan

public final class TrafficOnSpan extends Object

Traffic information of a span along a route.

  • Field Details

    • trafficSectionPolylineOffset

      public int trafficSectionPolylineOffset

      Index over TrafficOnSection.geometry where this span starts.

    • lengthInMeters

      public double lengthInMeters

      Length of the traffic span, in meters.

    • duration

      @NonNull public Duration duration

      The time duration necessary to traverse the traffic span. This duration takes also into consideration the delays caused by the traffic.

    • trafficDelay

      @NonNull public Duration trafficDelay

      The estimated extra time in seconds spent due to traffic delays along this traffic span. Negative values indicate that the traffic span can be traversed faster than usual.

    • baseSpeedInMetersPerSecond

      public double baseSpeedInMetersPerSecond

      The speed, in meters per second, without taking traffic into consideration.

    • trafficSpeedInMetersPerSecond

      public double trafficSpeedInMetersPerSecond

      The speed, in meters per second, considering traffic.

    • jamFactor

      public double jamFactor

      The traffic jam factor shows the traffic condition in a numeric way. It is a value in the range [0.0, 10.0]. A large jamFactor value means more traffic jam in general. Specifically, 0.0 means free traffic and 10.0 means stationary traffic.

    • incidentIndices

      @NonNull public List<Integer> incidentIndices

      The indices of traffic incidents from the field TrafficOnSection.trafficIncidents.

    • consumptionInKilowattHours

      @Nullable public Double consumptionInKilowattHours

      The power consumption in kilowatt-hours (kWh) necessary to traverse the span.

  • Constructor Details

    • TrafficOnSpan

      public TrafficOnSpan()

      Creates a new instance.

  • Method Details