Class TrafficOnSpan
Class TrafficOnSpan
- java.lang.Object
-
- com.here.sdk.routing.TrafficOnSpan
-
public final class TrafficOnSpan extends java.lang.ObjectTraffic information of a span along a route.
-
-
Field Summary
Fields Modifier and Type Field Description doublebaseSpeedInMetersPerSecondThe speed, in meters per second, without taking traffic into consideration.java.lang.DoubleconsumptionInKilowattHoursThe power consumption in kilowatt-hours (kWh) necessary to traverse the span.DurationdurationThe time duration necessary to traverse the traffic span.java.util.List<java.lang.Integer>incidentIndicesThe indices of traffic incidents from the fieldTrafficOnSection.trafficIncidents.doublejamFactorThe traffic jam factor shows the traffic condition in a numeric way.doublelengthInMetersLength of the traffic span, in meters.DurationtrafficDelayThe estimated extra time in seconds spent due to traffic delays along this traffic span.inttrafficSectionPolylineOffsetIndex overTrafficOnSection.geometrywhere this span starts.doubletrafficSpeedInMetersPerSecondThe speed, in meters per second, considering traffic.
-
Constructor Summary
Constructors Constructor Description TrafficOnSpan()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
trafficSectionPolylineOffset
public int trafficSectionPolylineOffset
Index over
TrafficOnSection.geometrywhere 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 java.util.List<java.lang.Integer> incidentIndices
The indices of traffic incidents from the field
TrafficOnSection.trafficIncidents.
-
consumptionInKilowattHours
@Nullable public java.lang.Double consumptionInKilowattHours
The power consumption in kilowatt-hours (kWh) necessary to traverse the span.
-
-