computeRouteWithAlternatives

fun computeRouteWithAlternatives(    primaryRouteRequest: PrimaryRouteRequest,     alternatives: List<AlternativeRouteRequest>? = null,     listener: RouteComputeFinishedListener,     executor: Executor? = null): Router.Task

This method will compute primary route with alternatives, if possible.

You will receive listener signals for each alternatives. Some may get RouteComputeStatus.AlternativeRejected error.

Parameters

primaryRouteRequest
alternatives

List optional list with wanted alternatives

executor

Executor which will execute listener's callbacks