public interface DirectionsManagerAllows route calculation between two points, usually from current user's location.
Codes of all
Errors returned by this manager are declared in
Nested Class Summary
Nested Classes Modifier and Type Interface Description
DirectionsManager.CodeThe error codes received in
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
requestDirections(DirectionsRequest request, Handler<Route> callback)Calculates a route between two points.
boolean requestDirections(@NonNull DirectionsRequest request, @NonNull Handler<Route> callback) throws java.lang.IllegalArgumentExceptionCalculates a route between two points. The result is provided asynchronously using the
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
- true if the async calculus has started correctly. False otherwise.
java.lang.IllegalArgumentException- some required argument is null, or
request's points (
DirectionsRequest.getFrom()) are not in the same building.