TrafficIncidentOnRoute (API Reference)
Class TrafficIncidentOnRoute
- All Implemented Interfaces:
TrafficIncidentBase
Traffic incidents on a route. Use Section.getTrafficIncidents() to get a list of incidents on a route section.
Use Span.getTrafficIncidentIndexes() 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.
-
Method Summary
Modifier and TypeMethodDescriptionGets the human readable description of the incident, possibly with location information.Get the time until which the incident is valid, after this time the incident should not be considered.getId()Gets the unique current identifier for a traffic incident.Gets the impact of the incident.Gets the time from which the incident is valid, before this time the incident should not be considered.getType()Gets the category of the incident.
-
Method Details
-
getId
Gets 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.getEndTime(). This field will be empty forOfflineRouting.- Returns:
The unique current identifier for a traffic incident.
-
getImpact
Gets the impact of the incident.
The value is
TrafficIncidentImpact.UNKNOWNif it hasn't been provided by the traffic incidents supplier.- Specified by:
getImpactin interfaceTrafficIncidentBase- Returns:
The impact of the incident.
-
getType
Gets the category of the incident.
The value is
TrafficIncidentType.UNKNOWNif it hasn't been provided by the traffic incidents supplier.- Specified by:
getTypein interfaceTrafficIncidentBase- Returns:
The category of the incident.
-
getDescription
Gets 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.- Specified by:
getDescriptionin interfaceTrafficIncidentBase- Returns:
The human readable description of the incident, possibly with location information.
-
getStartTime
Gets 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.- Specified by:
getStartTimein interfaceTrafficIncidentBase- Returns:
The time from which the incident is valid, before this time the incident should not be considered.
-
getEndTime
Get 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.- Specified by:
getEndTimein interfaceTrafficIncidentBase- Returns:
The time until which the incident is valid, after this time the incident should not be considered.
-