setFacilities method
- List<
ServiceAreaFacility> facilities
Sets facilities.
The set of service area facilities loaded as network locations during analysis. You need to specify at least one facility to successfully ServiceAreaTask.solveServiceArea.
Parameters:
facilities
— A List of ServiceAreaFacility instances. Contents of the List are copied.
Implementation
void setFacilities(
List<ServiceAreaFacility> facilities,
) {
final coreFacilities = facilities.toMutableArray(
valueType: _ElementType.serviceAreaFacility,
);
_withThrowingErrorHandler((errorHandler) {
runtimecore.RT_ServiceAreaParameters_setFacilities(
_handle,
coreFacilities._handle,
errorHandler,
);
});
}