Package com.navmii.sdk.routecalculation
Class RouteCalculationFailureInfo
java.lang.Object
com.navmii.sdk.routecalculation.RouteCalculationFailureInfo
public abstract class RouteCalculationFailureInfo
extends java.lang.Object
Interface describing unsuccessful route calculation result.
-
Constructor Summary
Constructors Constructor Description RouteCalculationFailureInfo()
-
Method Summary
Modifier and Type Method Description abstract RouteCalculationError
getErrorCode()
abstract java.util.ArrayList<java.lang.Integer>
getRoutePlanPointIndicesFailedToSnap()
-
Constructor Details
-
RouteCalculationFailureInfo
public RouteCalculationFailureInfo()
-
-
Method Details
-
getErrorCode
- Returns:
- Returns the code of an error caused route calculation failure.
-
getRoutePlanPointIndicesFailedToSnap
public abstract java.util.ArrayList<java.lang.Integer> getRoutePlanPointIndicesFailedToSnap()- Returns:
- If getErrorCode method returns NoRoadNearWaypoint, the method returns the list of waypoint indices in initial route plan that route calculation service couldn't snap to the map (i.e. no road exist near waypoint, etc.). Otherwise empty list is returned. In current implementation only the first failed waypoint index is returned.
-