overflight

package
v0.0.0-...-09aa624 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOverflightsLegacy

func GetOverflightsLegacy(c *gin.Context)

Get Overflights for Facility Legacy/Deprecated @Summary Get Overflights for Facility Legacy/Deprecated @Tags overflight @Param fac path string false "Facility, defaults to ZDV if no facility id provided" @Success 200 {object} []Flightsv1 @Failure 500 {object} response.R @Router /live/:facility [GET]

func Routes

func Routes(r *gin.RouterGroup)

Types

type Flightsv1

type Flightsv1 struct {
	Callsign    string    `json:"callsign" example:"N462AW"`
	CID         int       `json:"cid" example:"876594"`
	Facility    string    `json:"facility" example:"ZDV"`
	Latitude    float32   `json:"lat" example:"-33.867"`
	Longitude   float32   `json:"lon" example:"151.206"`
	Groundspeed int       `json:"spd" example:"150"`
	Heading     int       `json:"hdg" example:"180"`
	Altitude    int       `json:"alt" example:"10500"`
	Aircraft    string    `json:"type" example:"C208"`
	Departure   string    `json:"dep" example:"KLMO"`
	Arrival     string    `json:"arr" example:"KLMO"`
	Route       string    `json:"route" example:"DCT"`
	UpdatedAt   time.Time `json:"lastSeen" example:"2020-01-01T00:00:00Z"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL