TrafficEvent

class TrafficEvent(var id: String, var category: Category? = null, var delay: Duration? = null, var length: Distance? = null, var path: List<GeoPoint> = emptyList(), var effectCode: EffectCode? = null, var isOneWay: Boolean, var drivingSide: DrivingSide, var causes: List<Cause> = emptyList(), var roadType: RoadType, var roadClass: RoadClass? = null, var roadSubclass: RoadSubClass? = null)

Representation of a traffic event. Traffic events represent unusual situations on the road, like traffic congestion, accidents or road works.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor(id: String, category: Category?, delay: Duration?, length: Distance?, path: List<GeoPoint>, effectCode: EffectCode?, isOneWay: Boolean, drivingSide: DrivingSide, causes: List<Cause>, roadType: RoadType, roadClass: RoadClass?, roadSubclass: RoadSubClass?, turnAngle: Angle?)
constructor(id: String, category: Category? = null, delay: Duration? = null, length: Distance? = null, path: List<GeoPoint> = emptyList(), effectCode: EffectCode? = null, isOneWay: Boolean, drivingSide: DrivingSide, causes: List<Cause> = emptyList(), roadType: RoadType, roadClass: RoadClass? = null, roadSubclass: RoadSubClass? = null)

Properties

Link copied to clipboard

Category of the traffic event.

Link copied to clipboard

Causes as defined in TPEG2-TEC.

Link copied to clipboard

Delay that this event adds to the affected roads.

Link copied to clipboard

Driving side of the event.

Link copied to clipboard

Effect code for the event.

Link copied to clipboard
var id: String

Unique identifier for the traffic event.

Link copied to clipboard

True if the event is on a one way road.

Link copied to clipboard

Total length of the traffic event.

Link copied to clipboard

Traffic path from tail to head.

Link copied to clipboard

The road class of the road at the start of the event.

Link copied to clipboard

The sub class for the road class, if present.

Link copied to clipboard

The road type of the road at the start of the event.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String