Interface ClosedRoadsManager


public interface ClosedRoadsManager
Closed roads manager
Since:
1.0
  • Method Details

    • getNearbyRoads

      @Nullable List<RoadSegment> getNearbyRoads(@NonNull Coordinate coordinate, int maxDistance)
      Get list of road segments near given coordinate
      Parameters:
      coordinate - coordinate to search roads nearby
      maxDistance - maximal distance from the coordinate in meters
      Returns:
      list of road segments
    • closeRoad

      boolean closeRoad(@NonNull String roadSegmentId)
      Close road section
      Parameters:
      roadSegmentId - road section ID to close
      Returns:
      true on success, false when the road ID does not exist
      Since:
      1.0
    • reopenRoad

      boolean reopenRoad(@NonNull String closedRoadSegmentId)
      Reopen closed road section
      Parameters:
      closedRoadSegmentId - road section ID to reopen
      Returns:
      true on success, false when the closed road ID does not exist
      Since:
      1.0
    • getClosedRoads

      @NonNull List<RoadSegment> getClosedRoads()
      Get all roads permanently closed by user
      Returns:
      list of all permanently user closed roads
      Since:
      1.0