ClosestFacilityTask.withDataset constructor
- TransportationNetworkDataset dataset
Creates a closest facility task with transportation network dataset.
Parameters:
dataset
— A transportation network dataset.
Implementation
factory ClosestFacilityTask.withDataset(
TransportationNetworkDataset dataset,
) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityTask_createWithDataset(
dataset._handle,
errorHandler,
);
});
return ClosestFacilityTask._withHandle(handle);
}