Skip to content
import { queryAssociations } from "@arcgis/core/rest/networks/queryAssociations.js";
Since
ArcGIS Maps SDK for JavaScript 4.24

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

Functions

queryAssociations

Function

Returns all associations filtered by the QueryAssociationsParameters in a utility network.

Signature
queryAssociations (url: string, parameters: QueryAssociationsParameters, requestOptions?: RequestOptions): Promise<QueryAssociationsResult>
Parameters
ParameterTypeDescriptionRequired
url

URL to the ArcGIS Server REST resource that represents a UttilityNetwork.

parameters

The parameters required by this functions include QueryAssociationsParameters.elements, what QueryAssociationsParameters.types of associations to return, QueryAssociationsParameters.moment and more.

requestOptions

Additional options to be used for the data request.

Returns
Promise<QueryAssociationsResult>

When resolved, the associations results are returned.