▾
import { fetchServiceDescription } from "@arcgis/core/rest/networkService.js";const { fetchServiceDescription } = await $arcgis.import("@arcgis/core/rest/networkService.js");- Since
- ArcGIS Maps SDK for JavaScript 4.20
This module 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
| Parameter | Type | Description | Required |
|---|---|---|---|
| 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.