RouteTask.withUrl constructor

RouteTask.withUrl(
  1. Uri uri
)

Creates a route task with URL.

Creates a route task with specified service URL.

Parameters:

  • uri — An URL to online routing services.

Implementation

factory RouteTask.withUrl(Uri uri) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_RouteTask_createWithURL(
        coreURI.bytes, errorHandler);
  });
  return RouteTask._withHandle(handle);
}