diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-01 15:32:38 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-09-01 15:32:38 +0200 |
| commit | 7b6bd3ae858c5d7877f9ef137a3ff3d6f71ce1fc (patch) | |
| tree | 28a54e79a6d3c124adca760a38844187bc84e21b /web/views.go | |
| parent | 793d2032041335004427c10f2edb7002df20a990 (diff) | |
feat: Analyse and fix elevation issues
Diffstat (limited to 'web/views.go')
| -rw-r--r-- | web/views.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, |
