getRankedFacilityIndexes method
- required int incidentIndex,
Gets an ordered list of facility indexes for a given incident index.
The first element in the list is the index of the closest facility, the second element is the next closest, etc. Multiple properties can effect the number of facilities returned for each incident.
Parameters:
incidentIndex
— The index of incident.
Return Value: A List of int32
Implementation
List<int> getRankedFacilityIndexes({
required int incidentIndex,
}) {
final arrayHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ClosestFacilityResult_getRankedFacilityIndexes(
_handle,
incidentIndex,
errorHandler,
);
});
return arrayHandle.toList();
}