/
adsbx_http.go
44 lines (42 loc) · 1.37 KB
/
adsbx_http.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package tracker
// AdsbxAircraftResponse - structure containing list of
// aircraft and some general infomration
//easyjson:json
type AdsbxAircraftResponse struct {
Aircraft []AdsbxAircraft `json:"ac"`
Msg string `json:"msg"`
Total int64 `json:"total"`
CTime int64 `json:"ctime"`
PTime int64 `json:"ptime"`
}
// AdsbxAircraft - structure of an aircraft object
//easyjson:json
type AdsbxAircraft struct {
PosTime string `json:"postime"`
Icao string `json:"icao"`
Registration string `json:"reg"`
Type string `json:"type"`
Wtc string `json:"wtc"`
Spd string `json:"spd"`
Altt string `json:"altt"`
Alt string `json:"alt"`
Galt string `json:"galt"`
Talt string `json:"talt"`
Lat string `json:"lat"`
Lon string `json:"lon"`
Vsit string `json:"vsit"`
Vsi string `json:"vsi"`
Trkh string `json:"trkh"`
Ttrk string `json:"ttrk"`
Trak string `json:"trak"`
Sqk string `json:"sqk"`
Call string `json:"call"`
Ground string `json:"gnd"`
Trt string `json:"trt"`
Pos string `json:"pos"`
Mlat string `json:"mlat"`
Tisb string `json:"tisb"`
Sat string `json:"sat"`
Opicao string `json:"opicao"`
Country string `json:"cou"`
}