TruckRestrictionWarning constructor

  1. @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
TruckRestrictionWarning(
  1. int id,
  2. double distanceInMeters,
  3. WeightRestriction? weightRestriction,
  4. DimensionRestriction? dimensionRestriction,
  5. DistanceType distanceType,
  6. IntegerRange? trailerCount,
  7. TimeRule? timeRule,
  8. TruckRoadType? truckRoadType,
  9. List<HazardousMaterial> hazardousMaterials,
  10. TunnelCategory? tunnelCategory,
  11. IntegerRange? axleCount,
)

Creates a new instance.

  • id Unique identifier for this specific truck restriction 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.
  • distanceInMeters The distance from the current location to the restriction.
  • weightRestriction Weight restriction. It is null when there is no known weight restriction ahead.
  • dimensionRestriction Vehicle dimension restrictions. It is null when there is no known dimension restriction ahead.
  • distanceType Indicates if the specified truck restriction is ahead of the vehicle or has just passed by. If it is ahead, then TruckRestrictionWarning.distanceInMeters is greater than 0.
  • trailerCount The trailer count for which the current restriction applies. If the field is 'null' then the current restriction does not have a condition based on trailers count.
  • timeRule Time rule indicating the time periods for which the restriction applies. If the field is 'null' then the restriction is applicable at anytime.
  • truckRoadType Truck road type restriction.
  • hazardousMaterials The list of hazardous materials which are restricted on the road section for which the warning applies.
  • tunnelCategory Tunnel category.
  • axleCount The axle count for which the current restriction applies. If this field is null, the restriction does not depend on axle count.

Implementation

@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
TruckRestrictionWarning(this.id, this.distanceInMeters, this.weightRestriction, this.dimensionRestriction, this.distanceType, this.trailerCount, this.timeRule, this.truckRoadType, this.hazardousMaterials, this.tunnelCategory, this.axleCount);