fix(route-builder): use Swisstopo elevations for snapped routes

routeWaypoints passed BRouter's coarse, SRTM-based inline elevations
straight through, and the client only queried Swisstopo when a point
lacked an altitude — so snapped routes never hit the Swiss terrain model
and shipped a jagged profile that disagreed with the densified off-trail
path. Overwrite every routed point with enrichElevations (geo.admin.ch),
keeping the router's value only as a fallback where Swisstopo returns null
(hikes abroad). Disk-cached by coordinate list, so repeat snaps stay free.
This commit is contained in:
2026-05-22 18:51:02 +02:00
parent 35872d731a
commit 8f843833e0
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.84.0",
"version": "1.84.1",
"private": true,
"type": "module",
"scripts": {