summaryrefslogblamecommitdiff
path: root/pkg/models/point.go
blob: 4cdcc60fbe8fd64a60fb1fac9ed1ab60cbb9b4ed (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"`
}