Showing the forecast for the hour you arrive, not the hour you leave
How JourneyBench combines Google Maps routes with hourly weather so each stop on a trip shows the conditions you will actually meet.
- Next.js
- Supabase
- Google Maps
- Weather
Most weather apps answer one question: what is it like here, now. When you plan a road trip that is the wrong question. You want to know what Nuwara Eliya looks like at 13:15, when you will be there.
Turning a route into arrival times
JourneyBench asks Google Maps for the route and keeps the duration of every leg. Adding those durations to the departure time gives an arrival time for each stop.
Matching each stop to an hourly forecast
For every stop I request the hourly forecast and pick the hour closest to the arrival time. The result is a short list that reads like a plan:
- Colombo, 08:00, 29° clear
- Kandy, 10:40, 24° showers
- Nuwara Eliya, 13:15, 16° mist
- Ella, 16:30, 21° clear
Why it runs on the server
The page is rendered with Next.js on the server, so every shared route is indexable and loads with the forecast already in place. Supabase stores saved trips behind row-level security, so each account only ever reads its own plans.