Solve route

This sample application demonstrates how to programmatically perform route analysis. It shows how to load stops from a feature class, set solver parameters, execute the analysis, and write the analysis layer to a layer file that can then be used.
This sample solves a route and uses a geoprocessing tool to save the route to disk as a layer file.

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Run the SolveRoute application.
  2. Examine the output messages on the console and the output dataset.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

networkanalyst/ Main class

Development licensing Deployment licensing
Engine Developer Kit Engine: Network Analyst
ArcGIS for Desktop Basic: Network Analyst