baldav/src-tauri
4aiman f376e0944d Route elevation preview: profile, topo/slope casing, GPXZ + fallback chain
See how hilly a hand-drawn route is BEFORE riding it.

- parseRouteGPX reads <ele>; GPS.routeElevStats computes cumulative distance,
  grade-to-next, ascent/descent (1m hysteresis) and max grade over smoothed
  elevations (filterAndSmoothAlt kills SRTM vertical noise).
- Route preview screen (tap a route name): map with a wide colored casing +
  tappable altitude/grade points, elevation profile chart (steep >8% in red),
  length/ascent/descent/max-grade, fullscreen expand/collapse.
- Casing colored by slope (deg: lime <2, yellow 2-4, red 4-6, black >6) or by
  elevation (green->yellow->brown), toggled with an on-map ∡/⛰ button. Casing
  drawn in a dedicated pane below the overlay pane, so a recorded track stays on
  top; the same toggle is on the track-detail map too.
- fetchElevations tries, in order: GPXZ (Copernicus GLO-30, key from GPS
  settings — stored in localStorage, never in git) -> open-elevation (SRTM) ->
  open-meteo -> OpenTopoData (keyless). Import auto-fetches elevations.
- db.js: updateRoutePoints persists fetched elevations into points_json;
  getRoutes reports hasEle. Route points are now {lat, lon, ele?}.

Native prompt at route import replaced with in-app appPrompt.
2026-08-03 19:29:51 +03:00
..
capabilities GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
gen/android/app/src/main GPS: safe on-device recovery, net-kcal model, poll/watchPosition dedup 2026-07-29 15:35:18 +03:00
icons GPX export + GPS background recording fixes 2026-05-16 10:49:55 +03:00
src Saved routes overlay + per-activity road colors + reversible track de-jitter 2026-07-31 22:11:55 +03:00
build.rs Seed products DB + Settings screen + build fixes 2026-05-14 17:35:29 +03:00
Cargo.lock Route elevation preview: profile, topo/slope casing, GPXZ + fallback chain 2026-08-03 19:29:51 +03:00
Cargo.toml Route elevation preview: profile, topo/slope casing, GPXZ + fallback chain 2026-08-03 19:29:51 +03:00
tauri.conf.json Route elevation preview: profile, topo/slope casing, GPXZ + fallback chain 2026-08-03 19:29:51 +03:00