solveServiceArea method

Future<ServiceAreaResult> solveServiceArea(
  1. {required ServiceAreaParameters serviceAreaParameters}
)

Solve a service area passing in a parameters object.

Executes the ServiceAreaParameters defined for this ServiceAreaTask and returns a ServiceAreaResult containing the results.

Parameters:

  • serviceAreaParameters — The service area parameters.

Return Value: A Future that returns a ServiceAreaResult type.

Implementation

Future<ServiceAreaResult> solveServiceArea(
    {required ServiceAreaParameters serviceAreaParameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaTask_solveServiceAreaAsync(
        _handle, serviceAreaParameters._handle, errorHandler);
  });
  return taskHandle
      .toFuture((element) => element.getValueAsServiceAreaResult()!);
}