Weather-aware truck routing
Three ranked truck routes, each checked against the forecast at the time the truck reaches every checkpoint.
Client: Technical build (open source) · Industry: Logistics · Location: United States road network
The challenge
Weather on a route matters when the truck gets there, not at departure, and heavy loads change what wind is safe.
What I built
- Three genuinely different routes from Valhalla truck routing, with OSRM as fallback.
- An ETA for every checkpoint and the hourly forecast interpolated to that exact time.
- Risk from wind, rain and snow, with load-weight rules that raise wind risk.
- Routes ranked by risky miles, with a plain-English recommendation and a 48-hour risk heatmap.
The result
A live tool with 34 backend tests and caching for routes, weather and geocoding; source code is public.
My role: Designed, built, tested and deployed it end to end
Stack: React, TypeScript, Django REST Framework, Valhalla / OSRM, Open-Meteo, Leaflet
Related
Start a project · All case studies