Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address string
Address 位置信息
func (Address) GetCoorsFromAddr ¶
GetCoorsFromAddr 通过位置获取坐标信息
type Coors ¶
type Coors struct { Lat float64 `bson:"lat" json:"lat" valid:"required"` Lng float64 `bson:"lng" json:"lng" valid:"required"` }
Coors represents a location on the Earth.
func (Coors) GetAddrFromCoors ¶
GetAddrFromCoors 通过坐标信息获取位置
type DrivingLoc ¶
type DrivingLoc struct { ID primitive.ObjectID `bson:"_id" json:"id" valid:"-"` DriverID primitive.ObjectID `bson:"driverID" json:"driverID" valid:"required"` CreatedAt time.Time `bson:"createdAt" json:"createdAt" valid:"required"` Coors Coors `bson:"coors" json:"coors" valid:"required"` }
DrivingLoc 司机在行驶过程中的位置信息
func GetDrivingLocs ¶
GetDrivingLocs 通过driverID和指定时间段返回司机行驶位置信息
Click to show internal directories.
Click to hide internal directories.