ClosestFacilityTask.withUri 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.withUri(
Uri uri,
) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityTask_createWithURL(
coreURI.bytes,
errorHandler,
);
});
return ClosestFacilityTask._withHandle(handle);
}