AMD:
require(["esri/rest/networkService"], (networkService) => { /* code goes here */ });
ESM:
import * as networkService from "@arcgis/core/rest/networkService.js";
Object:
esri/rest/networkService
Since: ArcGIS Maps SDK for JavaScript 4.20
This modules contains functions for working with network services.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Retrieve a description of the network service. | networkService |
Method Details
-
fetchServiceDescription
fetchServiceDescription(url, apiKey, requestOptions){Promise<ServiceDescription>}
-
Retrieve a description of the network service.
ParametersReturnsType Description Promise<ServiceDescription> Returns service description.
Type Definitions
-
ServiceDescription
ServiceDescription Object
-
The network service description.
- Properties
-
currentVersion Number
Server version.
defaultTravelMode TravelModeDefault travel mode.
supportedTravelModes TravelMode[]Available travel modes.