Lane
public struct Lane : Hashable
A struct that provides information for a lane.
-
Indicates the properties of this lane. For example, it indicates whether parking is allowed, if it is an acceleration lane, an express lane, or other attributes.
Declaration
Swift
public var type: LaneType -
Indicates if this lane leads to the upcoming maneuvers.
Declaration
Swift
public var recommendationState: LaneRecommendationState -
Indicates which vehicle types can access this lane.
Declaration
Swift
public var access: LaneAccess -
Indicates the lane markings between the lanes.
Declaration
Swift
public var laneMarkings: LaneMarkings -
Indicates all the lane directions that are available for this lane.
Declaration
Swift
public var directions: [LaneDirection] -
Indicates the lane directions that are on the route. Following these directions keeps the driver on the route. This is a subset of
Lane.directions.Declaration
Swift
public var directionsOnRoute: [LaneDirection] -
Creates a new instance.
Declaration
Swift
public init(type: LaneType, recommendationState: LaneRecommendationState = LaneRecommendationState.notRecommended, access: LaneAccess, laneMarkings: LaneMarkings, directions: [LaneDirection] = [], directionsOnRoute: [LaneDirection] = [])