feat(roadtrip): draw corridor hits on the map and build the day in one request

Three things the first cut got wrong.

Switching into road trip mode took its time: every leg was its own routing request,
paced a second apart so the shared hosts would answer at all. The router already
returns a leg per consecutive pair of the waypoints it is handed, so a day is now one
request — split only where the travel mode changes, because one request carries one
mode. Answers that come from the cache are no longer paced at all, which is what made
returning to the view feel broken.

A list of petrol stations is half an answer: which one is on your side of the road is
the other half. The corridor search therefore moved out of the panel into the planner,
and its hits are handed to the map like any other place suggestion — grey, because they
are not part of the trip until you add one. The explore pill stands down while the mode
is on: it draws into the same channel and answers the same question for a drive.

The panel itself was a stack of controls without an order. It now reads as header,
search, results: what is being searched (with the day's distance and driving time),
what is being looked for, how far off the route, then the hits grouped by kind with a
count — and a progress bar while the boxes are being worked through.
This commit is contained in:
Maurice
2026-08-28 22:40:04 +02:00
committed by Maurice
parent 07a4447bbd
commit 647e972c8b
30 changed files with 441 additions and 112 deletions
+5
View File
@@ -11,6 +11,11 @@ const roadtrip: TranslationStrings = {
'roadtrip.stops.label': 'Stopp längs vägen',
'roadtrip.stops.remove': 'Ta bort stopp',
'roadtrip.poi.title': 'Längs rutten',
'roadtrip.poi.hint': 'Sök längs en dags körning efter det du behöver på vägen.',
'roadtrip.poi.scope': 'Dag',
'roadtrip.poi.looking': 'Söker efter',
'roadtrip.poi.searchingHint': 'Söker längs rutten…',
'roadtrip.poi.found': '{count} längs vägen',
'roadtrip.poi.fuel': 'Bensin',
'roadtrip.poi.charging': 'Laddning',
'roadtrip.poi.rest': 'Rastplats',