getRoute method

ClosestFacilityRoute? getRoute(
  1. {required int facilityIndex,
  2. required int incidentIndex}
)

Gets route.

Parameters:

  • facilityIndex — The index of facility.
  • incidentIndex — The index of incident.

Return Value: A ClosestFacilityRoute between specified facility and incident.

Implementation

ClosestFacilityRoute? getRoute(
    {required int facilityIndex, required int incidentIndex}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ClosestFacilityResult_getRoute(
        _handle, facilityIndex, incidentIndex, errorHandler);
  });
  return ClosestFacilityRoute._fromHandle(objectHandle);
}