TrafficIncidentResult

public class TrafficIncidentResult : TrafficIncidentBase
extension PickMapContentResult.TrafficIncidentResult: NativeBase
extension PickMapContentResult.TrafficIncidentResult: Hashable

Carries the result of picking a Carto traffic incident object. Description of incident is currently not present in our map data, so description always returns an empty string.

  • The impact of the incident. The value is TrafficIncidentImpact.unknown if 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.unknown if 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 the TrafficEngine.

    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 nil if 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 nil if it hasn’t been provided by the traffic incidents supplier.

    Declaration

    Swift

    public var endTime: Date? { get }
  • Unique traffic event ID. Can be referenced when checking for updated traffic information for the specified event.

    Declaration

    Swift

    public var originalId: String { get }
  • The geographic coordinates of the traffic incident.

    Declaration

    Swift

    public var coordinates: GeoCoordinates { get }