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:
@@ -490,6 +490,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