New answers tagged network-analyst
You can also use our free OSM converter from www.routeware.dk, which can create routable datasets in SHP format. Output is formatted to be easy to use with our own software, but with a few field updates, you can also use it with Network Analyst.
Assuming you have ArcMap and a Network Analyst extension (as mentioned in your question) it is possible to use OSM data for routing without using qgis. The most important is that you need to generate a routable network (called "network dataset" in esri world). Eva Peters created a tool called OSM2NetworkDataset which converts OSM datasets (*.osm) into a ...
QGIS cannot convert OSM data into a routable graph. There are other tools which specialize on this task: osm2pgrouting open source osm2po free but not open source Both convert OSM data into a routable graph for import into PostGIS. From there, you can export in a format that you can feed into ArcGIS.
You will want to solve this in Network Analyst. Once you create your network dataset and select Vehicle Routing Problem. Load your depot and your stops (orders) into it and then solve click solve network. This will solve your routes for you, The right click ORDERS from the TOC and select open attributes, in the attribute table you will see many fields, ...
You should use the Closest Facility solver in the NA. Don't forget to enable the NA extension! Look at this short tutorial if you haven't worked with NA before. Create a NA layer Closest Facility. Load all points in your first feature class as Facilities. Load all points in your second feature class as Incidents. Change Facilities to Find option in the NA ...
The Route analysis solver should be able to take care of this for you. Just include stops in the analysis and the solver can plot the best route (or whatever criteria you specify) through locations you need to cover. Network Analyst - Route analysis
Consider adding "Point" cost barriers. See Barriers.
From what you have shown us of your code and error there seems to be a mismatch. You are trying to call arcpy.na.GetNAClassNames() and yet the error says: AttributeError: 'module' object has no attribute 'GetClassNames' and not: AttributeError: 'module' object has no attribute 'GetNAClassNames' I think you are either looking at a line of code ...
Tutte - I'm pretty sure you are almost there with your code. You just need to retrieve the routing result sublayer from your solved Routing Analysis layer, and then save it to a permanent location on disk: #....starting here from your code above # Get a path to the routes sub layer outNARoutesSubLayer = arcpy.mapping.ListLayers(outNALayer, ...
As stated in another answer, this is a type of Steiner Tree problem. The problem is NP-Complete (basically meaning you can't solve the best possible solution in any reasonable amount of time). You would need to approximate the solution - there is no tool within the ESRI platform to do this for you directly. The closest "out of the box" tool I've found ...
You would need to use Network Analyst extension. It is a separate extension you would need to buy, it can be installed with the ArcGIS for Desktop installation, but to use it you need to buy a license. Enable extension in ArcMap. Obtain / prepare network dataset. Use Route layer with Reorder Stops To Find Optimal Route option. By default, a route ...
Top 50 recent answers are included