This code calculates cycling Level of Traffic Stress for all road and path segments in a region using data from Open Street Map.
This code is adapted from Bike Ottawa's LTS code, modified to include Level of Traffic Stress for intersections by Madeleine Bonsma-Fisher.
- From
main
you can change the city you want to perform the analysis on.- To get the right query details, inspect openstreetmap.org
for a
relation
of the region you want - Fill in this info in the city info
- To get the right query details, inspect openstreetmap.org
for a
- pip install requirements.txt, ideally in a virtual environment (venv)
Plot an isochrone map for different LTS thresholds with isochrone.py
. This requires both the saved graph object and the dataframe with LTS levels calculated.