NumberOfLanes

public struct NumberOfLanes

Total number of lanes on the road in both directions.

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

Public

  • Contains threshold values for the parameters used to initialize NumberOfLanes.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    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 Constants.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.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 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 NumberOfLanes.Constants.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?