Skip to content
import { fetchServiceDescription } from "@arcgis/core/rest/networkService.js";
Since
ArcGIS Maps SDK for JavaScript 4.20

This modules contains functions for working with network services.

Functions

fetchServiceDescription

Function

Retrieve a description of the network service.

Signature
fetchServiceDescription (url: string, apiKey?: string | null | undefined, requestOptions?: RequestOptions | null): Promise<NetworkServiceDescription>
Parameters
ParameterTypeDescriptionRequired
url

URL to the ArcGIS Server REST resource that represents a network analysis service.

apiKey

An authorization string used to access a resource or service (see API keys).

requestOptions

Additional options to be used for the data request.

Returns
Promise<NetworkServiceDescription>

Returns service description.