networkDataName


URI

  1. <networkanalyst_uri>/{networkdataName}[.<format>]

  2. <networkanalyst_uri>/{networkdataIndex}[.<format>]

Supported methods

GET, HEAD

Parent resource

networkAnalyst

Child resources

closestfacility, connectedEdges, edgeWeight, location, model, MTSPPath, path, serviceArea, traceDown, traceUp, TSPPath, turnNodeWeight, weightMatrix, burstAnalyse, upstreamcirticalfaclilities, downstreamcirticalfaclilities

Introduction

The networkDataName resource represents a network dataset that can be used in transportation analysis. Performing a GET request on {networkDataName} or {networkdataIndex} resource can get the description information of the network dataset, like projection information, turning weight field name, weight name and all the transportation analyst functionality supported.

Supported Methods:

Supported output formats: rjson, json, html, xml, jsonp.

Resource hierarchy

resources.htm

HTTP request methods

Below is an example of performing an HTTP request on a URI with rjson as the output format. supermapiserver in the URI is the name of the server, and RoadNet@Changchun is the name of the network dataset.

http://supermapiserver:8090/iserver/services/transportationanalyst-sample/rest/networkanalyst/RoadNet@Changchun.rjson

GET request

Gets all the transportation analysis functions supported by the network dataset.

Request parameter

None.

Response structure

After a GET request is performed on the networkDataName resource, the entity body of the response message contains a set of descriptions of the transportation analysis functions. Each description has the following structure:

Field Type Description
weightNames String[] The weight names.
turnWeightFieldNames String[] The field names of the turn weights.
prj PrjCoordSys The projection information of the network dataset.

Response example

By executing a GET request on networkDataName resource, the returned response result in rjosn format is as follows:

{

    "prj": {

        "coordSystem": null,

        "coordUnit": "METER",

        "distanceUnit": "METER",

        "epsgCode": -1000,

        "name": "Planar Coordinate System---m",

        "projection": null,

        "projectionParam": null,

        "type": "PCS_NON_EARTH"

    },

    "turnWeightFieldNames": ["TurnCost"],

    "weightNames": [

        "length",

        "time"

    ]

}

HEAD request

Returns the same HTTP response header as the GET request, but no response entity, which can be used to retrieve the meta data contained in response message header without having to transmit the entire response content. Meta data information includes media type, character coding, compression coding, entity content length, etc.

HEAD request is used to determine whether the networkDataName resource exists, or if the user has the authority to access it. By executing an HEAD request with a .<format> URI, you can quickly determine whether the networkDataName resource supports the <format> representation.

See