Class RouteCalculationListener


  • public abstract class RouteCalculationListener
    extends java.lang.Object
    Interface describing route calculation status updates.
    • Constructor Detail

      • RouteCalculationListener

        public RouteCalculationListener()
    • Method Detail

      • onRouteCalculationSucceeded

        public abstract void onRouteCalculationSucceeded​(RouteCalculationResult result)
        Is called once route calculation succeeds. The fact that the callback was called means the route calculation has finished.
        Parameters:
        result - Successful route calculation info.
      • onRouteCalculationFailed

        public abstract void onRouteCalculationFailed​(RouteCalculationFailureInfo failureInfo)
        Is called once route calculation fails. The fact that the callback was called means the route calculation has finished.
        Parameters:
        failureInfo - Unsuccessful route calculation info.
      • onNonFatalRouteCalculationErrorOccurred

        public abstract void onNonFatalRouteCalculationErrorOccurred​(RouteCalculationError error)
        Is called once non-fatal error occurred during the route calculation process. The route calculation continues, other callbacks will be called later.
        Parameters:
        error - Error code describing the reason the callback was called.