Class RouteCalculationFailureInfo


  • public abstract class RouteCalculationFailureInfo
    extends java.lang.Object
    Interface describing unsuccessful route calculation result.
    • Constructor Detail

      • RouteCalculationFailureInfo

        public RouteCalculationFailureInfo()
    • Method Detail

      • getErrorCode

        public abstract RouteCalculationError 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.