route_analysis/README.md

30 lines
1.3 KiB
Markdown
Raw Normal View History

2024-10-28 17:02:30 -05:00
## Routes for walking to school
This script generates maps to analyze the potential walking routes for students to their school.
- I excluded the addresses of the students from the repository.
- The actual route generation is done with OSRM, I run it locally in a docker container.
- The basemap is pulled from Stadia Maps. The usage of the script is well within the free tier, you'll need an API key from them.
2024-10-31 11:22:22 -05:00
## Data sources
2024-10-31 11:23:17 -05:00
- School location data is from: https://data-wi-dpi.opendata.arcgis.com/
- Madison Bike Level of Traffic Stress is from: https://data-cityofmadison.opendata.arcgis.com/datasets/cityofmadison::bike-lts/explore
- Student addresses provided by school.
2024-10-31 11:22:22 -05:00
2024-10-28 17:02:30 -05:00
## Example figures
This script will generate a few figures:
2024-10-28 17:05:09 -05:00
### A heatmap of student addresses:
2024-10-28 17:04:04 -05:00
![example address figure](examples/example-addresses.png)
2024-10-28 17:02:30 -05:00
2024-10-28 17:05:09 -05:00
### A map of all the walking routes within the walk boundary:
2024-10-28 17:04:04 -05:00
![example routes figure](examples/example-routes.png)
2024-10-28 17:02:30 -05:00
2024-10-28 17:05:09 -05:00
### A map of those routes colored by the level of traffic stress to bike
2024-10-28 17:04:04 -05:00
![example routes-lts figure](examples/example-routes-lts.png)
2024-10-29 10:43:27 -05:00
## Using make
The command `make route_analysis` will run *route_analysis.Rmd* which
is an R markdown file containing the original R script *route_analysis.R*
## Misc.
- [Bike Level of Traffic Stress (LTS)](https://www.dvrpc.org/webmaps/bike-lts/analysis/)