Package com.mapfactor.sdk.routing
Interface ClosedRoadsManager
public interface ClosedRoadsManager
Closed roads manager
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Close road sectionGet all roads permanently closed by usergetNearbyRoads
(Coordinate coordinate, int maxDistance) Get list of road segments near given coordinateboolean
reopenRoad
(String closedRoadSegmentId) Reopen closed road section
-
Method Details
-
getNearbyRoads
Get list of road segments near given coordinate- Parameters:
coordinate
- coordinate to search roads nearbymaxDistance
- maximal distance from the coordinate in meters- Returns:
- list of road segments
-
closeRoad
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
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
Get all roads permanently closed by user- Returns:
- list of all permanently user closed roads
- Since:
- 1.0
-