TrafficOnRoute
public struct TrafficOnRoute : Hashable
Traffic information on a route. Information for the already traveled portion of the route is omitted.
-
Indicates the index of the last traveled route section. Traveled part of the route won’t be reused.
Declaration
Swift
public var lastTraveledSectionIndex: Int32 -
Offset, in meter, to the last visited position on the route section defined by the last traveled section index.
Declaration
Swift
public var traveledDistanceOnLastSectionInMeters: Int32 -
List of traffic sections.
Declaration
Swift
public var trafficSections: [TrafficOnSection] -
Creates a new instance.
Declaration
Swift
public init(lastTraveledSectionIndex: Int32 = 0, traveledDistanceOnLastSectionInMeters: Int32 = 0, trafficSections: [TrafficOnSection] = [])