...
switch before walking/driving mode (
RouteCalculationOptions.setIsWalkingMode
);choose one of route optimization methods (
RouteCalculationOptions.setOptimization
):fastest;
easiest (with the least amount of turns, crossroads and ramps);
most economical with regard to fuel consumption;
shortest;
choose vehicle type;
choose whether toll roads should be avoided;
choose whether traffic should be taken into account.
Enabling calculation of
...
navigation directions
RouteCalculationOptions class also contains a method called setBuildAllDirections(bool)
, which can be used to enable calculation of navigation directions for the entire route during the routing process. When this feature is enabled, directions can be accessed using Route.getDirections()
method.
...