This repo contains all the necessary files to render the blog post, along with a jupyter notebook and some raw data so that someone can get started analyzing it immediately.
To install the necessary python packages, just run pip install -r requirements.txt
. To setup OSRM is a bit more involved, and I recommend you see the blog post for more details.
I have some starter code in a jupyter notebook that you can use to get you started on the route analysis in python, after the OSRM server has been setup.
The data that I used can be found in this CSV, and I have some useful shell scripts and environment variables defined in configs.sh.
The configs file only has placeholders; fill them in with your GCP information if you would like to use it.
Then, just run source configs.sh
to activate it. (Make sure you know what it does before you run it!)
Unfortunately, GitHub does not allow <iframe></iframe>
tags to render, so I couldn't figure out how to get the maps to render correctly on GitHub (this includes both the .md
and .ipynb
files). If you want to play around with the interactive maps, go visit my blog, or you can just directly download the html files and open them in your browser.