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.

The developer dashboard has moved

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close