computeRoute

fun computeRoute(routeRequest: VMERouteRequest, callback: VMEComputeRouteCallback?)

Requests that a route be computed.

Since

1.19

List<Object> lDests = new ArrayList<>(Arrays.asList("B4-UL05-ID0032", "B2-LL01-ID0011", "B3-UL00-ID0070"));
VMERouteDestinationsOrder lDestOrder = mOptimizeSwitch.isChecked() ?
VMERouteDestinationsOrder.OPTIMAL :
VMERouteDestinationsOrder.IN_ORDER;
VMERouteRequest lRouteRequest = new VMERouteRequest(VMERouteRequestType.FASTEST, lDestOrder, mAccessibleSwitch.isChecked());
lRouteRequest.setOrigin("B1-UL00-ID0039");
lRouteRequest.addDestinations(lDests);
mMapController.computeRoute(lRouteRequest, mRouteCallback);

Parameters

routeRequest

The route request

callback

The callback to invoke with the result. Pass null if you do not need to be informed of the result.