fix(roadtrip): also take intermediate stops into account

A booking's intermediate stops are now part of the route drawn on the map, and
they show up in the day list under their place name. They no longer need the
pickup and return times to be filled in.

Roadtrips that span several days work properly too. A car picked up on one day and
returned on the next showed both days as empty, and only the first half of the
drive was drawn.
This commit is contained in:
Philipp
2026-11-29 15:52:50 +01:00
committed by Maurice
parent aa54643713
commit 7de6bc39cd
13 changed files with 369 additions and 16 deletions
@@ -293,7 +293,7 @@ function carrier(role: CarrierTerminal['role'], over: Partial<CarrierTerminal> =
role,
title: car ? 'Sixt Hamburg' : 'LH 2020',
code: role === 'departure' ? 'HAM' : role === 'arrival' ? 'MUC' : null,
at: { departure: '13:20', arrival: '14:30', pickup: '09:00', return: '11:30' }[role],
at: { departure: '13:20', arrival: '14:30', pickup: '09:00', return: '11:30', stop: null }[role],
...over,
}
}