From 44f7333d9deef81d3468e20b378c63692a9406ec Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Fri, 21 Aug 2026 10:30:27 +0200 Subject: Use OSM as the single source of mountain passes Replace the centcols CSV download/enrichment pipeline with OSM PBF extraction as the primary (only) source: merge osmpass into mountain_pass, drop the centcols table and model fields, filter to named passes with elevation, and remove the centcols CLI flags. --- web/server_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web/server_test.go') diff --git a/web/server_test.go b/web/server_test.go index 09864e4..299575e 100644 --- a/web/server_test.go +++ b/web/server_test.go @@ -115,11 +115,11 @@ func TestHandlerRendersRideDetailWithEmbeddedRoute(t *testing.T) { DistanceM: 20_000, })) _, err := db.Exec(` - INSERT INTO mountain_passes (external_id, name, country_code, department_code, elevation, latitude, longitude) - VALUES (?, ?, ?, ?, ?, ?, ?), (?, ?, ?, ?, ?, ?, ?) + INSERT INTO mountain_passes (osm_id, name, elevation, latitude, longitude) + VALUES (?, ?, ?, ?, ?), (?, ?, ?, ?, ?) `, - "550e8400-e29b-41d4-a716-446655440000", "Nearby pass", "FR", "13", 400, 43.05, 5.05, - "6ba7b810-9dad-41d1-80b4-00c04fd430c8", "Distant pass", "FR", "13", 500, 43.2, 5.2, + 1, "Nearby pass", 400, 43.05, 5.05, + 2, "Distant pass", 500, 43.2, 5.2, ) require.NoError(t, err) item, found, err := rides.GetByExternalID(db, "strava:550e8400-e29b-41d4-a716-446655440000") -- cgit v1.3