diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-03 08:25:07 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-03 08:25:07 +0200 |
| commit | 9707f9ad09db935af7d06b5de08bc52de13ba6a7 (patch) | |
| tree | 34bcd01e5eda302a8730bf0817d5dd7e82186359 /ride/ride.go | |
| parent | f06a10982ab9d5aaa7d31cea31964431fa75f253 (diff) | |
feat: Detect mountain pass crossings, name climbs after passes, render ride charts
- osmpass: extract mountain_pass=yes nodes from an OSM PBF, enrich centcols passes with OSM coordinates, resumable -fetch-osm download
- mountain_pass: DetectCrossings for a ride, MatchClimb to name a climb after the pass it tops
- ride: expose Points(), add Climb.Top() and Climb.Name
- chart: -chart renders elevation profile with climb bands and pass markers
- commands: -fetch-osm, -extract-osm, -import-cached, -enrich
Diffstat (limited to 'ride/ride.go')
| -rw-r--r-- | ride/ride.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ride/ride.go b/ride/ride.go index 73e7a26..df5560b 100644 --- a/ride/ride.go +++ b/ride/ride.go @@ -31,6 +31,10 @@ func (r *Ride) check() { kcore.Assert(len(r.points) > 0, "no points in ride") } +func (r *Ride) Points() []Point { + return r.points +} + type RideParser interface { Parse(reader io.Reader) (Ride, error) } |