No description
Find a file
syounkin 7d7a980400 Created WI-schools-cycle.Rmd
This script loops through WI schools and computes the cycling route from each grid cell to school. These routes and grids are saved to rds objects to be analyzed in a separate script.
2024-11-21 11:32:27 -06:00
archive Added cycling_route_analysis.Rmd to archive/ 2024-11-07 12:23:08 -06:00
docker added shortest brouter profile 2024-11-14 17:53:00 -06:00
examples edited example png for cycling routes 2024-11-14 17:55:34 -06:00
html Run Markdown Script with make 2024-10-29 10:39:05 -05:00
other adjusted WI_schools data source 2024-10-31 14:04:15 -05:00
R Merge branch 'main' into sgy 2024-11-20 09:52:58 -06:00
.gitignore Stopped ignoring functions.R 2024-11-07 13:40:00 -06:00
cycling_route_analysis_brouter.Rmd added shortest brouter profile 2024-11-14 17:53:00 -06:00
LICENSE remade repo removing student addresses 2024-10-28 17:02:30 -05:00
Makefile Created WI-schools-cycle.Rmd 2024-11-21 11:32:27 -06:00
README.md new example figure with safety profile, edited README 2024-11-06 08:13:53 -06:00
route_analysis.Rmd changed name to ltscount (from routeslts) to match cycling_route_analysis_brouter.Rmd 2024-11-05 09:37:05 -06:00
route_to_school.Rmd Minor updates to route_to_school.Rmd 2024-11-20 09:51:08 -06:00
WI-schools-cycle.Rmd Created WI-schools-cycle.Rmd 2024-11-21 11:32:27 -06: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 brouter (using the safety profile) and OSRM (for the boundary polygons), those are run locally in docker containers.
  • 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.

Data sources

Example figures

This script will generate a few figures:

A heatmap of student addresses:

example address figure

A map of all the walking routes within the walk boundary:

example routes figure

A map of those walking routes colored by the level of traffic stress to bike

example routes-lts figure

A map of cycling routes colored by the level of traffic stress to bike (with a 3 mile radius)

example routes-lts figure

Using make

  • 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.
  • make cycle-brouter will run cycling_route_analysis_brouter.Rmd which calculates the biking routes using brouter.

Misc.

OpenStreetMap Data