require(["esri/rest/networks/queryAssociations"], (queryAssociations) => { /* code goes here */ });
import * as queryAssociations from "@arcgis/core/rest/networks/queryAssociations.js";
esri/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. more details | queryAssociations |
Method Details
-
queryAssociations(url, props, 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.
The parameters required by this functions include elements, what types of associations to return, moment and more.
requestOptions ObjectoptionalAdditional options to be used for the data request.
ReturnsType Description Promise<QueryAssociationsResult> When resolved, the associations results are returned.