A production-focused engineering reference for building, deploying, and scaling OpenStreetMap-based routing systems in Python.
🌐 Live site: www.geospatialrouting.com
From a raw OpenStreetMap extract to a routing engine serving sub-100 ms queries in production, this site documents the full pipeline — topology construction, cost-function engineering, isochrone generation, and fleet-scale API automation — with runnable Python, hand-authored diagrams, and hard-won operational guidance rather than toy examples.
The library is organised into three in-depth knowledge areas:
Turn volunteered OpenStreetMap data into a correct, routable, directed graph: streaming PBF extraction, directionality and turn-restriction handling, freight edge weights, node attributes for urban delivery, multi-modal transit layers, speed-profile calibration, and graph-fragmentation prevention.
Deploy and tune real engines in production: OSRM on Docker, Valhalla costing configuration, NetworkX shortest-path algorithms, custom cost functions, and isochrone generation with PySAL and GeoPandas — plus benchmarks across NetworkX, igraph, and cuGraph for large-scale graphs.
Automate the fleet-routing stack end to end: async batch geocoding, parallel route-matrix computation, webhook-driven dynamic re-routing, EV charging-aware optimization, GTFS multi-modal trip planning, and reproducible routing-engine benchmarking.
Logistics engineers optimizing fleet dispatch, GIS developers building accessibility and service-area tools, urban planners modelling 15-minute-city reachability, and Python backend engineers designing spatial microservices.
- Eleventy static-site generator (Nunjucks + Markdown)
- Hand-authored, theme-aware inline SVG diagrams (no runtime dependencies)
- Structured data (JSON-LD:
Article,BreadcrumbList,HowTo,FAQPage) on every page - Deployed on Cloudflare Workers (static assets)
npm install # install dependencies
npm start # serve locally with live reload (http://localhost:8080)
npm run build # build the static site into _site/
npm run deploy # build + deploy to Cloudflare Workers- Website: https://www.geospatialrouting.com
- GitHub: https://github.com/geospatialrouting
© Geospatial Routing. Content and code for the geospatialrouting.com knowledge base.