getFacilityCosts method

List<double> getFacilityCosts(
  1. {required String attributeName,
  2. required int facilityIndex}
)

Gets facility costs.

Parameters:

  • attributeName — The name of attribute.
  • facilityIndex — The index of facility.

Return Value: A List of double.

Implementation

List<double> getFacilityCosts(
    {required String attributeName, required int facilityIndex}) {
  final coreAttributeName = _CString(attributeName);
  final arrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ClosestFacilityResult_getFacilityCosts(
        _handle, coreAttributeName.bytes, facilityIndex, errorHandler);
  });
  return arrayHandle.toList();
}