Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Ratings = [13]string{
"",
"OBS",
"S1",
"S2",
"S3",
"C1",
"C2",
"C3",
"I1",
"I2",
"I3",
"SUP",
"ADM",
}
Functions ¶
func GetDateOfRatingChange ¶
GetDateOfRatingChange returns the date of the last rating change of a VATSIM CID from the VATSIM API.
func GetLocation ¶
GetLocation returns the Region, Division and Subdivision of a VATSIM CID from the VATSIM API. Returns: Region, Division, Subdivision, error
Types ¶
type VATSIMController ¶
type VATSIMData ¶
type VATSIMData struct { Controllers []*VATSIMController `json:"controllers"` Flights []*VATSIMFlight `json:"pilots"` }
func GetData ¶
func GetData() (*VATSIMData, error)
type VATSIMFlight ¶
type VATSIMFlight struct { CID int `json:"cid"` Callsign string `json:"callsign"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Altitude int `json:"altitude"` Groundspeed int `json:"groundspeed"` Heading int `json:"heading"` FlightPlan VATSIMFlightPlan `json:"flight_plan"` }
Click to show internal directories.
Click to hide internal directories.