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

      public double distanceInMeters

      The distance from the current location to the environmental zone.

    • distanceType

      @NonNull public DistanceType 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

      @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

      public EnvironmentalZoneWarning(double distanceInMeters, @NonNull DistanceType distanceType, @NonNull String zoneId, @NonNull String name)

      Creates a new instance.

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

  • Method Details