The Utilities service contains operations that provide auxiliary information for working with routing services available with ArcGIS Online. Currently, the Utilities service contains two operations, Get
and Get
. The Get
operation provides additional information such as the description of the network dataset used for the analysis and execution limits for an operation available as part of the routing services.
Parameters
Name | Required | Type | Default | Description |
---|---|---|---|---|
string |
| The service name containing the tool. | ||
string |
| The tool name in the geoprocessing service. |
Required parameters
serviceName
Allowed values: async
, async
, async
, async
,async
, async
, sync
Specify the service name containing the tool. The parameter value should be specified using one of the following keywords that reference a particular geoprocessing service:
async
—The job request of the geoprocessing service used to perform the closest facility analysis.Closest Facility async
—The job request of the geoprocessing service used to perform the location-allocation analysis.Location Allocation async
—The job request of the geoprocessing service used to perform the route analysis.Route async
—The job request of the geoprocessing service used to perform the service area analysis.Service Area async
—The job request of the geoprocessing service used to perform the travel cost matrix analysis.OD Cost Matrix async
—The job request of the geoprocessing service used to perform the fleet routing analysis.VRP sync
—The direct request of the geoprocessing service used to perform the fleet routing analysis.VRP
toolName
Allowed values: Find
, Solve
, Find
, Generate
, Generate
, Solve
, Edit
Specify the tool name in the geoprocessing service. The parameter value should be a valid tool name in the geoprocessing service specified by the service
parameter. The following are the valid tool names:
Find
forClosest Facilities async
serviceClosest Facility Solve
forLocation Allocation async
serviceLocation Allocation Find
forRoutes async
serviceRoute Generate
forService Areas async
serviceService Area Solve
forVehicle Routing Problem async
serviceVRP Edit
forVehicle Routing Problem sync
serviceVRP Generate
forOrigin Destination Cost Matrix async
serviceOD Cost Matrix
Response details
The request to the Get
operation returns a JSON response that contains any warning messages from the service execution as well a value for the output parameter tool
. If the request fails to execute, the response only contains the error
property that contains the error messages.
For a list of error codes and details, go to Direct request error codes
You can make a request to the Get
operation from the Utilities service using the URL of the following form
https://route-api.arcgis.com/arcgis/rest/services/World/Utilities/GPServer/GetToolInfo/execute?parameters
Upon successful completion, the service returns the tool info, which contains the network dataset and the service limits for the given tool.
toolInfo
type:string
Use this parameter to a get a description of the network dataset used for the analysis and service limits for a tool available in the geoprocessing service.
The following shows an example of the tool
parameter.
Example:
{
"paramName": "toolInfo",
"dataType": "GPString",
"value": {
"networkDataset": {
"attributeParameterValues": [
{
"attributeName": "Avoid Limited Access Roads",
"parameterName": "Restriction Usage",
"parameterType": "Double",
"value": "AVOID_MEDIUM"
},
{
"attributeName": "Avoid Ferries",
"parameterName": "Restriction Usage",
"parameterType": "Double",
"value": "AVOID_MEDIUM"
},
{
"attributeName": "Avoid Unpaved Roads",
Examples
Get the tool information for an example tool
In this example you will get the tool information for the Solve
tool.
POST https://route-api.arcgis.com/arcgis/rest/services/World/Utilities/GPServer/GetToolInfo/execute?serviceName=asyncVRP&toolName=SolveVehicleRoutingProblem HTTP/1.1
Content-Type: application/x-www-form-urlencoded
token=<ACCESS_TOKEN>
&f=json