public interface DirectionsManager
Codes of all Errors returned by this manager are declared in
CommonErrorConstant.Code and DirectionsManager.Code
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DirectionsManager.Code
The error codes received in
Handler.onFailure(Error) on the DirectionsManager |
static interface |
DirectionsManager.PropertyKey |
| Modifier and Type | Method and Description |
|---|---|
boolean |
requestDirections(DirectionsRequest request,
Handler<Route> callback)
Calculates a route between two points.
|
boolean requestDirections(DirectionsRequest request, Handler<Route> callback) throws IllegalArgumentException
callback.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.CodeIllegalArgumentException - some required argument is null, or request's points
(DirectionsRequest.getTo(), DirectionsRequest.getFrom()) are not in the same building.