It would be helpful if exporting of the turn-by-turn directions (i.e., the Directions tool) could be used for routes that were created using the ESRI/ArcGIS Online published data source. Running the tool already consumes credits and if you're running the Directions tool in Pro, you already need to buy the Network Analyst license. In other words, the user is already paying for this functionality, it would be helpful to extend it to exporting those turn-by-turns in plain text/CSV file. I am already aware this tool can only be run on routes that were generated using network data sources that are not ESRI published services.
You're correct that the Directions tool doesn't work when the network analysis layer uses a service as its network data source. However, turn-by-turn directions are available. You can print them from the Directions pane. Or, if you want to do something more custom with them, you can access the DirectionPoints and DirectionLines feature classes in the feature dataset that stores the network analysis layer's data.
To find the feature dataset where the network analysis layer's data is stored:
You'll find the DirectionPoints and DirectionLines feature classes like this:
The schema of those feature classes is documented here (for Route): https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/route-output-data-types.htm#ESRI_SECT... (I know this is the arcpy.nax documentation, but it's the same schema.) The other solvers that support directions have a nearly identical schema, with some minor differences in the ID fields that refer back to the original inputs.
Does this serve your needs? If not, please let us know specifically which features of the Directions tool you would like to see implemented (which output type, etc.).
Hi Melinda
From your description, I highly doubt the Directions geoprocessing tool is going to give you the output you need. It's not really machine readable, so unless it gives you exactly what you want, it's unlikely to be usable. You can download some network datasets from our Pro tutorial data here and give the tool a try yourself: https://links.esri.com/NetworkAnalyst/TutorialData/Pro
The Directions geoprocessing tool was created a very long time ago and utilizes an earlier way of generating directions that is more or less deprecated, at least internally. It doesn't use the new directions engine under the hood, which generates the DirectionPoints and DirectionLines feature classes. Those feature classes (the newer-style directions) are the only directions information we get back from services. We don't have the older style directions information available to us, so we can't support the Directions tool when solving against a service. It is extremely unlikely that we would ever make any updates to that tool to support this.
It sounds like you have very specific needs for the output text and format for your turn-by-turn directions. I think coming up with an automated process for post-processing DirectionPoints and DirectionLines will be your best bet. The calculations you mentioned seemed straightforward enough. If you can implement them using the Calculate Field tool or something like that, you could run them in a Python script or model.
Another option is to use our custom directions functionality in the arcpy.nax module: https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/custom-directions.htm. This allows you to customize the directions maneuver text as it's being generated, although this only works if you have a local network dataset and not a service.
Thank you Melinda, you've given me a lot to consider and I appreciate the additional links.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.