TrafficOnRoute

public struct TrafficOnRoute : Hashable

Traffic information on a route. Information for the already traveled portion of the route is omitted.

  • The unique identifier of the route this traffic information belongs to.

    Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

    Declaration

    Swift

    public var routeTag: RouteTag
  • 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.

    • Parameters

      • routeTag: The unique identifier of the route this traffic information belongs to.

      Note: This is a beta release of this feature and may contain bugs or exhibit unexpected behaviour. Related APIs are subject to change without a deprecation process.

      • lastTraveledSectionIndex: Indicates the index of the last traveled route section. Traveled part of the route won’t be reused.
      • traveledDistanceOnLastSectionInMeters: Offset, in meter, to the last visited position on the route section defined by the last traveled section index.
      • trafficSections: List of traffic sections.

    Declaration

    Swift

    public init(routeTag: RouteTag = RouteTag(), lastTraveledSectionIndex: Int32 = 0, traveledDistanceOnLastSectionInMeters: Int32 = 0, trafficSections: [TrafficOnSection] = [])