Weather-Aware Truck Routing
Picking the safest route for a truck from the forecast
Pick a start, a destination, a departure time and a load weight. The app finds up to three routes, works out when the truck reaches each checkpoint, checks the forecast for that place at that hour, and recommends the safest route with a one-sentence reason.
Django REST Framework, React, TypeScript, MapLibre GL JS, TanStack Query, OSRM, Open-Meteo

- Forecasts are looked up for the hour the truck actually arrives, not the hour it leaves. A 6 am departure from Chicago doesn't care what Nebraska's weather is at 6 am.
- Every checkpoint is scored from Low to No Travel, taking load weight into account, and shown on a map with a time slider and a heatmap of bad weather.
- Routes of about 15,000 points are thinned to roughly a thousand with the Ramer-Douglas-Peucker algorithm before they reach the browser.
- Backend and frontend both have tests, and the README lists what it doesn't handle yet: wind gusts, rest-break aware ETAs, request throttling.