TruckRestrictionWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceInMeters,
- WeightRestriction? weightRestriction,
- DimensionRestriction? dimensionRestriction,
- DistanceType distanceType,
- IntegerRange? trailerCount,
- TimeRule? timeRule,
- TruckRoadType? truckRoadType,
- List<
HazardousMaterial> hazardousMaterials, - TunnelCategory? tunnelCategory,
- IntegerRange? axleCount,
Creates a new instance.
idUnique 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.distanceInMetersThe distance from the current location to the restriction.weightRestrictionWeight restriction. It isnullwhen there is no known weight restriction ahead.dimensionRestrictionVehicle dimension restrictions. It isnullwhen there is no known dimension restriction ahead.distanceTypeIndicates 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.trailerCountThe 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.timeRuleTime rule indicating the time periods for which the restriction applies. If the field is 'null' then the restriction is applicable at anytime.truckRoadTypeTruck road type restriction.hazardousMaterialsThe list of hazardous materials which are restricted on the road section for which the warning applies.tunnelCategoryTunnel category.axleCountThe axle count for which the current restriction applies. If this field isnull, 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);