mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-06 10:44:23 +00:00
feat(roadtrip): let a day drive along an imported track
An imported GPX track was a line drawn beside the day: the map showed the scenic route while the day kept driving the motorway, so the distance, the drive time and every warning belonged to a road nobody was taking. Norway publishes its scenic routes that way, and so does every touring club worth importing from. A track becomes a route the day takes by refinement, not by conversion. Route through what we have, find the point of the track the road misses by the most, make that point a via, go again. Each round roughly halves the worst miss, because the new via lands in the middle of what the last one left unfollowed, so a scenic route usually fits inside ten vias — and the loop stops when the road is close enough rather than after a fixed count. Every point of the track would route exactly and take a hundred requests; two would route in seconds and follow nothing. The day is routed whole per round, not leg by leg: it is a single request already, and per-leg would multiply every round by the number of legs against a host that answers one request a second. The track is oriented to the day first, because half of Norway's routes are published southbound, and the legs it covers are cleared before the new chain lands, so applying a track twice does not stack. Offered from the day's own badges, and only once something has been imported. Tinted while the day carries vias: the rail draws none of them, so that badge is the only place a drive shaped by hand differs from one the router picked.
This commit is contained in:
@@ -46,6 +46,24 @@ const roadtrip: TranslationStrings = {
|
||||
'roadtrip.poi.free': 'Bezpłatnie',
|
||||
'roadtrip.poi.wholeDay': 'Caly dzien',
|
||||
'roadtrip.poi.midLeg': 'W polowie, {from} do {to}',
|
||||
'roadtrip.track.title': 'Dzień {number} podąża za śladem',
|
||||
'roadtrip.track.hint': 'Niech ten dzień podąża za zaimportowanym śladem',
|
||||
'roadtrip.track.badge': 'Ślad',
|
||||
'roadtrip.track.untitled': 'Ślad bez nazwy',
|
||||
'roadtrip.track.empty': 'Brak śladów w tej podróży',
|
||||
'roadtrip.track.emptyHint': 'Zaimportuj plik GPX lub KML, a jego ślady pojawią się tutaj.',
|
||||
'roadtrip.track.length': '{distance} długości',
|
||||
'roadtrip.track.gap': '{distance} od tego dnia',
|
||||
'roadtrip.track.onDay': 'wzdłuż tego dnia',
|
||||
'roadtrip.track.explain': 'Trasa zostaje naciągnięta na ślad kilkoma punktami pośrednimi. Istniejące punkty na tych odcinkach zostaną zastąpione.',
|
||||
'roadtrip.track.action': 'Podążaj za tym śladem',
|
||||
'roadtrip.track.working': 'Dopasowywanie trasy do śladu, runda {round}',
|
||||
'roadtrip.track.done': 'Ustawiono {count} punktów pośrednich. Trasa trzyma się śladu w promieniu {distance}.',
|
||||
'roadtrip.track.capped': 'Ustawiono {count} punktów pośrednich. W najszerszym miejscu trasa mija ślad o {distance}.',
|
||||
'roadtrip.track.already': 'Trasa już podążała za tym śladem.',
|
||||
'roadtrip.track.errorRoute': 'Usługa wyznaczania trasy nie odpowiedziała.',
|
||||
'roadtrip.track.errorSave': 'Nie udało się zapisać punktów pośrednich.',
|
||||
'roadtrip.track.clear': 'Usuń {count} punktów pośrednich',
|
||||
'roadtrip.poi.rest': 'Miejsce odpoczynku',
|
||||
'roadtrip.poi.campsite': 'Kemping',
|
||||
'roadtrip.poi.food': 'Jedzenie',
|
||||
|
||||
Reference in New Issue
Block a user