import * as queryAssociations from "@arcgis/core/rest/networks/queryAssociations.js";
const queryAssociations = await $arcgis.import("@arcgis/core/rest/networks/queryAssociations.js");
@arcgis/core/rest/networks/queryAssociations
The utility network associations model connectivity, containment, and structure relations between assets. This function queries the associations table and return associations for network features in a utility network.
- See also
Method Overview
| Name | Return Type | Summary | Object |
|---|---|---|---|
Promise<QueryAssociationsResult> | Returns all associations filtered by the QueryAssociationsParameters in a utility network. | queryAssociations |
Method Details
-
queryAssociations
MethodqueryAssociations(url, parameters, requestOptions){Promise<QueryAssociationsResult>} -
Returns all associations filtered by the QueryAssociationsParameters in a utility network.
Parametersurl StringURL to the ArcGIS Server REST resource that represents a UttilityNetwork.
parameters QueryAssociationsParametersThe parameters required by this functions include elements, what types of associations to return, moment and more.
requestOptions RequestOptionsoptionalAdditional options to be used for the data request.
ReturnsType Description Promise<QueryAssociationsResult> When resolved, the associations results are returned.