-
Notifications
You must be signed in to change notification settings - Fork 7
PublishRoutingServices
If you are using ArcGIS Enterprise 10.6 or later, these tools are included as part of Publishing Routing Services utility that ships with ArcGIS Server. The tools mentioned on this site should only be used with ArcGIS Enterprise 10.5 and 10.5.1
In this topic
Routing services are a collection of Map and Geoprocessing services that allow you to perform route, closest facility, service areas, location-allocation, vehicle routing problem, and origin destination cost matrix analyses on transportation networks and visualize traffic speeds based on historical averages if your network dataset supports traffic.
Before your are ready to publish routing services make sure you have correct software and have completed the data setup.
The services are published using Publish Routing Services geoprocessing tool. This tool needs to be run from a publisher machine (i.e. machine running ArcGIS Desktop). The tool creates following services in your ArcGIS Server site.
-
NetworkAnalysis - A map service with network analysis capability to perform route, closest facility and service area analyses in synchronous execution mode. The service can also be used to visualize historical traffic patterns. The service is meant for executing analysis that complete quickly.
-
NetworkAnalysis - A geoprocessing service that has tools (or tasks) to perform route, closest facility, service areas, location-allocation and vehicle routing problem analyses in asynchronous execution mode. The tools within this service are meant for executing analysis that take significantly longer time to complete.
-
NetworkAnalysisSync - A geoprocessing service that has tools (or tasks) to perform vehicle routing problem analysis in synchronous execution mode. The tools within this service are meant for executing analysis that complete quickly.
-
NetworkAnalysisUtilities - A geoprocessing service that has tools (or tasks) to provide auxiliary information for running tools within NetworkAnalysis and NetworkAnalysisSync geoprocessing services.
-
Download the routing tools archive which contains tools that are published as routing services as well as tools to publish routing services.
-
Unzip the archive to a folder on your publisher machine.
-
From Catalog Window in ArcMap, navigate to the folder containing the routing tools you downloaded earlier.
The Publish Routing Services and Analyze Network Dataset geoprocessing tools from the the UtilityTools toolbox is what we will use next. You can read the documentation for the tools by clicking the Tool Help button.
Before publishing routing services, it is important to first run the Analyze Network Dataset tool and fix any errors and warnings reported by the tool. The Publish Routing Services tool also internally calls the Analyze Network Dataset tool and will fail to execute in case the analyzer returns any errors. However if the analyzer only returns warnings, the Publish Routing Services tool will proceed without giving you a chance to correct any warnings.
To run the Analyze Network Dataset tool, follow these steps:
-
Open the Analyze Network Dataset geoprocessing tool from the UtilityTools toolbox.
-
Specify the network dataset and run the tool by clicking the OK button.
You need to fix all the errors and optionally the warnings returned from the tool.
Once you have analyzed your network dataset and fixed any errors and warnings, you can publish the routing services by following these steps:
-
From Catalog Window in ArcMap, navigate to the folder containing the file geodatabase from the StreetMap Premium data or your own network dataset. This should have been setup as part of the data setup.
-
Browse to network dataset within the file geodatabase in the STREET_DATA folder and drag-drop it to the Table of Contents.
-
Click No in Adding Network Layer dialog to not add the feature classes that participate in the network dataset.
-
Hit the
ESCkey to stop drawing the layer in ArcMap display. The network dataset layer (calledRouting_NDfor SMP data) can reference network dataset for the entire region (such as North America) and so it can take some time before the layer draws completely. -
In the ArcMap Table of Contents, turn off the visibility of the network dataset layer. If the network dataset supports traffic, the network dataset layer is used for visualizing traffic speeds and its visibility will be setup as part of publishing routing services.
-
From Customize menu, select Extensions and check the
Network Analystentry within the Select the extensions you want to use list in the Extensions dialog. This ensures that you have checked out the Network Analyst license required by the Publish Routing Services tool. -
In the ArcMap Catalog Window, navigate to the folder containing the routing tools you downloaded earlier.
-
Open the Publish Routing Services geoprocessing tool from the UtilityTools toolbox. You can read the documentation for the tool by clicking the Tool Help button.
-
Specify the values for the tool parameters and run the tool by clicking the OK button.
Upon successful execution of Publish Routing Services tool, your ArcGIS Server site will have all the routing services.
If the tool execution fails, a log file PublishRoutingServices.log, with details about the failure is saved on your computer. Please add an issue about the failure providing the details from the log file.