networkService

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

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

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
optional

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.

Returns
Type Description
Promise<ServiceDescription> Returns service description.

Type Definitions

ServiceDescription

Type Definition
ServiceDescription Object

The network service description.

Properties
currentVersion Number

Server version.

defaultTravelMode TravelMode

Default travel mode.

supportedTravelModes TravelMode[]

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.