Class SchoolZoneWarning

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

public final class SchoolZoneWarning extends Object

A school zone warning which notifies about a school zone presence on road with a speed limit different than the default speed limit applicable for cars. Use SchoolZoneWarningListener to get notifications about school zones.

  • Field Details

    • distanceToSchoolZoneInMeters

      public double distanceToSchoolZoneInMeters

      The distance from the current location to the school zone in meters.

    • speedLimitInMetersPerSecond

      public double speedLimitInMetersPerSecond

      Speed limit meters/second, which applies to current school zone.

    • distanceType

      @NonNull public DistanceType distanceType

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

    • timeRule

      @Nullable public TimeRule timeRule

      Time rule indicating the time periods for which the warning applies. If the field is 'null' then the warning is applicable at anytime.

  • Constructor Details

    • SchoolZoneWarning

      public SchoolZoneWarning(double distanceToSchoolZoneInMeters, double speedLimitInMetersPerSecond, @NonNull DistanceType distanceType)

      Creates a new instance.

      Parameters:
      distanceToSchoolZoneInMeters -

      The distance from the current location to the school zone in meters.

      speedLimitInMetersPerSecond -

      Speed limit meters/second, which applies to current school zone.

      distanceType -

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

  • Method Details