Class EnvironmentalZoneWarning

java.lang.Object
com.here.sdk.navigation.EnvironmentalZoneWarning

public final class EnvironmentalZoneWarning extends Object

Represents Environmental zones.

  • Field Details

    • id

      public int 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

      @Deprecated public double distanceInMeters
      Deprecated.

      Will be removed in v4.29.0. Use the WarningUpdate implementation instead.

      The distance from the current location to the environmental zone.

    • distanceType

      @Deprecated @NonNull public DistanceType distanceType
      Deprecated.

      Will be removed in v4.29.0. Use the WarningStatus implementation instead.

      Indicates if the specified zone is ahead of the vehicle or has just passed by. If it is ahead, then distanceInMeters is greater than 0.

    • zoneId

      @NonNull public String zoneId

      Indicates the environmental zone id in the map data.

    • name

      @NonNull public String name

      Indicates the official name of the environmental zone.

    • description

      @NonNull public LocalizedTexts description

      Indicates the description of the environmental zone in the available languages.

    • websiteUrl

      @Nullable public String websiteUrl

      Indicates the website of the environmental zone, if available.

  • Constructor Details

    • EnvironmentalZoneWarning

      @Deprecated public EnvironmentalZoneWarning(int id, @Deprecated double distanceInMeters, @Deprecated @NonNull DistanceType distanceType, @NonNull String zoneId, @NonNull String name, @NonNull LocalizedTexts description, @Nullable String websiteUrl)
      Deprecated.

      Will be removed in v4.29.0. Use the constructor without deprecated fields instead.

      Creates a new instance.

      Parameters:
      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 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.

  • Method Details