mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +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:
@@ -499,6 +499,33 @@ const tours: TranslationStrings = {
|
||||
'OpenStreetMap のマッパーが付けた難度です。難度のない道は簡単ではなく不明です。そのトレイルがあなたに合うかどうかは示しません。',
|
||||
'tours.bike.trail.loading': 'トレイル難度を読み込み中…',
|
||||
'tours.bike.trail.failed': '今回はトレイル難度を読み込めませんでした。',
|
||||
'tours.hike.sac.title': 'SAC難易度',
|
||||
'tours.hike.sac.show': 'ルートに沿って表示',
|
||||
'tours.hike.sac.t1': 'ハイキング',
|
||||
'tours.hike.sac.t2': '山岳ハイキング',
|
||||
'tours.hike.sac.t3': '上級山岳ハイキング',
|
||||
'tours.hike.sac.t4': 'アルパインハイキング',
|
||||
'tours.hike.sac.t5': '上級アルパインハイキング',
|
||||
'tours.hike.sac.t6': '難度の高いアルパインハイキング',
|
||||
'tours.hike.sac.untagged': 'OpenStreetMapに難易度なし',
|
||||
'tours.hike.sac.unclear': '難易度が不明確',
|
||||
'tours.hike.sac.unmatched': '道が明確に一致しない',
|
||||
'tours.hike.sac.unasked': '今回は問い合わせできませんでした',
|
||||
'tours.hike.sac.unknown': '不明',
|
||||
'tours.hike.sac.stepTip': 'SACハイキングスケール {step}、OpenStreetMapより: sac_scale={tag}',
|
||||
'tours.hike.sac.untaggedTip': 'OpenStreetMapはこれらの道にsac_scaleを付けていません。不明は易しいという意味ではありません。',
|
||||
'tours.hike.sac.unclearTip': 'OpenStreetMapはここに{tags}と記載しており、単一の段階を示していません。',
|
||||
'tours.hike.sac.unmatchedTip': 'ここではツアーの線の下に明確に道がないため、難易度は表示されません。',
|
||||
'tours.hike.sac.known': '判明',
|
||||
'tours.hike.sac.knownTip': 'OpenStreetMapがSAC難易度を示しているルートの割合です。残りは不明です。',
|
||||
'tours.hike.sac.highest': '判明している最高',
|
||||
'tours.hike.sac.routingLimit': 'ルート探索の上限',
|
||||
'tours.hike.sac.routingLimitTip': 'ルート探索が使える上限です。設定であり、道の難易度ではありません。',
|
||||
'tours.hike.sac.aboveLimit': '上限を超えています',
|
||||
'tours.hike.sac.loading': 'SAC難易度を読み込み中…',
|
||||
'tours.hike.sac.offline': 'SAC難易度には接続が必要です。',
|
||||
'tours.hike.sac.failed': 'SAC難易度を読み込めませんでした。ツアーは変更されていません。',
|
||||
'tours.hike.sac.source': 'OpenStreetMapより。欠けがある場合があり、安全性の評価ではありません。',
|
||||
'tours.copy.action': '新しいツアーとして保存',
|
||||
'tours.copy.hint': 'このツアーを日程なしの独立した新しいツアーとしてコピーします。元のツアーはそのままです。',
|
||||
'tours.copy.name': '{name}(コピー)',
|
||||
|
||||
Reference in New Issue
Block a user