SchoolZoneWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToSchoolZoneInMeters,
- double speedLimitInMetersPerSecond,
- DistanceType distanceType,
- TimeRule? timeRule,
Creates a new instance.
idUnique identifier for this specific school 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.distanceToSchoolZoneInMetersThe distance from the current location to the school zone in meters.speedLimitInMetersPerSecondSpeed limit meters/second, which applies to current school zone.distanceTypeThe distance type for the warning, e.g. a warning for a new school zone ahead or a warning for passing a school zone.timeRuleTime rule indicating the time periods for which the warning applies. If the field is 'null' then the warning is applicable at anytime.
Implementation
@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
SchoolZoneWarning(this.id, this.distanceToSchoolZoneInMeters, this.speedLimitInMetersPerSecond, this.distanceType, this.timeRule);