Incident
public struct Incident : Codable, Equatable
Incident
describes any corresponding event, used for annotating the route.
-
Incident identifier
Declaration
Swift
public var identifier: String
-
The kind of an incident
This value is set to
nil
ifkind
value is not supported.Declaration
Swift
public var kind: Kind? { get }
-
Short description of an incident. May be used as an additional info.
Declaration
Swift
public var description: String
-
Date when incident item was created.
Declaration
Swift
public var creationDate: Date
-
Date when incident happened.
Declaration
Swift
public var startDate: Date
-
Date when incident shall end.
Declaration
Swift
public var endDate: Date
-
Shows severity of an incident. May be not available for all incident types.
Declaration
Swift
public var impact: String?
-
Provides additional classification of an incident. May be not available for all incident types.
Declaration
Swift
public var subtype: String?
-
Breif description of the subtype. May be not available for all incident types and is not available if
subtype
isnil
Declaration
Swift
public var subtypeDescription: String?
-
Contains list of ISO 14819-2:2013 codes
See https://www.iso.org/standard/59231.html for details
Declaration
Swift
public var alertCodes: Set<Int>
-
A list of lanes, affected by the incident
nil
value indicates that lanes data is not availableDeclaration
Swift
public var lanesBlocked: BlockedLanes?
-
The range of segments within the overall leg, where the incident spans.
Declaration
Swift
public var shapeIndexRange: Range<Int>
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws