summaryrefslogtreecommitdiff
path: root/ride/ride.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-04-21 10:57:32 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-04-21 10:57:32 +0200
commitc05cd9cb6305f15e3de985e5040142e0156a1286 (patch)
tree829d8c3bb98fb55c3815230d9d74697fdd59cdc1 /ride/ride.go
parent8167681a317efa7b5c5176764c12e1c462f47803 (diff)
Implement climb score
Diffstat (limited to 'ride/ride.go')
-rw-r--r--ride/ride.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ride/ride.go b/ride/ride.go
index fb774e4..094a8f6 100644
--- a/ride/ride.go
+++ b/ride/ride.go
@@ -1,6 +1,8 @@
package ride
import (
+ "time"
+
"github.com/jftuga/geodist"
"github.com/martinlehoux/kagamigo/kcore"
"github.com/tkrajina/gpxgo/gpx"
@@ -9,6 +11,13 @@ import (
"gonum.org/v1/plot/vg"
)
+type Point struct {
+ DistanceM float64
+ ElevationM float64
+ Coord geodist.Coord
+ Timestamp time.Time
+}
+
type Ride struct {
points []Point
}