summaryrefslogtreecommitdiff
path: root/pkg/models/point.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/models/point.go')
-rw-r--r--pkg/models/point.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/models/point.go b/pkg/models/point.go
new file mode 100644
index 0000000..4cdcc60
--- /dev/null
+++ b/pkg/models/point.go
@@ -0,0 +1,18 @@
+package models
+
+import (
+ "time"
+
+ "go.neonxp.ru/objectid"
+)
+
+type Point struct {
+ ID objectid.ID `json:"id"`
+ UserID objectid.ID `json:"user_id"`
+ Lat float64 `json:"lat"`
+ Lon float64 `json:"lon"`
+ Time time.Time `json:"time"`
+ Speed float64 `json:"speed"`
+ Direction float64 `json:"direction"`
+ Accuracy float64 `json:"accuracy"`
+}