Network Dataset Layer

URL:
https://<root>/<serviceName>/NAServer/<layerName>
Methods:
GET
Operations:
Locate service, Retrieve travel modes
Version Introduced:
11.1

Description

The network dataset layer resource represents a single network dataset layer in routing services published by ArcGIS Server. It provides basic information about the network dataset layer, such as its name, type, locate settings, travel modes, and other information as in the JSON syntax below. It also provides information about the network dataset, such as name build time, build state, network attributes and, network sources.

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

Example usage

Below is a sample request URL for the network dataset layer resource:

1
https://machine.domain.com/webadaptor/rest/services/<serviceFolderName>/<serviceName>/NAServer/<layerName>?token=<yourToken>&f=pjson

JSON Response syntax

Below is a sample JSON response syntax example for network dataset layer.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
  "layerName": "<layerName>",
  "layerType": "esriNAServerNetworkDatasetLayer",
  "networkDataset": {
    "name": "<name>",
    "buildTime": <buildTime> ,
    "state": "<state>",
    "networkAttributes": [
      {
        "name": "<name>",
        "dataType": "<dataType>",
        "units": "<units>",
        "usageType": "esriNAUTCost | esriNAUTRestriction | esriNAUTDescriptor | esriNAUTHierarchy",
        "parameterNames": [
          "<parameterName1>",
          "<parameterName2>"
        ],
        "restrictionUsageParameterName": "<restrictionUsageParameterName>",
        "trafficSupport": "esriNTSNone | esriNTSHistorical | esriNTSHistoricalAndLive"
      },
      ...
    ],
    "networkSources": [
      {
        "name": "<name>",
        "elementType": "esriNETEdge | esriNETJunction | esriNETTurn",
        "sourceType": "esriNSTEdgeFeature | esriNSTJunctionFeature | esriNSTTurnFeature",
        "id": <id> ,
        "fields": [{
            "name": "<name>",
            "type": "<type>",
            "alias": "<alias>"
          },
          ...
        ],
      },
      ...
    ]
  },
  "hasZ": true | false,
  "outputSpatialReference": {
    "wkid": <wkid>
  },
  "locateSettings": {
    "default": {
      "tolerance": <value> ,
      "toleranceUnits": "<units>",
      "allowAutoRelocate": true | false,
      "sources": [{
          "name": "<sourceName>",
          "where": "<whereClause>"
        },
        ...
      ]
    }
  },
  "defaultTravelMode": {
    "name": "<name>",
    "itemId": "<itemId>",
    "type": "<type>",
    "description": "<description>",
    "timeAttributeName": "<timeAttributeName>",
    "distanceAttributeName": "<distanceAttributeName>",
    "impedanceAttributeName": "<impedanceAttributeName>",
    "restrictionAttributeNames": [
      "<restrictionAttributeName>",
      ...
    ],
    "attributeParameterValues": [{
        "attributeName": "<attributeName>",
        "parameterName": "<parameterName>",
        "value": "<value>"
      },
      ...
    ],
    "useHierarchy": true | false,
    "uturnAtJunctions": "esriNFSBAtDeadEndsAndIntersections | esriNFSBAllowBacktrack | esriNFSBAtDeadEndsOnly | esriNFSBNoBacktrack",
    "simplificationTolerance": <value> ,
    "simplificationToleranceUnits": "<units>"
  }
}

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

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