ecotner / osrm-blog

scripts to accompany a blog post about how to set up/use OSRM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binder

OSRM blog post

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.

Setup

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.

Starter code

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!)

Interactive maps

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.

About

scripts to accompany a blog post about how to set up/use OSRM

License:MIT License


Languages

Language:HTML 57.9%Language:Jupyter Notebook 42.1%Language:Shell 0.0%