AMD: require(["esri/rest/networkService"], (networkService) => { /* code goes here */ });
ESM: import * as networkService from "@arcgis/core/rest/networkService";
Object: esri/rest/networkService
Since: ArcGIS API 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.

more details

Method Details

fetchServiceDescription(url, apiKey, requestOptions){Promise<object>}

Retrieve a description of the network service.

url String

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

apiKey String

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

requestOptions Object

Additional options to be used for the data request (will override requestOptions defined during construction).

Type Description
Promise<object> Returns service description.
Property Type Description
currentVersion Number Server version
defaultTravelMode String Id of the default travel mode
supportedTravelModes Object[] Available travel modes

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.