Solve route


Purpose
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. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

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


Download the files for Java
networkanalyst/SolveRoute.java Main class




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime: Network
ArcView: Network Analyst