LowSpeedZoneWarning constructor

  1. @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
LowSpeedZoneWarning(
  1. int id,
  2. double distanceToLowSpeedZoneInMeters,
  3. double speedLimitInMetersPerSecond,
  4. DistanceType distanceType,
  5. SegmentReference segmentReference,
)

Creates a new instance.

  • id Unique identifier for this specific low speed zone 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.
  • distanceToLowSpeedZoneInMeters Distance to the low speed warning in meters.
  • speedLimitInMetersPerSecond Speed limit of the low speed zone.
  • distanceType The distance type for the warning, e.g. a warning for a new low speed zone ahead or a warning for passing a low speed zone.
  • segmentReference The reference to the segment where the low speed zone is located. It can be used to identify the location.

Implementation

@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
LowSpeedZoneWarning(this.id, this.distanceToLowSpeedZoneInMeters, this.speedLimitInMetersPerSecond, this.distanceType, this.segmentReference);