TrafficMergeWarning constructor

  1. @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
TrafficMergeWarning(
  1. int id,
  2. double distanceToTrafficMergeInMeters,
  3. TrafficMergeRoadType roadType,
  4. TrafficMergeSide side,
  5. int laneCount,
  6. DistanceType distanceType,
)

Creates a new instance.

  • id Unique identifier for this specific traffic merge warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.
  • distanceToTrafficMergeInMeters Distance to merging traffic in meters.
  • roadType Type of road which contains the merging traffic.
  • side The side from which the traffic is merging.
  • laneCount 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.
  • distanceType 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.REACHED will never be given for this warning.

Implementation

@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
TrafficMergeWarning(this.id, this.distanceToTrafficMergeInMeters, this.roadType, this.side, this.laneCount, this.distanceType);