As an organization administrator or owner of a network analysis service with the ability to publish server-based layers, you can manage a service's settings from its item page.
Note:
If your service is published on a federated server secured with web-tier authentication (such as Integrated Windows Authentication (IWA), lightweight directory access protocol (LDAP), or client-certificate authentication), you cannot configure service and layer settings through the portal. In such cases, you must use ArcGIS Server Manager on the federated server to manage service and layer settings.
Manage properties
To manage network analysis service properties, complete the following steps:
- Sign in to the organization as the item owner with publishing privileges or as an administrator.
- Open the item page for the network analysis service.
- Click the Settings tab.
- Scroll to the Network analysis section and enable or disable any of the following properties:
- Use portal travel modes—When enabled, the service will use the travel modes configured for your organization instead of the travel modes defined on the network dataset used by the service.
- Log request parameters—When enabled, the parameters used for making requests to a routing service are included in the ArcGIS Server logs. This can be useful to keep track of the parameters being passed to your services, for example, how many requests in a day specify a time-based travel mode.
- Return all fields—Controls whether the service only returns fields that have non-null value or if it returns all fields.
- Save result layer on server when error occurs—When enabled, result layers are automatically saved in the output directory if there is an error during analysis, which may aid in troubleshooting an error.
- Licensed for automatic rerouting—When enabled, client applications are notified that the service can be used for rerouting.
Note:
Before enabling this property, ensure that the network dataset used by the service has been licensed for rerouting capabilities. If you are using the network datasets from ArcGIS StreetMap Premium, these datasets are not licensed for automatic rerouting, and checking this property will violate your license agreement for ArcGIS StreetMap Premium. However, if your network dataset is created from street data managed by your organization, you can set this property.
- Click Save.
Specify the output spatial reference
You can specify the default spatial reference of the geometries in the response. The service returns geometries based on the network dataset's spatial reference by default.
To change the spatial reference, complete the following steps:
- Sign in to the organization as an item owner with publishing privileges or as an administrator.
- Open the item page for the network analysis service.
- Click the Settings tab and scroll to the Network analysis section.
- Under Output spatial reference, choose whether you want to specify a predefined or custom spatial reference.
- If you selected Predefined, search for and select the desired spatial reference.
- If you selected Custom, choose the well-known text format and enter the desired value.
- Click Save.
Configure resource optimization
Use the resource optimization settings to reduce the size of the payload from the service, leading to faster response times and lower bandwidth usage.
Complete the following steps:
- Sign in to the organization as an item owner with publishing privileges or as an administrator.
- Open the item page for the network analysis service.
- Click the Settings tab.
- Scroll to Response optimization in the Network analysis section.
- Enter a value for the Output geometry precision property to specify by how much you want to simplify the output geometry returned by the service.
If Output geometry precision is set to zero or not specified, no generalization of output geometry is performed. If it is specified and positive, it reduces the overall response size and improves the performance for drawing the shapes in the applications.
- Enter values to control how many decimal places to write out in the response geometries.
The number of decimal places for x, y, z, and m values should be between 0 and 16. Specifying values for these settings will reduce payload size.
- Click Save.