mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +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:
@@ -513,6 +513,33 @@ const tours: TranslationStrings = {
|
||||
'Raskused nii, nagu OpenStreetMapi kaardistajad need andsid. Rada ilma raskuseta on teadmata, mitte kerge. Need ei ütle midagi selle kohta, kas rada sulle sobib.',
|
||||
'tours.bike.trail.loading': 'Loen radade raskust…',
|
||||
'tours.bike.trail.failed': 'Radade raskust ei õnnestunud seekord lugeda.',
|
||||
'tours.hike.sac.title': 'SAC raskusastmed',
|
||||
'tours.hike.sac.show': 'Näita mööda marsruuti',
|
||||
'tours.hike.sac.t1': 'Matkamine',
|
||||
'tours.hike.sac.t2': 'Mägimatkamine',
|
||||
'tours.hike.sac.t3': 'Nõudlik mägimatkamine',
|
||||
'tours.hike.sac.t4': 'Alpimatkamine',
|
||||
'tours.hike.sac.t5': 'Nõudlik alpimatkamine',
|
||||
'tours.hike.sac.t6': 'Raske alpimatkamine',
|
||||
'tours.hike.sac.untagged': 'OpenStreetMapis raskusaste puudub',
|
||||
'tours.hike.sac.unclear': 'Raskusaste ebaselge',
|
||||
'tours.hike.sac.unmatched': 'Rada pole üheselt sobitatud',
|
||||
'tours.hike.sac.unasked': 'Seekord ei õnnestunud pärida',
|
||||
'tours.hike.sac.unknown': 'Teadmata',
|
||||
'tours.hike.sac.stepTip': 'SAC matkaskaala {step}, OpenStreetMapist: sac_scale={tag}',
|
||||
'tours.hike.sac.untaggedTip': 'OpenStreetMap ei anna neile radadele sac_scale väärtust. Teadmata ei tähenda kerget.',
|
||||
'tours.hike.sac.unclearTip': 'OpenStreetMap märgib siin {tags}, mis ei nimeta ühte astet.',
|
||||
'tours.hike.sac.unmatchedTip': 'Siin ei asu ükski rada selgelt matka joone all, seega raskusastet ei näidata.',
|
||||
'tours.hike.sac.known': 'Teada',
|
||||
'tours.hike.sac.knownTip': 'Marsruudi osa, mille SAC raskusastme OpenStreetMap annab. Ülejäänu on teadmata.',
|
||||
'tours.hike.sac.highest': 'Kõrgeim teadaolev',
|
||||
'tours.hike.sac.routingLimit': 'Marsruutimise piir',
|
||||
'tours.hike.sac.routingLimitTip': 'Kõige rohkem, mida marsruudiotsing tohib kasutada: seade, mitte radade raskus.',
|
||||
'tours.hike.sac.aboveLimit': 'Üle piiri',
|
||||
'tours.hike.sac.loading': 'SAC raskusastmete lugemine…',
|
||||
'tours.hike.sac.offline': 'SAC raskusastmed vajavad ühendust.',
|
||||
'tours.hike.sac.failed': 'SAC raskusastmeid ei õnnestunud lugeda. Matk on muutmata.',
|
||||
'tours.hike.sac.source': 'OpenStreetMapist. Lüngad on võimalikud; see pole ohutushinnang.',
|
||||
'tours.copy.action': 'Salvesta uue matkana',
|
||||
'tours.copy.hint': 'Kopeerib selle matka uue, iseseisva matkana ilma päevadeta. Originaal jääb samaks.',
|
||||
'tours.copy.name': '{name} (koopia)',
|
||||
|
||||
Reference in New Issue
Block a user