ClosestFacilityTask.withUrl constructor
- Uri uri
Creates a closest facility task with URL.
Creates a closest facility task.
Parameters:
uri
— An URL to online routing services.
Implementation
factory ClosestFacilityTask.withUrl(Uri uri) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityTask_createWithURL(
coreURI.bytes, errorHandler);
});
return ClosestFacilityTask._withHandle(handle);
}