NumberOfLanes

public struct NumberOfLanes : Equatable

Total number of lanes on the road in both directions.

  • Contains boundary values for the parameters used to initialize TomTomSDKCommon/NumberOfLanes.

    See more

    Declaration

    Swift

    public enum Constants
  • The number of lanes on the road in the driving direction or nil if the number of lanes is not known. If available, the value is in the range numberOfLanesRange. A value of 0 indicates that the vehicle is moving in the wrong direction on a one-way road. A value equal to the Constants.numberOfLanesRange.lowerBound indicates that the actual number of lanes is greater than or equal to the Constants.numberOfLanesRange.upperBound. The value comprises both normal and exit lanes. NumberOfLanes.inDrivingDirection and NumberOfLanes.inOppositeDirection can both be nil at the same time.

    Declaration

    Swift

    public let inDrivingDirection: Int?
  • The number of lanes on the road in the opposite direction or nil if the number of lanes is not known. If available, the value is in the range numberOfLanesRange. A value of 0 indicates that the vehicle is moving on a one-way road. A value equal to the Constants.numberOfLanesRange.upperBound indicates that the actual number of lanes is greater than or equal to the Constants.numberOfLanesRange.upperBound. The value comprises both normal and exit lanes. NumberOfLanes.inDrivingDirection and NumberOfLanes.inOppositeDirection can both be nil at the same time.

    Declaration

    Swift

    public let inOppositeDirection: Int?