TrafficIncidentOnRoute
public class TrafficIncidentOnRoute : TrafficIncidentBase
extension TrafficIncidentOnRoute: NativeBase
extension TrafficIncidentOnRoute: Hashable
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.
-
The impact of the incident. The value is
TrafficIncidentImpact.unknownif it hasn’t been provided by the traffic incidents supplier.Declaration
Swift
public var impact: TrafficIncidentImpact { get } -
The category of the incident. The value is
TrafficIncidentType.unknownif it hasn’t been provided by the traffic incidents supplier.Declaration
Swift
public var type: TrafficIncidentType { get } -
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.Declaration
Swift
public var description: LocalizedText { get } -
The time from which the incident is valid, before this time the incident should not be considered. The value is
nilif it hasn’t been provided by the traffic incidents supplier.Declaration
Swift
public var startTime: Date? { get } -
The time until which the incident is valid, after this time the incident should not be considered. The value is
nilif it hasn’t been provided by the traffic incidents supplier.Declaration
Swift
public var endTime: Date? { get } -
The unique current identifier for a traffic incident. The identifier can be changed by the backend due to some events, e.g. changing of
endTime. This field will be empty forOfflineRouting.Declaration
Swift
public var id: String? { get }