I have some difficulties on network analysis,I want to run shortest path algorithm, I don't know how to use ArcGIS to reveal the shortest route between the appointed points on the map, and if it's possible, can I also use this software to record and calculate the number of the real road be taken as shortest route?

I have about 200 point to be the origins and destinations on the map, and I need the shortest route between these appointed points (200*200) and let them revealed on the map And then,record and calculate the number of the real road be taken as shortest route.

but i can only have one shortest route between two points once a time if i use the toolbar, i am wondering how can i make all the shortest routes between 200 points one time? do i have to use any progamming method?

  • You need to have Network Analyst extension to have the full power of ArcGIS Network Analysis. Basic routing can also be done using Utility Network toolbar.
    – ujjwalesri
    Commented Aug 1, 2011 at 10:34

2 Answers 2


There are two choose for you on NAServer. The NAServer is a MapServer object extension that can be used to perform network analysis in a stateless environment using ArcGIS Server.

For publishing a network analysis service you can check out this tutorial...

1.Closest Facility Analysis: displays the best routes between incidents and facilities.

Closest Facility Analysis

2.OD Cost Matrix: (origin–destination (OD) cost matrix) a table that contains the network impedance from each origin to each destination.



and showing them in a map as openlayers, you can use ArcGIS Server Service.

1.Go to Home > Network(NAServer) > Route
2.Select Solve Route
3.Define your points and barriers
4.Get format as JSON
5.Read json features and add them to vector layer.

example NAServer is here. beside this you have to define stops as following structure:

"features"  : [
  "geometry" : {"x" : -122.4079, "y" : 37.78356},
  "attributes" : {"Name" : "From", "RouteName" : "Route A"}
  "geometry" : {"x" : -122.404, "y" : 37.782},
  "attributes" : {"Name" : "To", "RouteName" : "Route A"}

you can check out this example:

you should know this the link is so long:



You need to use OD Cost Matrix tool of the Network Analyst extension. It calculates 200*200 lines follwing the shortest path, but I do not know how to show them on the map nor how to calculate the number of the real road be taken as shortest route.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.