Network Service

URL:
https://<root>/<serviceName>/NAServer
Methods:
GET
Version Introduced:
9.3

Description

The routing services resource represents routing services published with ArcGIS Server. The resource provides information about the service such as the service description and the various network layers (route, closest facility, and service area layers) contained in the routing services.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

Below is a sample request URL for the routing services resource:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/NetworkAnalysis/SanDiego/NAServer?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "currentVersion": <currentVersion>, //Added at 10.0 SP1
  "serviceDescription": "<serviceDescription>",
  "routeLayers": [
    "<routeLayerName1>",
    "<routeLayerName2>"
  ],
  "serviceAreaLayers": [
    "<serviceAreaLayerName1>",
    "<serviceAreaLayerName2>"
  ],
  "closestFacilityLayers": [
    "<closestFacilityLayerName1>",
    "<closestFacilityLayerName2>"
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "currentVersion": 10.8,
  "serviceDescription": "Test Map and Network Service Description",
  "routeLayers": [
    "Route"
  ],
  "serviceAreaLayers": [
    "Service Area"
  ],
  "closestFacilityLayers": [
    "Closest Facility"
  ]
}

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