safarzadeh-reza / Sample-Code_Rout-Planning

Sample code of finding the shortest path in road network using NetworkX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Route planner for a road network

Shortest path with NetworkX's shortest_path() function. Here, this function used Dijkstra's algorithm. This algorithm has a wide variety of applications, for example in network routing protocols.

You need Smopy for this recipe. You can install it with pip install git+https://github.com/rossant/smopy. In order for NetworkX to read Shapefile datasets, you also need GDAL/OGR.

About

Sample code of finding the shortest path in road network using NetworkX


Languages

Language:Jupyter Notebook 100.0%