TollStop

public struct TollStop : Hashable

A struct that provides information for a toll stop with multiple toll booths.

  • Indicates if the specified toll stop is ahead of the vehicle or has just passed by.

    Declaration

    Swift

    public var distanceType: DistanceType
  • Distance to the toll stop in meters.

    Declaration

    Swift

    public var distanceToTollStopInMeters: Double
  • Describes the features of the booth for the lane. The lanes are sorted from left to right: The lane at index 0 represents the leftmost lane and the last index represents the rightmost lane. This is valid for right-hand and left-hand driving countries. An empty list means that the complex junction has been passed and that the lane information is not valid anymore. Exactly one event with a non-empty list is delivered before reaching a complex junction and one event with an empty list afterwards.

    Note: Lanes going in opposite direction are not included in the list.

    Declaration

    Swift

    public var lanes: [TollBoothLane]
  • Creates a new instance.

    • Parameters

      • distanceType: Indicates if the specified toll stop is ahead of the vehicle or has just passed by.
      • distanceToTollStopInMeters: Distance to the toll stop in meters.
      • lanes: Describes the features of the booth for the lane. The lanes are sorted from left to right: The lane at index 0 represents the leftmost lane and the last index represents the rightmost lane. This is valid for right-hand and left-hand driving countries. An empty list means that the complex junction has been passed and that the lane information is not valid anymore. Exactly one event with a non-empty list is delivered before reaching a complex junction and one event with an empty list afterwards.

      Note: Lanes going in opposite direction are not included in the list.

    Declaration

    Swift

    public init(distanceType: DistanceType, distanceToTollStopInMeters: Double, lanes: [TollBoothLane])