solveRoute method

Future<RouteResult> solveRoute(
  1. {required RouteParameters routeParameters}
)

Solves a route passing in a parameters object.

Parameters:

  • routeParameters — The route parameters.

Return Value: A Future that returns a RouteResult type.

Implementation

Future<RouteResult> solveRoute({required RouteParameters routeParameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_RouteTask_solveRouteAsync(
        _handle, routeParameters._handle, errorHandler);
  });
  return taskHandle.toFuture((element) => element.getValueAsRouteResult()!);
}