EnvironmentalZoneWarning

public struct EnvironmentalZoneWarning : Hashable

Represents Environmental zones.

  • 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.

    Declaration

    Swift

    public var id: Int32
  • The distance from the current location to the environmental zone.

    Declaration

    Swift

    public var distanceInMeters: Double
  • 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.

    Declaration

    Swift

    public var distanceType: DistanceType
  • Indicates the environmental zone id in the map data.

    Declaration

    Swift

    public var zoneId: String
  • Indicates the official name of the environmental zone.

    Declaration

    Swift

    public var name: String
  • Indicates the description of the environmental zone in the available languages.

    Declaration

    Swift

    public var description: LocalizedTexts
  • Indicates the website of the environmental zone, if available.

    Declaration

    Swift

    public var websiteUrl: String?
  • Creates a new instance.

    Declaration

    Swift

    public init(id: Int32 = 0, distanceInMeters: Double, distanceType: DistanceType, zoneId: String, name: String, description: LocalizedTexts = LocalizedTexts(), websiteUrl: String? = nil)