Add road type color mode to route visualization

Extract highway=* tags from BRouter tiledesc messages alongside surface
data and add a new "Road Type" color mode that colors the route polyline
and elevation chart by OSM highway classification (cycleway, residential,
path, etc.). Includes color palette, legend, hover labels, i18n (EN+DE),
unit tests for tag extraction, and E2E tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-11 03:41:49 +02:00
parent f4f0cbc4c8
commit 1e2f6beded
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9
18 changed files with 690 additions and 21 deletions

View file

@ -102,6 +102,7 @@ export default {
elevation: "Höhe",
surface: "Untergrund",
grade: "Steigung",
highway: "Straßentyp",
surfaceLegend: "Farbe nach Straßenbelag",
surfaceUnavailable: "Untergrunddaten für dieses Profil nicht verfügbar",
},
@ -111,6 +112,7 @@ export default {
loss: "Höhenmeter abwärts",
profile: "Höhenprofil",
grade: "Steigungsprofil",
highway: "Straßentypenprofil",
low: "Tief",
high: "Hoch",
},

View file

@ -102,6 +102,7 @@ export default {
elevation: "Elevation",
surface: "Surface",
grade: "Grade",
highway: "Road Type",
surfaceLegend: "Color by road surface type",
surfaceUnavailable: "Surface data not available for this profile",
},
@ -111,6 +112,7 @@ export default {
loss: "Elevation Loss",
profile: "Elevation Profile",
grade: "Grade Profile",
highway: "Road Type Profile",
low: "Low",
high: "High",
},