EnvironmentalZoneWarning constructor

  1. @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
EnvironmentalZoneWarning(
  1. int id,
  2. double distanceInMeters,
  3. DistanceType distanceType,
  4. String zoneId,
  5. String name,
  6. LocalizedTexts description,
  7. String? websiteUrl,
)

Creates a new instance.

  • id Unique identifier for this specific environmental 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.
  • distanceInMeters The distance from the current location to the environmental zone.
  • distanceType Indicates if the specified zone is ahead of the vehicle or has just passed by. If it is ahead, then EnvironmentalZoneWarning.distanceInMeters is greater than 0.
  • zoneId Indicates the environmental zone id in the map data.
  • name Indicates the official name of the environmental zone.
  • description Indicates the description of the environmental zone in the available languages.
  • websiteUrl Indicates the website of the environmental zone, if available.

Implementation

@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
EnvironmentalZoneWarning(this.id, this.distanceInMeters, this.distanceType, this.zoneId, this.name, this.description, this.websiteUrl);