TrafficLocation
public struct TrafficLocation : Hashable
The location reference to the traffic incident.
-
The description of the location. In general, the language can’t be bound to the description. Usually, the language is one of the local languages of the incident region. Note: A localizable description of the incident is part of
description. This description describes only the location where the incident occurred. Defaults to an empty string.Declaration
Swift
public var description: String -
The polyline representing the traffic entity shape. The current field contains a continuous polyline with no gaps between geo-coordinates. All others following the gap are present in the
additional_polylinesfield.Declaration
Swift
public var polyline: GeoPolyline -
List of polylines that were not included in continuous polyline. Use this to fill any gaps in the continuous polyline.
Declaration
Swift
public var additionalPolylines: [GeoPolyline] -
The affected road length in meters. The length can be 0 only if the incident supplier has provided incomplete data.
Declaration
Swift
public var lengthInMeters: Int32 -
Creates a new instance.
Declaration
Swift
public init(description: String = "", polyline: GeoPolyline, additionalPolylines: [GeoPolyline], lengthInMeters: Int32)