TrafficIncidentOnRoute class abstract

Traffic incidents on a route.

Use Section.trafficIncidents to get a list of incidents on a route section. Use Span.trafficIncidentIndexes to associate incidents with spans. Each incident takes at least the whole geometry of matching spans. Also, an incident can take some place out of the built route.

Implemented types

Constructors

TrafficIncidentOnRoute()

Properties

description LocalizedText
The human readable description of the incident, possibly with location information. The description is currently not present in our map data. Therefore, when accessing the data from a picked carto POI via TrafficIncidentResult, then always an empty string is returned. This does not apply when using the TrafficEngine. Gets the human readable description of the incident, possibly with location information.
no setterinherited
endTime → DateTime?
The time until which the incident is valid, after this time the incident should not be considered. The value is null if it hasn't been provided by the traffic incidents supplier. Get the time until which the incident is valid, after this time the incident should not be considered.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String?
The unique current identifier for a traffic incident. The identifier can be changed by the backend due to some events, e.g. changing of TrafficIncidentBase.endTime. This field will be empty for OfflineRouting. Gets the unique current identifier for a traffic incident.
no setter
impact TrafficIncidentImpact
The impact of the incident. The value is TrafficIncidentImpact.unknown if it hasn't been provided by the traffic incidents supplier. Gets the impact of the incident.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTime → DateTime?
The time from which the incident is valid, before this time the incident should not be considered. The value is null if it hasn't been provided by the traffic incidents supplier. Gets the time from which the incident is valid, before this time the incident should not be considered.
no setterinherited
type TrafficIncidentType
The category of the incident. The value is TrafficIncidentType.unknown if it hasn't been provided by the traffic incidents supplier. Gets the category of the incident.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited