Interface DirectionsManager

    • Method Detail

      • requestDirections

        boolean requestDirections​(@NonNull
                                  DirectionsRequest request,
                                  @NonNull
                                  Handler<Route> callback)
                           throws java.lang.IllegalArgumentException
        Calculates a route between two points. The result is provided asynchronously using the callback.
        Parameters:
        request - non-null search parameters. 'from' and 'to' can't be null, and points have to be inside the same building. If the origin bearing is unknown 'bearingFrom' should be null.
        callback - object used to provide the result. Errors are declared in CommonErrorConstant.Code and DirectionsManager.Code
        Returns:
        true if the async calculus has started correctly. False otherwise.
        Throws:
        java.lang.IllegalArgumentException - some required argument is null, or request's points (DirectionsRequest.getTo(), DirectionsRequest.getFrom()) are not in the same building.