getResultPolygons method

List<ServiceAreaPolygon> getResultPolygons(
  1. {required int facilityIndex}
)

Gets array of the result polygons.

Result polygons are only returned if the returnPolygons property of ServiceAreaParameters is true.

Parameters:

  • facilityIndex — The index of facility.

Return Value: A List of ServiceAreaPolygon

Implementation

List<ServiceAreaPolygon> getResultPolygons({required int facilityIndex}) {
  final arrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaResult_getResultPolygons(
        _handle, facilityIndex, errorHandler);
  });
  return arrayHandle.toList();
}