In this recipe, we build upon several techniques described in the previous recipes in order to create a simple GPS-like route planner in Python. We will retrieve California's road network data from the United States Census Bureau in order to find shortest paths in the road network graph. This will allow us to display road itineraries between any two locations in California.
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. You can install it with conda install gdal
.