Incident
public struct Incident : Codable, Equatable, ForeignMemberContainer
Incident describes any corresponding event, used for annotating the route.
-
Declaration
Swift
public var foreignMembers: JSONObject -
Holds information about traffic codes.
See moreDeclaration
Swift
public struct TrafficCodes : ForeignMemberContainer, Codable, Equatable -
Represents the impact of the incident on local traffic.
See moreDeclaration
Swift
public enum Impact : String, Codable -
Incident identifier
Declaration
Swift
public var identifier: String -
The kind of an incident
This value is set to
nilifkindvalue 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: Impact? -
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
subtypeisnilDeclaration
Swift
public var subtypeDescription: String? -
The three-letter ISO 3166-1 alpha-3 code for the country the incident is located in. Example: “USA”.
Declaration
Swift
public var countryCodeAlpha3: String? -
The two-letter ISO 3166-1 alpha-2 code for the country the incident is located in. Example: “US”.
Declaration
Swift
public var countryCode: String? -
If this is true then the road has been completely closed.
Declaration
Swift
public var roadIsClosed: Bool? -
A long description of the incident in a human-readable format.
Declaration
Swift
public var longDescription: String? -
The number of items in the
lanesBlocked.Declaration
Swift
public var numberOfBlockedLanes: Int? -
Information about the amount of congestion on the road around the incident.
A number between 0 and 100 representing the level of congestion caused by the incident. The higher the number, the more congestion there is. A value of 0 means there is no congestion on the road. A value of 100 means that the road is closed.
Declaration
Swift
public var congestionLevel: NumericCongestionLevel? -
List of roads names affected by the incident.
Alternate road names are separated by a /. The list is ordered from the first affected road to the last one that the incident lies on.
Declaration
Swift
public var affectedRoadNames: [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
nilvalue 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> -
Map of traffic code attributes to values.
Declaration
Swift
public var trafficCodes: TrafficCodes? -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
Install in Dash
Incident Structure Reference