TrafficOnSpan (API Reference)
Class TrafficOnSpan
Traffic information of a span along a route.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleThe speed, in meters per second, without taking traffic into consideration.The power consumption in kilowatt-hours (kWh) necessary to traverse the span.The time duration necessary to traverse the traffic span.The indices of traffic incidents from the fieldTrafficOnSection.trafficIncidents.doubleThe traffic jam factor shows the traffic condition in a numeric way.doubleLength of the traffic span, in meters.The estimated extra time in seconds spent due to traffic delays along this traffic span.intIndex overTrafficOnSection.geometrywhere this span starts.doubleThe speed, in meters per second, considering traffic. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
trafficSectionPolylineOffset
public int trafficSectionPolylineOffsetIndex over
TrafficOnSection.geometrywhere this span starts. -
lengthInMeters
public double lengthInMetersLength of the traffic span, in meters.
-
duration
The time duration necessary to traverse the traffic span. This duration takes also into consideration the delays caused by the traffic.
-
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 baseSpeedInMetersPerSecondThe speed, in meters per second, without taking traffic into consideration.
-
trafficSpeedInMetersPerSecond
public double trafficSpeedInMetersPerSecondThe speed, in meters per second, considering traffic.
-
jamFactor
public double jamFactorThe 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
The indices of traffic incidents from the field
TrafficOnSection.trafficIncidents. -
consumptionInKilowattHours
The power consumption in kilowatt-hours (kWh) necessary to traverse the span.
-
-
Constructor Details
-
TrafficOnSpan
public TrafficOnSpan()Creates a new instance.
-
-
Method Details