Class SafetyCameraWarning

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

public final class SafetyCameraWarning extends Object

A class that provides safety camera warning information.

  • Field Details

    • id

      public int id

      Unique identifier for this specific safety camera 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.

    • distanceToCameraInMeters

      @Deprecated public double distanceToCameraInMeters
      Deprecated.

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

      Distance to the safety camera in meters.

    • speedLimitInMetersPerSecond

      public double speedLimitInMetersPerSecond

      The speed limit observed by the safety camera.

    • type

      @NonNull public SafetyCameraType type

      The type of the safety camera element.

    • distanceType

      @Deprecated @NonNull public DistanceType distanceType
      Deprecated.

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

      The distance type of the warning (e.g.: warning for a new safety camera ahead, warning for passing a safety camera). Since the safety camera warning is given relative to a single position on the route, DistanceType.REACHED will never be given for this warning.

  • Constructor Details

    • SafetyCameraWarning

      @Deprecated public SafetyCameraWarning(int id, @Deprecated double distanceToCameraInMeters, double speedLimitInMetersPerSecond, @NonNull SafetyCameraType type, @Deprecated @NonNull DistanceType distanceType)
      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 safety camera 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.

      distanceToCameraInMeters -

      Distance to the safety camera in meters.

      speedLimitInMetersPerSecond -

      The speed limit observed by the safety camera.

      type -

      The type of the safety camera element.

      distanceType -

      The distance type of the warning (e.g.: warning for a new safety camera ahead, warning for passing a safety camera). Since the safety camera warning is given relative to a single position on the route, DistanceType.REACHED will never be given for this warning.

  • Method Details