Measuring Transit Access to Hospitals using Python

This workshop was designed and taught by Dr. Willem Klumpenhouwer. At the time of recording, Dr. Klumpenhouwer was a Postdoctoral Fellow with the Transit Analytics Lab, University of Toronto, Supervised by Dr. Amer Shalaby. You can find Dr. Klumpenhouwer at https://www.klumpentown.com/

Measuring access to opportunities in a transportation system requires two key ingredients: Travel times (typically in the form of travel time matrices) and opportunity locations. In this workshop, we will use a brand-new Python module called r5py to quickly generate realistic travel time matrices for public transit and other modes. The workshop will outline the basic approach used to generate the matrices, and explore some of the ways it can be used to calculate travel time measures to hospitals. To get the most out of the workshop, participants should have a familiarity with Python notebooks and the Pandas library, as well as basic geospatial mapping software experience to visualize and quality-check the results. This workshop will use Python notebooks and a provided dataset from CANUE and supplemental open datasets. Previous experience with python is required. This workshop uses open tools and open data. No special data access application is required.

Workshop code and data access instructions:

In this workshop you will be following along with your own copy of various Python notebooks. This will allow you to see the results of our work and to make changes along the way to help you learn and experiment. There are two ways to access these workshop materials:

  1. (Recommended) Install the required Python software and packages on your computer. While this option takes a bit more up-front work, it will allow you to have a more flexible and smooth experience with the materials, and will enable you to continue work and adapt the code more easily after the workshop. Installation instructions and code are found on this GitHub repository.

  2. Make use of a cloud-hosted instance of the materials. For this option, you will not need to do anything, however you can visit the materials in advance at this Binder location. Please note that depending on when you access it it might take some time to load, please be patient. This option has limited resources, and as such it might run slower than expected or have trouble producing some of the results.

Our recommendation is to attempt to install the items yourself using option 1. If it doesn't work, don't fret (it doesn't always go smoothly, especially on Windows), option 2 is available as a back-up.

Please credit Dr. Willem Klumpenhouwer whenever you use these files.

These workshops are presented in collaboration by GeoHealth Network, The Canadian Urban Environmental Health Research Consortium (CANUE), Population Data BC, University of Victoria Continuing Studies and sponsored by the University of Toronto Tri-Campus Graduate Program in Geography and Planning, School of Cities, and University of Toronto - Mississauga (The Angela B. Lange and Ian Orchard Graduate Student Initiatives Fund).