CoreTrafficEvent

class CoreTrafficEvent(var id: String, var category: Category? = null, var delay: Duration? = null, var length: Distance? = null, var effectCode: EffectCode? = null, var causes: List<Cause> = emptyList())

Core representation of a traffic event.

Traffic events represent unusual situations on the road, like traffic congestion, accidents, or road works. This class serves as a foundational model for defining specific types of traffic events within the NavSDK. It can be used as a base to create more specialized traffic event representations tailored to specific use cases.

Constructors

Link copied to clipboard
constructor(id: String, category: Category? = null, delay: Duration? = null, length: Distance? = null, effectCode: EffectCode? = null, causes: List<Cause> = emptyList())

Properties

Link copied to clipboard

Category of the traffic event.

Link copied to clipboard

List of causes.

Link copied to clipboard

Delay that this event adds to the affected roads.

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

Total length of the traffic 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