mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
feat(tours): show the known SAC grades along a hike (MAP-03)
A hike in the planner, being edited or viewed as an import, now has an "SAC grades" card. Switched on, it asks the router which OpenStreetMap ways lie under the line (matched on foot, every grade of path open) and the server reads their sac_scale through the Overpass mirrors, the same trail-grades read the mountain bike grades use. The grades are drawn along the route on the planner map in one ramp of a single hue, T1 to T6, and listed by share and length; a row draws its class alone. Each row names its source in a tooltip: the SAC hiking scale and the sac_scale value OpenStreetMap wrote. What is not known stays unknown and says why, never T1: a way without a grade, a grade that names no single step (handed on as written), a stretch with no way clearly under the tour's line, or a way that could not be asked about. For imported tracks and stretches drawn by hand a matched way only counts where it keeps within 25 m of the tour's own line, so the original line is kept and nothing is guessed. The router's own reading of the scale is not asked for, since it may be normalised. The routing limit of a planned hike sits apart as a setting with its own badge, and a known step above it is marked. Nothing about the tour, its places or its days changes; switched off, the map is as it was. No regional colour categories and no grade derived from slope, height or trail markings.
This commit is contained in:
@@ -510,6 +510,33 @@ const tours: TranslationStrings = {
|
||||
'Stupně, jak je zadali mapovači OpenStreetMap. Cesta bez stupně je neznámá, ne snadná. Neříkají nic o tom, zda se trať hodí pro tebe.',
|
||||
'tours.bike.trail.loading': 'Načítá se obtížnost tratí…',
|
||||
'tours.bike.trail.failed': 'Obtížnost tratí se tentokrát nepodařilo načíst.',
|
||||
'tours.hike.sac.title': 'Obtížnost SAC',
|
||||
'tours.hike.sac.show': 'Zobrazit podél trasy',
|
||||
'tours.hike.sac.t1': 'Pěší turistika',
|
||||
'tours.hike.sac.t2': 'Horská turistika',
|
||||
'tours.hike.sac.t3': 'Náročná horská turistika',
|
||||
'tours.hike.sac.t4': 'Vysokohorská turistika',
|
||||
'tours.hike.sac.t5': 'Náročná vysokohorská turistika',
|
||||
'tours.hike.sac.t6': 'Obtížná vysokohorská turistika',
|
||||
'tours.hike.sac.untagged': 'Bez stupně v OpenStreetMap',
|
||||
'tours.hike.sac.unclear': 'Stupeň nejasný',
|
||||
'tours.hike.sac.unmatched': 'Cesta není jednoznačně přiřazena',
|
||||
'tours.hike.sac.unasked': 'Tentokrát se nepodařilo zjistit',
|
||||
'tours.hike.sac.unknown': 'Neznámé',
|
||||
'tours.hike.sac.stepTip': 'Turistická stupnice SAC {step}, z OpenStreetMap: sac_scale={tag}',
|
||||
'tours.hike.sac.untaggedTip': 'OpenStreetMap těmto cestám nedává sac_scale. Neznámé neznamená snadné.',
|
||||
'tours.hike.sac.unclearTip': 'OpenStreetMap zde uvádí {tags}, což neoznačuje jediný stupeň.',
|
||||
'tours.hike.sac.unmatchedTip': 'Zde pod linií túry jednoznačně neleží žádná cesta, proto se stupeň nezobrazuje.',
|
||||
'tours.hike.sac.known': 'Známé',
|
||||
'tours.hike.sac.knownTip': 'Podíl trasy, pro který OpenStreetMap uvádí stupeň SAC. Zbytek je neznámý.',
|
||||
'tours.hike.sac.highest': 'Nejvyšší známý',
|
||||
'tours.hike.sac.routingLimit': 'Limit trasování',
|
||||
'tours.hike.sac.routingLimitTip': 'Nejvíc, co smí hledání trasy použít: nastavení, ne obtížnost cest.',
|
||||
'tours.hike.sac.aboveLimit': 'Nad limitem',
|
||||
'tours.hike.sac.loading': 'Načítají se stupně SAC…',
|
||||
'tours.hike.sac.offline': 'Stupně SAC potřebují připojení.',
|
||||
'tours.hike.sac.failed': 'Stupně SAC se nepodařilo načíst. Túra zůstává beze změny.',
|
||||
'tours.hike.sac.source': 'Z OpenStreetMap. Mohou chybět údaje; nejde o hodnocení bezpečnosti.',
|
||||
'tours.copy.action': 'Uložit jako novou túru',
|
||||
'tours.copy.hint': 'Zkopíruje tuto túru jako novou, samostatnou túru bez jejích dnů. Originál zůstane, jak je.',
|
||||
'tours.copy.name': '{name} (kopie)',
|
||||
|
||||
Reference in New Issue
Block a user