- URL:
- https://<network-layer-url>/generateroutes
- Methods:
- GET
- Required Capability:
- The ArcGIS Location Referencing license is required to use this resource.
- Version Introduced:
- 10.6.1
Description
This operation re-creates shapes and applies calibration changes for route features in an LRS Network.
Editing is supported only for multiuser (enterprise and workgroup) geodatabases. File and personal geodatabases do not support web editing.
Request parameters
| Parameter | Details | 
|---|---|
| 
 (Optional) | Specifies the response format. The default response format is  Values:  | 
| 
 (Optional) | Specifies whether to record calibration changes detected on the routes. Any calibration points created, modified, or deleted outside the ArcGIS Pipeline Referencing tools will be applied to the routes in the network, and event behaviors will be applied the next time  Values:  | 
| 
 (Optional) | Contains a list of Object IDs, a SQL  Syntax:  | 
| 
 (Optional) | Specifies the geodatabase version to use. If this parameter is not specified, the published map's version is used. Syntax: Example:  | 
| 
 (Optional) | Set by a client during long transaction editing on a branch version. The  Syntax: Example:  | 
| 
 (Optional) | Specifies whether the response reports the time edits that were applied. If  Values:  This parameter was added at 10.7. | 
| 
 (Optional) | Returns features edited due to the geodatabase behavior that results from applying the edits. For example, if a feature is deleted and it is the origin in a composite relationship, the destination feature is automatically deleted from the geodatabase. If  Results returned from  Service-level  The  
 The response includes no  Edited features are returned in the spatial reference of the feature service as defined by the services  The default value is  Values:  | 
Example usage
Example 1
URL for generating a route.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/networkLayers/6/generateRoutes?recordCalibrationChanges=true&layerDefinition=&gdbVersion=sde.version1&sessionId=%7B1CC754B0-08B2-49B9-80E5-1481C3CA2871%7D&f=jsonExample 2
URL for generating a line.
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/networkLayers/6/generateRoutes?recordCalibrationChanges=true&layerDefinition= {'{'}"where":"LINEID='MainLine'"{'}'}&gdbVersion=sde.version1&sessionId=%7B1CC754B0-08B2-49B9-80E5-1481C3CA2871%7D&f=jsonJSON Response syntax
{
  "statusURL": <jobIdURL>
}JSON Response example
{"statusURL":"https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRServer/jobs/j3c0a00b4314349eb8e4ff6ff7ac2db5d"}