getResultPolylines method

List<ServiceAreaPolyline> getResultPolylines({
  1. required int facilityIndex,
})

Gets array of the result polylines.

Result polylines are only returned if the returnPolylines property of ServiceAreaParameters is true.

Parameters:

  • facilityIndex — The index of facility.

Return Value: A List of ServiceAreaPolyline

Implementation

List<ServiceAreaPolyline> getResultPolylines({
  required int facilityIndex,
}) {
  final arrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceAreaResult_getResultPolylines(
      _handle,
      facilityIndex,
      errorHandler,
    );
  });
  return arrayHandle.toList();
}