RouteTask.withDataset constructor
- TransportationNetworkDataset dataset
Creates a route task with path to geodatabase.
Creates a route task.
Parameters:
dataset
— A transportation network dataset.
Implementation
factory RouteTask.withDataset(
TransportationNetworkDataset dataset,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_RouteTask_createWithDataset(
dataset._handle,
errorHandler,
);
});
return RouteTask._withHandle(handle);
}