From 7b6bd3ae858c5d7877f9ef137a3ff3d6f71ce1fc Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 1 Sep 2026 15:32:38 +0200 Subject: feat: Analyse and fix elevation issues --- web/views.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'web/views.go') diff --git a/web/views.go b/web/views.go index ddea27e..952b045 100644 --- a/web/views.go +++ b/web/views.go @@ -113,6 +113,7 @@ func (profile RideProfile) UnmatchedClimbs() []RideProfileClimb { } type RideProfilePoint struct { + Index int `json:"index"` DistanceKm float64 `json:"distanceKm"` ElevationM float64 `json:"elevationM"` Latitude float64 `json:"latitude"` @@ -353,6 +354,7 @@ func buildRideProfile(parsed ride.Ride, passes []mountain_pass.MountainPass, off } for i, coordinate := range coords { profile.Points[i] = RideProfilePoint{ + Index: i, DistanceKm: distances[i] / 1000, ElevationM: elevations[i], Latitude: coordinate.Lat, -- cgit v1.3