UtilityNearestNeighbor constructor

UtilityNearestNeighbor({
  1. required UtilityNetworkAttribute costNetworkAttribute,
  2. required int count,
  3. List<UtilityAssetType> assetTypes = const [],
  4. List<UtilityCategory> categories = const [],
})

Creates a filter object to return the next n features from the starting point with asset types and categories.

Parameters:

  • costNetworkAttribute — The UtilityNetworkAttribute used to determine the definition of "nearest".
  • count — The number of nearest features to return. This must be a positive number.
  • assetTypes — The collection of UtilityAssetType that are used to define features to return.
  • categories — The collection of UtilityCategory that are used to define features to return.