Routing a cross-country road trip with Open Source Routing Machine (OSRM)

Spatial Analysis

In July 2023, I went on an eighteen-day road trip across the U.S., starting in Maryland, driving all the way to southern California, and then heading north up the coast to Oregon before driving back to Maryland.

The blog post by Andrew Heiss about mapping his own cross-country road trip with R and OpenStreetMap inspired me to build my own version with Python. Many of my steps closely follow his, though I present the stops and routes using dyanmic maps instead of his static maps and must format the data differently to account for discrepencies between the R and Python Open Source Routing Machine (OSRM) packages.

Scroll down to view and interact with the notebook!