TrafficMergeWarning
public struct TrafficMergeWarning : Hashable
A struct that provides warning for merging traffic. The main field describing the merging traffic is TrafficMergeWarning.road_type
specifying the type of road containing traffic which is merging with the current road.
Use TrafficMergeWarningListener to get notifications about upcoming merging traffic.
-
Distance to merging traffic in meters.
Declaration
Swift
public var distanceToTrafficMergeInMeters: Double -
Type of road which contains the merging traffic.
Declaration
Swift
public var roadType: TrafficMergeRoadType -
The side from which the traffic is merging.
Declaration
Swift
public var side: TrafficMergeSide -
Number of lanes of the merging road containing the traffic. If the road has no lanes defined, than the number of lanes returned will be 1.
Declaration
Swift
public var laneCount: Int32 -
The distance type for the warning, e.g. a warning for a new traffic merge location ahead or a warning for passing a traffic merge location. Since the traffic merge warning is given relative to a single position on the route,
DistanceType.REACHEDwill never be given for this warning.Declaration
Swift
public var distanceType: DistanceType -
Creates a new instance.
Declaration
Swift
public init(distanceToTrafficMergeInMeters: Double, roadType: TrafficMergeRoadType = TrafficMergeRoadType.sliproad, side: TrafficMergeSide = TrafficMergeSide.right, laneCount: Int32 = 1, distanceType: DistanceType)