setFacilities method

void setFacilities(
  1. 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:

Implementation

void setFacilities(
  List<ServiceAreaFacility> facilities,
) {
  final coreFacilities = facilities.toMutableArray(
    valueType: _ElementType.serviceAreaFacility,
  );
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ServiceAreaParameters_setFacilities(
      _handle,
      coreFacilities._handle,
      errorHandler,
    );
  });
}