Interface RoadSignWarningListener


public interface RoadSignWarningListener

This interface should be implemented in order to receive road sign warnings. Note: The road sign warner is a point warner, which means that for a road sign there will always be 2 warnings emitted, with the [RoadSignWarning.distance_type] set to DistanceType.AHEAD and DistanceType.PASSED which is given when the location of the road sign is reached. A RoadSignWarning will not be given until the previous warning of that type has been passed. For example, a route with RoadSignWarning 120 meters and RoadSignWarning 160 meters ahead, the first [RoadSignWarning.distance_to_road_sign_in_meters] is 120 meters and the next [RoadSignWarning.distance_to_road_sign_in_meters] is then 40 meters, since that is the distance between the first and second warnings.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called whenever a new road sign warning is available.
  • Method Details

    • onRoadSignWarningUpdated

      void onRoadSignWarningUpdated(@NonNull RoadSignWarning roadSignWarning)

      Called whenever a new road sign warning is available.

      Parameters:
      roadSignWarning -

      The object that contains details on the road sign warning.