mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 10:24: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:
@@ -518,6 +518,34 @@ const tours: TranslationStrings = {
|
||||
'Graus como os mapeadores do OpenStreetMap os deram. Uma via sem grau é desconhecida, não fácil. Eles não dizem se a trilha combina com você.',
|
||||
'tours.bike.trail.loading': 'Lendo os graus das trilhas…',
|
||||
'tours.bike.trail.failed': 'Não foi possível ler os graus das trilhas agora.',
|
||||
'tours.hike.sac.title': 'Graus SAC',
|
||||
'tours.hike.sac.show': 'Mostrar ao longo da rota',
|
||||
'tours.hike.sac.t1': 'Caminhada',
|
||||
'tours.hike.sac.t2': 'Caminhada em montanha',
|
||||
'tours.hike.sac.t3': 'Caminhada exigente em montanha',
|
||||
'tours.hike.sac.t4': 'Caminhada alpina',
|
||||
'tours.hike.sac.t5': 'Caminhada alpina exigente',
|
||||
'tours.hike.sac.t6': 'Caminhada alpina difícil',
|
||||
'tours.hike.sac.untagged': 'Sem grau no OpenStreetMap',
|
||||
'tours.hike.sac.unclear': 'Grau incerto',
|
||||
'tours.hike.sac.unmatched': 'Trilha sem correspondência clara',
|
||||
'tours.hike.sac.unasked': 'Não foi possível consultar desta vez',
|
||||
'tours.hike.sac.unknown': 'Desconhecido',
|
||||
'tours.hike.sac.stepTip': 'Escala de caminhada SAC {step}, do OpenStreetMap: sac_scale={tag}',
|
||||
'tours.hike.sac.untaggedTip': 'O OpenStreetMap não dá sac_scale a estas trilhas. Desconhecido não quer dizer fácil.',
|
||||
'tours.hike.sac.unclearTip': 'O OpenStreetMap indica aqui {tags}, que não nomeia um único grau.',
|
||||
'tours.hike.sac.unmatchedTip':
|
||||
'Aqui nenhuma trilha fica claramente sob a linha do passeio, então nenhum grau é mostrado.',
|
||||
'tours.hike.sac.known': 'Conhecido',
|
||||
'tours.hike.sac.knownTip': 'A parte da rota cujo grau SAC o OpenStreetMap informa. O resto é desconhecido.',
|
||||
'tours.hike.sac.highest': 'Maior conhecido',
|
||||
'tours.hike.sac.routingLimit': 'Limite de roteamento',
|
||||
'tours.hike.sac.routingLimitTip': 'O máximo que a busca de rota pode usar: uma configuração, não o grau das trilhas.',
|
||||
'tours.hike.sac.aboveLimit': 'Acima do limite',
|
||||
'tours.hike.sac.loading': 'Lendo os graus SAC…',
|
||||
'tours.hike.sac.offline': 'Os graus SAC precisam de conexão.',
|
||||
'tours.hike.sac.failed': 'Não foi possível ler os graus SAC. O passeio não foi alterado.',
|
||||
'tours.hike.sac.source': 'Do OpenStreetMap. Pode haver lacunas; não é uma avaliação de segurança.',
|
||||
'tours.copy.action': 'Salvar como novo passeio',
|
||||
'tours.copy.hint':
|
||||
'Copia este passeio como um novo passeio independente, sem os seus dias. O original fica como está.',
|
||||
|
||||
Reference in New Issue
Block a user