β‘οΈ route-direct-spec
GET https://{{route-service}}.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve
solve
is the direct (synchronous) operation that scan be used to find the best way to get from one location to another or to visit several locations.

π API reference: solve
operation
π Related guides: Routing
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
f | string | (Required) Specify the response format (json | |
token | string | (Required) You need a valid access token. To learn more, read the collection's documentation. | |
stops | string | Specify two or more locations between which the route is to be found | |
travelMode | string | Choose the mode of transportation for the analysis. | |
startTime | string | Indicate the time at which travel begins from the input stops. You can also specify a value of now, to set the depart time to the current time. | |
startTimeIsUTC | string | Specify the time zone or zones of the startTime parameter. | |
timeWindowsAreUTC | string | Specify whether the TimeWindowStart and TimeWindowEnd attribute values on stops are specified in coordinated universal time (UTC) or geographically local time. | |
findBestSequence | string | Specify whether the service should reorder stops to find the optimized route. | |
preserveFirstStop | string | Indicate whether the service should keep the first stop fixed when reordering the stops. This parameter is required only if the findBestSequence parameter value is set to true. | |
preserveLastStop | string | Indicate whether the service should keep the last stop fixed when reordering the stops. This parameter is required only if the findBestSequence parameter value is set to true. | |
useTimeWindows | string | Indicate whether the service should consider time windows specified on the stops when finding the best route. | |
restrictUTurns | string | Restrict or permit the route from making U-turns at junctions. | |
useHierarchy | string | Specify whether hierarchy should be used when finding the shortest paths. | |
impedanceAttributeName | string | Specify the impedance. The default value is TravelTime. | |
accumulateAttributeNames | string | Specify whether the service should accumulate values other than the value specified for impedanceAttributeName. The parameter value should be specified as a comma-separated list of names. The parameter values are the same as the impedanceAttributeName parameter. | |
restrictionAttributeNames | string | Specify the restrictions that should be honored by the service. | |
attributeParameterValues | string | Specify additional values required by an attribute or restriction. | |
barriers | string | Specify one or more points that act as temporary restrictions or represent additional time or distance that may be required to travel on the underlying streets. | |
polylineBarriers | string | Specify one or more lines that prohibit travel anywhere the lines intersect the streets. | |
polygonBarriers | string | Specify polygons that either prohibit travel or proportionately scale the time or distance required to travel on the streets intersected by the polygons. | |
returnDirections | string | Specify whether the service should generate driving directions for each route. | |
directionsLanguage | string | Specify the language to be used when generating driving directions. This parameter is required only when the returnDirections parameter is set to true. | |
directionsOutputType | string | Define the content and verbosity of the driving directions. This parameter is required only when the returnDirections parameter is set to true. | |
directionsStyleName | string | Specify the name of the formatting style for the directions. This parameter is required only when the returnDirections parameter is set to true. | |
directionsLengthUnits | string | Indicate the units for displaying travel distance in the driving directions. This parameter is required only when the returnDirections parameter is set to true. | |
returnRoutes | string | Specify whether the service should return routes. | |
directionsTimeAttributeName | string | Indicate a time-based impedance attribute to display the duration of a maneuver. | |
outputLines | string | Specify the type of route features that are output by the service. | |
returnStops | string | Specify whether stops will be returned by the service. | |
returnBarriers | string | Specify whether barriers will be returned by the service. | |
returnPolylineBarriers | string | Specify whether polyline barriers will be returned by the service. | |
returnPolygonBarriers | string | Specify whether polygon barriers will be returned by the service. | |
ignoreInvalidLocations | string | Specify whether invalid input locations should be ignored when finding the best solution. | |
outSR | string | Specify the spatial reference of the geometries. | |
outputGeometryPrecision | string | Specify by how much you want to simplify the route geometry. | |
outputGeometryPrecisionUnits | string | Specify the units for the value specified for the outputGeometryPrecision parameter. | |
overrides | string | Specify additional settings that can influence the behavior of the solver. | |
preserveObjectID | string | Specify whether the object ids from the input locations should be preserved when the input locations are returned as output. |