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

    • distanceToCameraInMeters

      public double distanceToCameraInMeters

      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

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

  • Constructor Details

    • SafetyCameraWarning

      public SafetyCameraWarning(double distanceToCameraInMeters, double speedLimitInMetersPerSecond, @NonNull SafetyCameraType type, @NonNull DistanceType distanceType)

      Creates a new instance.

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