diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-13 21:55:59 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-13 21:55:59 +0200 |
| commit | e3d0beee5be3dd2854b0f4fc10905a4fcdc08f47 (patch) | |
| tree | ec8234d3442c498ec170b6444bd2cfae5b29a476 /main.go | |
| parent | db4d2b40895db41ce188549f49a6f277ba95c890 (diff) | |
Persist official climb attempts with climbs pages
Record one attempt row per (ride, climb, occurrence) when a ride detail
loads, snapshotting distance, elevation gain, slope, cotacol and attempt
timestamps; a climbs-backfill CLI command seeds all existing rides.
New /climbs list page aggregates attempts (medians computed in Go, best
time as min duration) with sortable columns, and /climbs/{id} shows the
median scalar stats, a median normalized elevation profile (50 steps
over each attempt's own length), the full-precision recorded route of
the median-distance attempt on an OSM map, and every attempt with time
at second precision.
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -56,6 +56,8 @@ func runCommand(db *sql.DB, configPath string, appConfig config.Config, args []s mountain_pass.ExtractOSM(db, args[1]) case "backfill": ride.BackfillCmd(db) + case "climbs-backfill": + web.BackfillOfficialClimbAttemptsCmd(db, configPath) case "backtest": ride.BacktestCmd(db) case "elevation": @@ -88,6 +90,7 @@ Commands: fetch-osm download the France OSM PBF into france-latest.osm.pbf extract-osm <path> extract mountain passes from an OSM PBF file backfill recompute all stored ride values + climbs-backfill record official climb attempts for every stored ride backtest run data benchmarks comparing computed values against stored reference values elevation analyse detect elevation outliers (tunnel spikes) elevation fix linearly fix elevation between anchors |
