networkService

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
Promise<Object>more details

Retrieve a description of the network service.

more detailsnetworkService

Method Details

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

Retrieve a description of the network service.

Parameters:
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
optional

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

Returns:
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.