Class LowSpeedZoneWarning

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

public final class LowSpeedZoneWarning extends Object

A class that provides low speed zone. The main field describing the low speed zone is LowSpeedZoneWarning.speed_limit_in_meters_per_second specifying the speed limit of the low speed zone. Use LowSpeedZoneWarningListener to get notifications about upcoming low speed zones.

  • Field Details

    • id

      public int id

      Unique identifier for this specific low speed 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.

    • distanceToLowSpeedZoneInMeters

      @Deprecated public double distanceToLowSpeedZoneInMeters
      Deprecated.

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

      Distance to the low speed warning in meters.

    • speedLimitInMetersPerSecond

      public double speedLimitInMetersPerSecond

      Speed limit of the low speed zone.

    • distanceType

      @Deprecated @NonNull public DistanceType distanceType
      Deprecated.

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

      The distance type for the warning, e.g. a warning for a new low speed zone ahead or a warning for passing a low speed zone.

    • segmentReference

      @NonNull public SegmentReference segmentReference

      The reference to the segment where the low speed zone is located. It can be used to identify the location.

  • Constructor Details

    • LowSpeedZoneWarning

      @Deprecated public LowSpeedZoneWarning(int id, @Deprecated double distanceToLowSpeedZoneInMeters, double speedLimitInMetersPerSecond, @Deprecated @NonNull DistanceType distanceType, @NonNull SegmentReference segmentReference)
      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 low speed 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.

      distanceToLowSpeedZoneInMeters -

      Distance to the low speed warning in meters.

      speedLimitInMetersPerSecond -

      Speed limit of the low speed zone.

      distanceType -

      The distance type for the warning, e.g. a warning for a new low speed zone ahead or a warning for passing a low speed zone.

      segmentReference -

      The reference to the segment where the low speed zone is located. It can be used to identify the location.

  • Method Details