TrafficIncident class abstract
TrafficIncident provides details about a traffic incident.
- Implemented types
Constructors
Properties
-
codes
→ List<
int> -
The list of standardized codes as categorized in ISO 14819-2:2013 standard for this incident category.
Codes are given in order of importance, so the first item in the list is considered the primary cause of the incident.
Gets the list of standardized codes as categorized in ISO 14819-2:2013 standard for this incident category.
no setter
- 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 theTrafficEngine. 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
nullif 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 - entryTime → DateTime?
-
The time the incident was entered into the system.
The value is
nullif it hasn't been provided by the traffic incidents supplier. Gets the time the incident was entered into the system.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique current identifier for a traffic incident.
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
- isRoadClosed → bool
-
The flag indicates whether road is closed or not.
Gets the flag indicating whether road is closed or not.
no setter
- junctionsTraversability → JunctionsTraversability
-
The traversability of junctions along the affected road.
Gets the traversability of junctions along the affected road.
no setter
- location → TrafficLocation
-
The location of the incident.
Gets the location of the incident.
no setter
- originalId → String
-
The unique identifier of the first traffic incident.
The original id remains the same whenever the traffic incident is updated and TrafficIncident.id is changed.
Once an incident chain has been created, this value will never change.
The traffic incident an be looked up by original id using TrafficEngine.lookupIncident.
Gets the unique identifier of the first traffic incident.
no setter
- parentId → String?
-
The identifier of another incident to which this incident is linked.
The value is
nullif the incident doesn't have a parent. Gets the identifier of another incident to which this incident is linked.no setter - 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
nullif 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 - summary → LocalizedText
-
The human readable summary of the incident.
The summary field provides a short version of the description containing no location information.
The expected summary language can be managed
via TrafficIncidentsQueryOptions.languageCode and TrafficIncidentLookupOptions.languageCode.
Gets the human readable summary of the incident.
no setter
- 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
-
vehicleRestrictions
→ Map<
TrafficIncidentRestrictedVehicleCategory, TrafficIncidentVehicleRestriction> -
The map of restricted vehicle categories to restrictions.
A vehicle is restricted if at least one restriction field is applicable for it.
If the map is empty, there're no restricted vehicles for the incident.
Gets the map of restricted vehicle categories to restrictions.
no setter
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