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.
2024-11-05 08:27:07 -06:00
- The actual route generation is done with OSRM and brouter, those are run locally in docker containers.
2024-10-28 17:02:30 -05:00
- 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

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

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

2024-10-29 10:43:27 -05:00
## Using make
2024-11-05 07:52:14 -06:00
- `make osrm-data` : downloads the OpenStreetMap data for Wisconsin, and preproccesses it for use with OSRM.
- `make osrm-container` : starts the OSRM containers (backends and frontends) for walking and biking.
- `make brouter-data` : clones the repositories for brouter and brouter-web and downloads the segment data. It also builds the docker images for brouter and brouter-web.
- `make brouter-container` : starts the brouter containers (backend and frontend).
- `make walk` will run *route_analysis.Rmd* which
calculates the walking routes using OSRM.
- `make cycle-osrm` will run *cycling_route_analysis.Rmd* which calculates the biking routes using OSRM.
2024-11-05 07:59:38 -06:00
- `make cycle-brouter` will run *cycling_route_analysis_brouter.Rmd* which calculates the biking routes using brouter.
2024-10-31 17:12:08 -05:00
## Misc.
- [Bike Level of Traffic Stress (LTS) ](https://www.dvrpc.org/webmaps/bike-lts/analysis/ )
2024-11-04 18:50:47 -06:00
## OpenStreetMap Data
- [wisconsin-latest.osm.pbf ](https://download.geofabrik.de/north-america/us/wisconsin-latest.osm.pbf )