changed the structs to match the OTS api types

This commit is contained in:
Valmo Trindade
2024-08-17 06:21:30 -03:00
parent a5281021bf
commit 524b025bf6

View File

@@ -5,17 +5,21 @@ type Payload struct {
Username string `json:"username,omitempty"` Username string `json:"username,omitempty"`
} }
type GeoObject struct { type Marker struct {
UID string `json:"uid,omitempty"`
Longitude float64 `json:"longitude"` Longitude float64 `json:"longitude"`
Latitude float64 `json:"latitude"` Latitude float64 `json:"latitude"`
Attitude string `json:"attitude"` Attitude string `json:"attitude"`
Bearing int `json:"bearing,omitempty"` Name string `json:"name"`
Distance int `json:"distance,omitempty"` UID string `json:"uid"`
GeoObject string `json:"geoObject"` Type string `json:"type,omitempty"`
How string `json:"how,omitempty"` Course float64 `json:"course,omitempty"`
Name string `json:"name,omitempty"` Azimuth float64 `json:"azimuth,omitempty"`
Timeout int `json:"timeout,omitempty"` Speed float64 `json:"speed,omitempty"`
Battery float64 `json:"battery,omitempty"`
FOV int `json:"fov,omitempty"`
CE int `json:"ce,omitempty"`
HAE int `json:"hae,omitempty"`
LE int `json:"le,omitempty"`
} }
type Message struct { type Message struct {