summaryrefslogtreecommitdiff
path: root/ride/ride.go
diff options
context:
space:
mode:
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
}