mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-27 15:17:30 +00:00
feat(tours): estimate the walking time of imported tours
A hike imported from GPX, KML/KMZ or wanderer had no time at all, so several hikes on one day could not be planned against each other. It now gets the walking time the planner times a hike by (DIN 33466), worked out from its own distance, ascent and descent; a run gets its distance at the pace entered. Without heights in the track the time is unknown rather than the time on the flat, and types timed by a router, by a speed of their own or by nothing get no estimate. The estimate is derived on every read and never stored, so tours imported before get it too and no stored or entered time is touched. The rule moved to @trek/shared, where the planner, the client and the server read it. The tour list, the day rows on desktop and phone and the tour detail say it as an estimate, apart from a planned total; list_tours and get_tour_plan carry it as time_estimate and name it as derived.
This commit is contained in:
@@ -1323,5 +1323,12 @@ const tours: TranslationStrings = {
|
||||
'tours.stages.wholeTour': 'Ruta sencera',
|
||||
'tours.stages.totalPartial': 'conegut per a {known} de {of} etapes',
|
||||
'tours.stages.openInPlanner': 'Obre aquesta etapa al planificador',
|
||||
'tours.estimate.label': 'Temps estimat',
|
||||
'tours.estimate.short': 'Estimat',
|
||||
'tours.estimate.unknown': 'Desconegut',
|
||||
'tours.estimate.noHeights': 'El track no té altituds, així que no se’n pot estimar el temps.',
|
||||
'tours.estimate.basisDin':
|
||||
'Calculat a partir de la distància, la pujada i la baixada segons la regla dels senyals excursionistes (DIN 33466), sense pauses.',
|
||||
'tours.estimate.basisPace': 'Calculat a partir de la distància al ritme introduït.',
|
||||
};
|
||||
export default tours;
|
||||
|
||||
Reference in New Issue
Block a user