fr24

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Service_name = map[int32]string{
		0:  "PASSENGER",
		1:  "CARGO",
		2:  "MILITARY_AND_GOVERNMENT",
		3:  "BUSINESS_JETS",
		4:  "GENERAL_AVIATION",
		5:  "HELICOPTERS",
		6:  "LIGHTER_THAN_AIR",
		7:  "GLIDERS",
		8:  "DRONES",
		9:  "GROUND_VEHICLES",
		10: "OTHER_SERVICE",
		11: "NON_CATEGORIZED",
	}
	Service_value = map[string]int32{
		"PASSENGER":               0,
		"CARGO":                   1,
		"MILITARY_AND_GOVERNMENT": 2,
		"BUSINESS_JETS":           3,
		"GENERAL_AVIATION":        4,
		"HELICOPTERS":             5,
		"LIGHTER_THAN_AIR":        6,
		"GLIDERS":                 7,
		"DRONES":                  8,
		"GROUND_VEHICLES":         9,
		"OTHER_SERVICE":           10,
		"NON_CATEGORIZED":         11,
	}
)

Enum value maps for Service.

View Source
var (
	DataSource_name = map[int32]string{
		0: "ADSB",
		1: "MLAT",
		2: "FLARM",
		3: "FAA",
		4: "ESTIMATED",
		5: "SATELLITE",
		6: "OTHER_DATA_SOURCE",
		7: "UAT",
		8: "SPIDERTRACKS",
		9: "AUS",
	}
	DataSource_value = map[string]int32{
		"ADSB":              0,
		"MLAT":              1,
		"FLARM":             2,
		"FAA":               3,
		"ESTIMATED":         4,
		"SATELLITE":         5,
		"OTHER_DATA_SOURCE": 6,
		"UAT":               7,
		"SPIDERTRACKS":      8,
		"AUS":               9,
	}
)

Enum value maps for DataSource.

View Source
var (
	FiltersList_AirlineFilter_Type_name = map[int32]string{
		0: "PAINTED_AS",
		1: "OPERATED_AS",
	}
	FiltersList_AirlineFilter_Type_value = map[string]int32{
		"PAINTED_AS":  0,
		"OPERATED_AS": 1,
	}
)

Enum value maps for FiltersList_AirlineFilter_Type.

View Source
var (
	FiltersList_AirportFilter_Type_name = map[int32]string{
		0: "BOTH",
		1: "INBOUND",
		2: "OUTBOUND",
	}
	FiltersList_AirportFilter_Type_value = map[string]int32{
		"BOTH":     0,
		"INBOUND":  1,
		"OUTBOUND": 2,
	}
)

Enum value maps for FiltersList_AirportFilter_Type.

View Source
var (
	LiveFeedRequest_Settings_TrafficType_name = map[int32]string{
		0: "NONE",
		1: "GROUND_ONLY",
		2: "AIRBORNE_ONLY",
		3: "ALL",
	}
	LiveFeedRequest_Settings_TrafficType_value = map[string]int32{
		"NONE":          0,
		"GROUND_ONLY":   1,
		"AIRBORNE_ONLY": 2,
		"ALL":           3,
	}
)

Enum value maps for LiveFeedRequest_Settings_TrafficType.

View Source
var ErrBadInput = fmt.Errorf("Not enough data to work with")
View Source
var ErrNotFound = fmt.Errorf("Not found anywhere")
View Source
var ErrNotInLiveDB = fmt.Errorf("No longer in live DB")

Functions

func FetchAirspace

func FetchAirspace(client *http.Client, box geo.LatlongBox) (*airspace.Airspace, error)

func GRPCFetchAirspace added in v0.1.3

func GRPCFetchAirspace(box geo.LatlongBox) (*airspace.Airspace, error)

func GRPCGetFeed added in v0.1.3

func GRPCGetFeed(box geo.LatlongBox) ([]fdb.FlightSnapshot, error)

func RegisterFeedServer added in v0.1.3

func RegisterFeedServer(s *grpc.Server, srv FeedServer)

func SnapshotToAircraftData

func SnapshotToAircraftData(fs fdb.FlightSnapshot) airspace.AircraftData

This would ideally be in flightdb2/snapshot.go, but pi/airspace depends on fdb

Types

type AirportData

type AirportData struct {
	Name string `json:"name"`
	Code struct {
		Icao string `json:"icao"`
		Iata string `json:"iata"`
	} `json:"code"`
	Timezone struct {
		Offset   int    `json:"offset"`
		Abbr     string `json:"abbr"`
		AbbrName string `json:"abbrName"`
		Name     string `json:"name"`
		IsDst    bool   `json:"isDst"`
	} `json:"Timezone"`
	Position struct {
		Latitude  float64 `json:"latitude"`
		Longitude float64 `json:"longitude"`
		Country   struct {
			Name string `json:"name"`
			Code string `json:"code"`
		} `json:"country"`
		Region struct {
			City string `json:"city"`
		} `json:"region"`
	} `json:"position"`
}

type CurrentDetailsResponse

type CurrentDetailsResponse struct {
	FlightNumber          string
	Status                string
	ScheduledDepartureUTC time.Time
	ScheduledArrivalUTC   time.Time
	OriginTZOffset        string
	DestinationTZOffset   string
	ETAUTC                time.Time
}

We want very little of this; hand-extract it via a jsonMap

type DataSource added in v0.1.3

type DataSource int32
const (
	DataSource_ADSB              DataSource = 0
	DataSource_MLAT              DataSource = 1
	DataSource_FLARM             DataSource = 2
	DataSource_FAA               DataSource = 3
	DataSource_ESTIMATED         DataSource = 4
	DataSource_SATELLITE         DataSource = 5
	DataSource_OTHER_DATA_SOURCE DataSource = 6
	DataSource_UAT               DataSource = 7
	DataSource_SPIDERTRACKS      DataSource = 8
	DataSource_AUS               DataSource = 9
)

func (DataSource) Descriptor added in v0.1.3

func (DataSource) Descriptor() protoreflect.EnumDescriptor

func (DataSource) Enum added in v0.1.3

func (x DataSource) Enum() *DataSource

func (DataSource) EnumDescriptor deprecated added in v0.1.3

func (DataSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSource.Descriptor instead.

func (DataSource) Number added in v0.1.3

func (x DataSource) Number() protoreflect.EnumNumber

func (DataSource) String added in v0.1.3

func (x DataSource) String() string

func (DataSource) Type added in v0.1.3

type FeedClient added in v0.1.3

type FeedClient interface {
	LiveFeed(ctx context.Context, in *LiveFeedRequest, opts ...grpc.CallOption) (*LiveFeedResponse, error)
}

FeedClient is the client API for Feed service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFeedClient added in v0.1.3

func NewFeedClient(cc grpc.ClientConnInterface) FeedClient

type FeedServer added in v0.1.3

type FeedServer interface {
	LiveFeed(context.Context, *LiveFeedRequest) (*LiveFeedResponse, error)
	// contains filtered or unexported methods
}

FeedServer is the server API for Feed service. All implementations must embed UnimplementedFeedServer for forward compatibility

type FiltersList added in v0.1.3

type FiltersList struct {
	AltitudeRangesList []*FiltersList_AltitudeRange `protobuf:"bytes,1,rep,name=altitude_ranges_list,json=altitudeRangesList,proto3" json:"altitude_ranges_list,omitempty"`
	SpeedRangesList    []*FiltersList_SpeedRange    `protobuf:"bytes,2,rep,name=speed_ranges_list,json=speedRangesList,proto3" json:"speed_ranges_list,omitempty"` // NOTE: ground speed
	AirlineFiltersList []*FiltersList_AirlineFilter `protobuf:"bytes,3,rep,name=airline_filters_list,json=airlineFiltersList,proto3" json:"airline_filters_list,omitempty"`
	CallsignsList      []string                     `protobuf:"bytes,4,rep,name=callsigns_list,json=callsignsList,proto3" json:"callsigns_list,omitempty"`
	RadarsList         []string                     `protobuf:"bytes,5,rep,name=radars_list,json=radarsList,proto3" json:"radars_list,omitempty"` // receiver: e.g. T-VHST000
	RegsList           []string                     `protobuf:"bytes,6,rep,name=regs_list,json=regsList,proto3" json:"regs_list,omitempty"`
	AirportsList       []*FiltersList_AirportFilter `protobuf:"bytes,7,rep,name=airports_list,json=airportsList,proto3" json:"airports_list,omitempty"`
	// repeated Flight flights_list = 8;
	TypesList           []string                      `protobuf:"bytes,9,rep,name=types_list,json=typesList,proto3" json:"types_list,omitempty"` // e.g. B7*
	BirthYearRangesList []*FiltersList_BirthYearRange `protobuf:"bytes,10,rep,name=birth_year_ranges_list,json=birthYearRangesList,proto3" json:"birth_year_ranges_list,omitempty"`
	// repeated Squawk squawks_list = 11;
	OriginsList      []*FiltersList_ODFilter `protobuf:"bytes,12,rep,name=origins_list,json=originsList,proto3" json:"origins_list,omitempty"`
	DestinationsList []*FiltersList_ODFilter `protobuf:"bytes,13,rep,name=destinations_list,json=destinationsList,proto3" json:"destinations_list,omitempty"`
	CategoriesList   []Service               `` /* 142-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*FiltersList) Descriptor deprecated added in v0.1.3

func (*FiltersList) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList.ProtoReflect.Descriptor instead.

func (*FiltersList) GetAirlineFiltersList added in v0.1.3

func (x *FiltersList) GetAirlineFiltersList() []*FiltersList_AirlineFilter

func (*FiltersList) GetAirportsList added in v0.1.3

func (x *FiltersList) GetAirportsList() []*FiltersList_AirportFilter

func (*FiltersList) GetAltitudeRangesList added in v0.1.3

func (x *FiltersList) GetAltitudeRangesList() []*FiltersList_AltitudeRange

func (*FiltersList) GetBirthYearRangesList added in v0.1.3

func (x *FiltersList) GetBirthYearRangesList() []*FiltersList_BirthYearRange

func (*FiltersList) GetCallsignsList added in v0.1.3

func (x *FiltersList) GetCallsignsList() []string

func (*FiltersList) GetCategoriesList added in v0.1.3

func (x *FiltersList) GetCategoriesList() []Service

func (*FiltersList) GetDestinationsList added in v0.1.3

func (x *FiltersList) GetDestinationsList() []*FiltersList_ODFilter

func (*FiltersList) GetOriginsList added in v0.1.3

func (x *FiltersList) GetOriginsList() []*FiltersList_ODFilter

func (*FiltersList) GetRadarsList added in v0.1.3

func (x *FiltersList) GetRadarsList() []string

func (*FiltersList) GetRegsList added in v0.1.3

func (x *FiltersList) GetRegsList() []string

func (*FiltersList) GetSpeedRangesList added in v0.1.3

func (x *FiltersList) GetSpeedRangesList() []*FiltersList_SpeedRange

func (*FiltersList) GetTypesList added in v0.1.3

func (x *FiltersList) GetTypesList() []string

func (*FiltersList) ProtoMessage added in v0.1.3

func (*FiltersList) ProtoMessage()

func (*FiltersList) ProtoReflect added in v0.1.3

func (x *FiltersList) ProtoReflect() protoreflect.Message

func (*FiltersList) Reset added in v0.1.3

func (x *FiltersList) Reset()

func (*FiltersList) String added in v0.1.3

func (x *FiltersList) String() string

type FiltersList_AirlineFilter added in v0.1.3

type FiltersList_AirlineFilter struct {
	Icao string                         `protobuf:"bytes,1,opt,name=icao,proto3" json:"icao,omitempty"` // e.g. CPA
	Type FiltersList_AirlineFilter_Type `protobuf:"varint,2,opt,name=type,proto3,enum=fr24.feed.api.v1.FiltersList_AirlineFilter_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_AirlineFilter) Descriptor deprecated added in v0.1.3

func (*FiltersList_AirlineFilter) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_AirlineFilter.ProtoReflect.Descriptor instead.

func (*FiltersList_AirlineFilter) GetIcao added in v0.1.3

func (x *FiltersList_AirlineFilter) GetIcao() string

func (*FiltersList_AirlineFilter) GetType added in v0.1.3

func (*FiltersList_AirlineFilter) ProtoMessage added in v0.1.3

func (*FiltersList_AirlineFilter) ProtoMessage()

func (*FiltersList_AirlineFilter) ProtoReflect added in v0.1.3

func (*FiltersList_AirlineFilter) Reset added in v0.1.3

func (x *FiltersList_AirlineFilter) Reset()

func (*FiltersList_AirlineFilter) String added in v0.1.3

func (x *FiltersList_AirlineFilter) String() string

type FiltersList_AirlineFilter_Type added in v0.1.3

type FiltersList_AirlineFilter_Type int32
const (
	FiltersList_AirlineFilter_PAINTED_AS  FiltersList_AirlineFilter_Type = 0
	FiltersList_AirlineFilter_OPERATED_AS FiltersList_AirlineFilter_Type = 1
)

func (FiltersList_AirlineFilter_Type) Descriptor added in v0.1.3

func (FiltersList_AirlineFilter_Type) Enum added in v0.1.3

func (FiltersList_AirlineFilter_Type) EnumDescriptor deprecated added in v0.1.3

func (FiltersList_AirlineFilter_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FiltersList_AirlineFilter_Type.Descriptor instead.

func (FiltersList_AirlineFilter_Type) Number added in v0.1.3

func (FiltersList_AirlineFilter_Type) String added in v0.1.3

func (FiltersList_AirlineFilter_Type) Type added in v0.1.3

type FiltersList_AirportFilter added in v0.1.3

type FiltersList_AirportFilter struct {
	Iata      string                         `protobuf:"bytes,1,opt,name=iata,proto3" json:"iata,omitempty"`
	CountryId int32                          `protobuf:"varint,2,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
	Type      FiltersList_AirportFilter_Type `protobuf:"varint,3,opt,name=type,proto3,enum=fr24.feed.api.v1.FiltersList_AirportFilter_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_AirportFilter) Descriptor deprecated added in v0.1.3

func (*FiltersList_AirportFilter) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_AirportFilter.ProtoReflect.Descriptor instead.

func (*FiltersList_AirportFilter) GetCountryId added in v0.1.3

func (x *FiltersList_AirportFilter) GetCountryId() int32

func (*FiltersList_AirportFilter) GetIata added in v0.1.3

func (x *FiltersList_AirportFilter) GetIata() string

func (*FiltersList_AirportFilter) GetType added in v0.1.3

func (*FiltersList_AirportFilter) ProtoMessage added in v0.1.3

func (*FiltersList_AirportFilter) ProtoMessage()

func (*FiltersList_AirportFilter) ProtoReflect added in v0.1.3

func (*FiltersList_AirportFilter) Reset added in v0.1.3

func (x *FiltersList_AirportFilter) Reset()

func (*FiltersList_AirportFilter) String added in v0.1.3

func (x *FiltersList_AirportFilter) String() string

type FiltersList_AirportFilter_Type added in v0.1.3

type FiltersList_AirportFilter_Type int32
const (
	FiltersList_AirportFilter_BOTH     FiltersList_AirportFilter_Type = 0
	FiltersList_AirportFilter_INBOUND  FiltersList_AirportFilter_Type = 1
	FiltersList_AirportFilter_OUTBOUND FiltersList_AirportFilter_Type = 2
)

func (FiltersList_AirportFilter_Type) Descriptor added in v0.1.3

func (FiltersList_AirportFilter_Type) Enum added in v0.1.3

func (FiltersList_AirportFilter_Type) EnumDescriptor deprecated added in v0.1.3

func (FiltersList_AirportFilter_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FiltersList_AirportFilter_Type.Descriptor instead.

func (FiltersList_AirportFilter_Type) Number added in v0.1.3

func (FiltersList_AirportFilter_Type) String added in v0.1.3

func (FiltersList_AirportFilter_Type) Type added in v0.1.3

type FiltersList_AltitudeRange added in v0.1.3

type FiltersList_AltitudeRange struct {
	Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_AltitudeRange) Descriptor deprecated added in v0.1.3

func (*FiltersList_AltitudeRange) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_AltitudeRange.ProtoReflect.Descriptor instead.

func (*FiltersList_AltitudeRange) GetMax added in v0.1.3

func (x *FiltersList_AltitudeRange) GetMax() int32

func (*FiltersList_AltitudeRange) GetMin added in v0.1.3

func (x *FiltersList_AltitudeRange) GetMin() int32

func (*FiltersList_AltitudeRange) ProtoMessage added in v0.1.3

func (*FiltersList_AltitudeRange) ProtoMessage()

func (*FiltersList_AltitudeRange) ProtoReflect added in v0.1.3

func (*FiltersList_AltitudeRange) Reset added in v0.1.3

func (x *FiltersList_AltitudeRange) Reset()

func (*FiltersList_AltitudeRange) String added in v0.1.3

func (x *FiltersList_AltitudeRange) String() string

type FiltersList_BirthYearRange added in v0.1.3

type FiltersList_BirthYearRange struct {
	Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_BirthYearRange) Descriptor deprecated added in v0.1.3

func (*FiltersList_BirthYearRange) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_BirthYearRange.ProtoReflect.Descriptor instead.

func (*FiltersList_BirthYearRange) GetMax added in v0.1.3

func (x *FiltersList_BirthYearRange) GetMax() int32

func (*FiltersList_BirthYearRange) GetMin added in v0.1.3

func (x *FiltersList_BirthYearRange) GetMin() int32

func (*FiltersList_BirthYearRange) ProtoMessage added in v0.1.3

func (*FiltersList_BirthYearRange) ProtoMessage()

func (*FiltersList_BirthYearRange) ProtoReflect added in v0.1.3

func (*FiltersList_BirthYearRange) Reset added in v0.1.3

func (x *FiltersList_BirthYearRange) Reset()

func (*FiltersList_BirthYearRange) String added in v0.1.3

func (x *FiltersList_BirthYearRange) String() string

type FiltersList_ODFilter added in v0.1.3

type FiltersList_ODFilter struct {
	Iata      string `protobuf:"bytes,1,opt,name=iata,proto3" json:"iata,omitempty"`
	CountryId int32  `protobuf:"varint,2,opt,name=country_id,json=countryId,proto3" json:"country_id,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_ODFilter) Descriptor deprecated added in v0.1.3

func (*FiltersList_ODFilter) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_ODFilter.ProtoReflect.Descriptor instead.

func (*FiltersList_ODFilter) GetCountryId added in v0.1.3

func (x *FiltersList_ODFilter) GetCountryId() int32

func (*FiltersList_ODFilter) GetIata added in v0.1.3

func (x *FiltersList_ODFilter) GetIata() string

func (*FiltersList_ODFilter) ProtoMessage added in v0.1.3

func (*FiltersList_ODFilter) ProtoMessage()

func (*FiltersList_ODFilter) ProtoReflect added in v0.1.3

func (x *FiltersList_ODFilter) ProtoReflect() protoreflect.Message

func (*FiltersList_ODFilter) Reset added in v0.1.3

func (x *FiltersList_ODFilter) Reset()

func (*FiltersList_ODFilter) String added in v0.1.3

func (x *FiltersList_ODFilter) String() string

type FiltersList_SpeedRange added in v0.1.3

type FiltersList_SpeedRange struct {
	Min int32 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"`
	Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
	// contains filtered or unexported fields
}

func (*FiltersList_SpeedRange) Descriptor deprecated added in v0.1.3

func (*FiltersList_SpeedRange) Descriptor() ([]byte, []int)

Deprecated: Use FiltersList_SpeedRange.ProtoReflect.Descriptor instead.

func (*FiltersList_SpeedRange) GetMax added in v0.1.3

func (x *FiltersList_SpeedRange) GetMax() int32

func (*FiltersList_SpeedRange) GetMin added in v0.1.3

func (x *FiltersList_SpeedRange) GetMin() int32

func (*FiltersList_SpeedRange) ProtoMessage added in v0.1.3

func (*FiltersList_SpeedRange) ProtoMessage()

func (*FiltersList_SpeedRange) ProtoReflect added in v0.1.3

func (x *FiltersList_SpeedRange) ProtoReflect() protoreflect.Message

func (*FiltersList_SpeedRange) Reset added in v0.1.3

func (x *FiltersList_SpeedRange) Reset()

func (*FiltersList_SpeedRange) String added in v0.1.3

func (x *FiltersList_SpeedRange) String() string

type FlightPlaybackResponse

type FlightPlaybackResponse struct {
	Result struct {
		Response struct {
			Data struct {
				Flight struct {
					Airline struct {
						Name string `json:"name"`
						Code struct {
							Icao string `json:"icao"`
							Iata string `json:"iata"`
						} `json:"code"`
					} `json:"airline"`

					Identification struct {
						Hex    string `json:"hex"`
						Id     int    `json:"id"`
						Number struct {
							Default string `json:"default"`
						} `json:"number"`
						Callsign string `json:"callsign"`
					} `json:"identification"`

					Aircraft struct {
						Identification struct {
							ModeS        string `json:"modes"`
							Registration string `json:"registration"`
						} `json:"identification"`
						Model struct {
							Text string `json:"text"`
							Code string `json:"code"`
						} `json:"model"`
					} `json:"aircraft"`

					Track []struct {
						Heading  int     `json:"heading"`
						Latitude float64 `json:"latitude"`
						Speed    struct {
							Kts int     `json:"kts"`
							Mph float64 `json:"mph"`
							Kph float64 `json:"kph"`
						} `json:"speed"`
						Squawk   string `json:"squawk"`
						Altitude struct {
							Feet   int `json:"feet"`
							Meters int `json:"meters"`
						} `json:"altitude"`
						Longitude float64 `json:"longitude"`
						Timestamp int     `json:"timestamp"`
					} `json:"track"`

					Airport struct {
						Destination AirportData `json:"destination"`
						Origin      AirportData `json:"origin"`
					} `json:"airport"`
				} `json:"flight"`
			} `json:"data"`

			Timestamp int `json:"timestamp"`
		} `json:"response"`

		Request struct {
			Format   string `json:"format"`
			FlightId string `json:"flightId"`
			Callback string `json:"callback"`
		} `json:"request"`
	} `json:"result"`
}

type Fr24

type Fr24 struct {
	Client *http.Client

	Prefix string
	// contains filtered or unexported fields
}

func NewFr24

func NewFr24(c *http.Client) (*Fr24, error)

func (*Fr24) FetchAirspace

func (db *Fr24) FetchAirspace(box geo.LatlongBox) (*airspace.Airspace, error)

func (*Fr24) GetCurrentDetailsUrl

func (fr *Fr24) GetCurrentDetailsUrl(id string) string

func (*Fr24) GetCurrentListUrl

func (fr *Fr24) GetCurrentListUrl(bounds string) string

adsb=1&mlat=1&flarm=1&faa=1&estimated=1&air=1&gnd=1&vehicles=1&gliders=1&array=1

faa=1 - includes T-F5M flights, which aren't always FAA; use epoch to judge freshness

func (*Fr24) GetFr24Id

func (db *Fr24) GetFr24Id(f *fdb.Flight) (string, string, error)

func (*Fr24) GetLookupHistoryUrl

func (fr *Fr24) GetLookupHistoryUrl(reg, iataFlightNumber string) string

func (*Fr24) GetPlaybackTrackUrl

func (fr *Fr24) GetPlaybackTrackUrl(id string) string

id is a fr24 internal hex ID

func (*Fr24) GetQueryUrl

func (fr *Fr24) GetQueryUrl(query string) string

func (*Fr24) LookupCurrentDetails

func (db *Fr24) LookupCurrentDetails(fr24Id string) (*CurrentDetailsResponse, error)

LookupCurrentDetails gets just a few details about a flight currently in the air. It's what pops up in the panel when you click on a plane on the map.

func (*Fr24) LookupCurrentList

func (db *Fr24) LookupCurrentList(box geo.LatlongBox) ([]fdb.FlightSnapshot, error)

LookCurrentList returns a snapshot of what's currently in the box. This is used to populate the mapview, with just enough info for tooltips on the aircraft.

func (*Fr24) LookupHistory

func (db *Fr24) LookupHistory(reg, iataflightnumber string) ([]Identifier, error)

func (*Fr24) LookupPlaybackTrack

func (db *Fr24) LookupPlaybackTrack(fr24Id string) (*fdb.Flight, error)

Given an fr24Id, this call fetches its flight track.

func (*Fr24) LookupQuery

func (db *Fr24) LookupQuery(q string) (Identifier, error)

This is the as-you-type instant results thing in the mainquery box. It's nice and cheap. If you're searching for a callsign/flightnumber/registration that is "live", you can get the fr24Id foriegn key. Things are only live for up to 10m after they land though.

func (*Fr24) ParseCurrentDetails

func (db *Fr24) ParseCurrentDetails(body []byte) (*CurrentDetailsResponse, error)

func (*Fr24) ParseCurrentList

func (db *Fr24) ParseCurrentList(body []byte) ([]fdb.FlightSnapshot, error)

func (*Fr24) ParsePlaybackTrack

func (db *Fr24) ParsePlaybackTrack(body []byte) (*fdb.Flight, error)

func (*Fr24) Url2Body

func (fr *Fr24) Url2Body(url string) (body []byte, err error)

type Identifier

type Identifier struct {
	Fr24, Reg, Callsign, IATAFlightNumber string
	Orig, Dest                            string
	DepartureEpoch                        int64
	DepartureTimeLocation                 string
}

func (Identifier) String

func (id Identifier) String() string

type LiveFeedRequest added in v0.1.3

type LiveFeedRequest struct {
	Bounds        *LiveFeedRequest_Bounds   `protobuf:"bytes,1,opt,name=bounds,proto3" json:"bounds,omitempty"`
	Settings      *LiveFeedRequest_Settings `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
	FiltersList   *FiltersList              `protobuf:"bytes,3,opt,name=filters_list,json=filtersList,proto3,oneof" json:"filters_list,omitempty"`
	CustomFleetId *string                   `protobuf:"bytes,4,opt,name=custom_fleet_id,json=customFleetId,proto3,oneof" json:"custom_fleet_id,omitempty"` // requires auth
	// 5: ???
	Stats  bool  `protobuf:"varint,6,opt,name=stats,proto3" json:"stats,omitempty"`
	Limit  int32 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`   // default 1500
	Maxage int32 `protobuf:"varint,8,opt,name=maxage,proto3" json:"maxage,omitempty"` // default 14400
	// 9: ???
	FieldMask        *LiveFeedRequest_FieldMask `protobuf:"bytes,10,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	SelectedFlightid []uint32                   `protobuf:"fixed32,11,rep,packed,name=selected_flightid,json=selectedFlightid,proto3" json:"selected_flightid,omitempty"`
	// contains filtered or unexported fields
}

ChQNw/XgQRVxPU5BHXsUwEIl7NEBQxIcCgoAAQIDBAUGBwgJEgwAAQIDBAUGBwgJCgsYAzABONwLQMBwUgsKA3JlZwoEdHlwZQ==

func (*LiveFeedRequest) Descriptor deprecated added in v0.1.3

func (*LiveFeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedRequest.ProtoReflect.Descriptor instead.

func (*LiveFeedRequest) GetBounds added in v0.1.3

func (x *LiveFeedRequest) GetBounds() *LiveFeedRequest_Bounds

func (*LiveFeedRequest) GetCustomFleetId added in v0.1.3

func (x *LiveFeedRequest) GetCustomFleetId() string

func (*LiveFeedRequest) GetFieldMask added in v0.1.3

func (x *LiveFeedRequest) GetFieldMask() *LiveFeedRequest_FieldMask

func (*LiveFeedRequest) GetFiltersList added in v0.1.3

func (x *LiveFeedRequest) GetFiltersList() *FiltersList

func (*LiveFeedRequest) GetLimit added in v0.1.3

func (x *LiveFeedRequest) GetLimit() int32

func (*LiveFeedRequest) GetMaxage added in v0.1.3

func (x *LiveFeedRequest) GetMaxage() int32

func (*LiveFeedRequest) GetSelectedFlightid added in v0.1.3

func (x *LiveFeedRequest) GetSelectedFlightid() []uint32

func (*LiveFeedRequest) GetSettings added in v0.1.3

func (x *LiveFeedRequest) GetSettings() *LiveFeedRequest_Settings

func (*LiveFeedRequest) GetStats added in v0.1.3

func (x *LiveFeedRequest) GetStats() bool

func (*LiveFeedRequest) ProtoMessage added in v0.1.3

func (*LiveFeedRequest) ProtoMessage()

func (*LiveFeedRequest) ProtoReflect added in v0.1.3

func (x *LiveFeedRequest) ProtoReflect() protoreflect.Message

func (*LiveFeedRequest) Reset added in v0.1.3

func (x *LiveFeedRequest) Reset()

func (*LiveFeedRequest) String added in v0.1.3

func (x *LiveFeedRequest) String() string

type LiveFeedRequest_Bounds added in v0.1.3

type LiveFeedRequest_Bounds struct {
	North float32 `protobuf:"fixed32,1,opt,name=north,proto3" json:"north,omitempty"`
	South float32 `protobuf:"fixed32,2,opt,name=south,proto3" json:"south,omitempty"`
	West  float32 `protobuf:"fixed32,3,opt,name=west,proto3" json:"west,omitempty"`
	East  float32 `protobuf:"fixed32,4,opt,name=east,proto3" json:"east,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedRequest_Bounds) Descriptor deprecated added in v0.1.3

func (*LiveFeedRequest_Bounds) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedRequest_Bounds.ProtoReflect.Descriptor instead.

func (*LiveFeedRequest_Bounds) GetEast added in v0.1.3

func (x *LiveFeedRequest_Bounds) GetEast() float32

func (*LiveFeedRequest_Bounds) GetNorth added in v0.1.3

func (x *LiveFeedRequest_Bounds) GetNorth() float32

func (*LiveFeedRequest_Bounds) GetSouth added in v0.1.3

func (x *LiveFeedRequest_Bounds) GetSouth() float32

func (*LiveFeedRequest_Bounds) GetWest added in v0.1.3

func (x *LiveFeedRequest_Bounds) GetWest() float32

func (*LiveFeedRequest_Bounds) ProtoMessage added in v0.1.3

func (*LiveFeedRequest_Bounds) ProtoMessage()

func (*LiveFeedRequest_Bounds) ProtoReflect added in v0.1.3

func (x *LiveFeedRequest_Bounds) ProtoReflect() protoreflect.Message

func (*LiveFeedRequest_Bounds) Reset added in v0.1.3

func (x *LiveFeedRequest_Bounds) Reset()

func (*LiveFeedRequest_Bounds) String added in v0.1.3

func (x *LiveFeedRequest_Bounds) String() string

type LiveFeedRequest_FieldMask added in v0.1.3

type LiveFeedRequest_FieldMask struct {
	FieldName []string `protobuf:"bytes,1,rep,name=field_name,json=fieldName,proto3" json:"field_name,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedRequest_FieldMask) Descriptor deprecated added in v0.1.3

func (*LiveFeedRequest_FieldMask) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedRequest_FieldMask.ProtoReflect.Descriptor instead.

func (*LiveFeedRequest_FieldMask) GetFieldName added in v0.1.3

func (x *LiveFeedRequest_FieldMask) GetFieldName() []string

func (*LiveFeedRequest_FieldMask) ProtoMessage added in v0.1.3

func (*LiveFeedRequest_FieldMask) ProtoMessage()

func (*LiveFeedRequest_FieldMask) ProtoReflect added in v0.1.3

func (*LiveFeedRequest_FieldMask) Reset added in v0.1.3

func (x *LiveFeedRequest_FieldMask) Reset()

func (*LiveFeedRequest_FieldMask) String added in v0.1.3

func (x *LiveFeedRequest_FieldMask) String() string

type LiveFeedRequest_Settings added in v0.1.3

type LiveFeedRequest_Settings struct {
	SourcesList  []DataSource                         `` /* 135-byte string literal not displayed */
	ServicesList []Service                            `` /* 135-byte string literal not displayed */
	TrafficType  LiveFeedRequest_Settings_TrafficType `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LiveFeedRequest_Settings) Descriptor deprecated added in v0.1.3

func (*LiveFeedRequest_Settings) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedRequest_Settings.ProtoReflect.Descriptor instead.

func (*LiveFeedRequest_Settings) GetServicesList added in v0.1.3

func (x *LiveFeedRequest_Settings) GetServicesList() []Service

func (*LiveFeedRequest_Settings) GetSourcesList added in v0.1.3

func (x *LiveFeedRequest_Settings) GetSourcesList() []DataSource

func (*LiveFeedRequest_Settings) GetTrafficType added in v0.1.3

func (*LiveFeedRequest_Settings) ProtoMessage added in v0.1.3

func (*LiveFeedRequest_Settings) ProtoMessage()

func (*LiveFeedRequest_Settings) ProtoReflect added in v0.1.3

func (x *LiveFeedRequest_Settings) ProtoReflect() protoreflect.Message

func (*LiveFeedRequest_Settings) Reset added in v0.1.3

func (x *LiveFeedRequest_Settings) Reset()

func (*LiveFeedRequest_Settings) String added in v0.1.3

func (x *LiveFeedRequest_Settings) String() string

type LiveFeedRequest_Settings_TrafficType added in v0.1.3

type LiveFeedRequest_Settings_TrafficType int32
const (
	LiveFeedRequest_Settings_NONE          LiveFeedRequest_Settings_TrafficType = 0
	LiveFeedRequest_Settings_GROUND_ONLY   LiveFeedRequest_Settings_TrafficType = 1
	LiveFeedRequest_Settings_AIRBORNE_ONLY LiveFeedRequest_Settings_TrafficType = 2
	LiveFeedRequest_Settings_ALL           LiveFeedRequest_Settings_TrafficType = 3
)

func (LiveFeedRequest_Settings_TrafficType) Descriptor added in v0.1.3

func (LiveFeedRequest_Settings_TrafficType) Enum added in v0.1.3

func (LiveFeedRequest_Settings_TrafficType) EnumDescriptor deprecated added in v0.1.3

func (LiveFeedRequest_Settings_TrafficType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LiveFeedRequest_Settings_TrafficType.Descriptor instead.

func (LiveFeedRequest_Settings_TrafficType) Number added in v0.1.3

func (LiveFeedRequest_Settings_TrafficType) String added in v0.1.3

func (LiveFeedRequest_Settings_TrafficType) Type added in v0.1.3

type LiveFeedResponse added in v0.1.3

type LiveFeedResponse struct {
	FlightsList        []*LiveFeedResponse_FlightData `protobuf:"bytes,1,rep,name=flights_list,json=flightsList,proto3" json:"flights_list,omitempty"`
	Stats              *LiveFeedResponse_Statistics   `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
	SelectedFlightInfo []*LiveFeedResponse_FlightData `protobuf:"bytes,3,rep,name=selected_flight_info,json=selectedFlightInfo,proto3" json:"selected_flight_info,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse) GetFlightsList added in v0.1.3

func (x *LiveFeedResponse) GetFlightsList() []*LiveFeedResponse_FlightData

func (*LiveFeedResponse) GetSelectedFlightInfo added in v0.1.3

func (x *LiveFeedResponse) GetSelectedFlightInfo() []*LiveFeedResponse_FlightData

func (*LiveFeedResponse) GetStats added in v0.1.3

func (*LiveFeedResponse) ProtoMessage added in v0.1.3

func (*LiveFeedResponse) ProtoMessage()

func (*LiveFeedResponse) ProtoReflect added in v0.1.3

func (x *LiveFeedResponse) ProtoReflect() protoreflect.Message

func (*LiveFeedResponse) Reset added in v0.1.3

func (x *LiveFeedResponse) Reset()

func (*LiveFeedResponse) String added in v0.1.3

func (x *LiveFeedResponse) String() string

type LiveFeedResponse_FlightData added in v0.1.3

type LiveFeedResponse_FlightData struct {
	Flightid    int32                                  `protobuf:"varint,1,opt,name=flightid,proto3" json:"flightid,omitempty"` // to hex
	Latitude    float32                                `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty"`
	Longitude   float32                                `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty"`
	Heading     int32                                  `protobuf:"varint,4,opt,name=heading,proto3" json:"heading,omitempty"`
	Altitude    int32                                  `protobuf:"varint,5,opt,name=altitude,proto3" json:"altitude,omitempty"`
	GroundSpeed int32                                  `protobuf:"varint,6,opt,name=ground_speed,json=groundSpeed,proto3" json:"ground_speed,omitempty"`
	Icon        int32                                  `protobuf:"varint,7,opt,name=icon,proto3" json:"icon,omitempty"`
	Status      int32                                  `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	Timestamp   int32                                  `protobuf:"varint,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	OnGround    bool                                   `protobuf:"varint,10,opt,name=on_ground,json=onGround,proto3" json:"on_ground,omitempty"`
	Callsign    string                                 `protobuf:"bytes,11,opt,name=callsign,proto3" json:"callsign,omitempty"`
	Source      DataSource                             `protobuf:"varint,12,opt,name=source,proto3,enum=fr24.feed.api.v1.DataSource" json:"source,omitempty"`
	ExtraInfo   *LiveFeedResponse_FlightData_ExtraInfo `protobuf:"bytes,13,opt,name=extra_info,json=extraInfo,proto3" json:"extra_info,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_FlightData) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse_FlightData) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse_FlightData.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData) GetAltitude added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetAltitude() int32

func (*LiveFeedResponse_FlightData) GetCallsign added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetCallsign() string

func (*LiveFeedResponse_FlightData) GetExtraInfo added in v0.1.3

func (*LiveFeedResponse_FlightData) GetFlightid added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetFlightid() int32

func (*LiveFeedResponse_FlightData) GetGroundSpeed added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetGroundSpeed() int32

func (*LiveFeedResponse_FlightData) GetHeading added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetHeading() int32

func (*LiveFeedResponse_FlightData) GetIcon added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetIcon() int32

func (*LiveFeedResponse_FlightData) GetLatitude added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetLatitude() float32

func (*LiveFeedResponse_FlightData) GetLongitude added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetLongitude() float32

func (*LiveFeedResponse_FlightData) GetOnGround added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetOnGround() bool

func (*LiveFeedResponse_FlightData) GetSource added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetSource() DataSource

func (*LiveFeedResponse_FlightData) GetStatus added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetStatus() int32

func (*LiveFeedResponse_FlightData) GetTimestamp added in v0.1.3

func (x *LiveFeedResponse_FlightData) GetTimestamp() int32

func (*LiveFeedResponse_FlightData) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData) ProtoMessage()

func (*LiveFeedResponse_FlightData) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData) Reset added in v0.1.3

func (x *LiveFeedResponse_FlightData) Reset()

func (*LiveFeedResponse_FlightData) String added in v0.1.3

func (x *LiveFeedResponse_FlightData) String() string

type LiveFeedResponse_FlightData_ExtraInfo added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo struct {
	Flight          *string                                                `protobuf:"bytes,1,opt,name=flight,proto3,oneof" json:"flight,omitempty"` // iata flight number
	Reg             *string                                                `protobuf:"bytes,2,opt,name=reg,proto3,oneof" json:"reg,omitempty"`
	Route           *LiveFeedResponse_FlightData_ExtraInfo_Route           `protobuf:"bytes,3,opt,name=route,proto3,oneof" json:"route,omitempty"`
	Type            *string                                                `protobuf:"bytes,4,opt,name=type,proto3,oneof" json:"type,omitempty"`
	Squawk          *int32                                                 `protobuf:"varint,5,opt,name=squawk,proto3,oneof" json:"squawk,omitempty"` // NOTE: 20852 -> 0x5174
	Vspeed          *int32                                                 `protobuf:"varint,6,opt,name=vspeed,proto3,oneof" json:"vspeed,omitempty"`
	AcBirthday      *string                                                `protobuf:"bytes,7,opt,name=ac_birthday,json=acBirthday,proto3,oneof" json:"ac_birthday,omitempty"`
	CountryOfReg    *int32                                                 `protobuf:"varint,8,opt,name=country_of_reg,json=countryOfReg,proto3,oneof" json:"country_of_reg,omitempty"`
	Schedule        *LiveFeedResponse_FlightData_ExtraInfo_Schedule        `protobuf:"bytes,9,opt,name=schedule,proto3,oneof" json:"schedule,omitempty"`
	LogoId          *int32                                                 `protobuf:"varint,10,opt,name=logo_id,json=logoId,proto3,oneof" json:"logo_id,omitempty"`
	Airspace        *int32                                                 `protobuf:"varint,11,opt,name=airspace,proto3,oneof" json:"airspace,omitempty"` // FIR
	EmsInfo         *LiveFeedResponse_FlightData_ExtraInfo_EMS             `protobuf:"bytes,12,opt,name=ems_info,json=emsInfo,proto3,oneof" json:"ems_info,omitempty"`
	EmsAvailability *LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability `protobuf:"bytes,13,opt,name=ems_availability,json=emsAvailability,proto3,oneof" json:"ems_availability,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_FlightData_ExtraInfo) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse_FlightData_ExtraInfo.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData_ExtraInfo) GetAcBirthday added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo) GetAcBirthday() string

func (*LiveFeedResponse_FlightData_ExtraInfo) GetAirspace added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetCountryOfReg added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo) GetCountryOfReg() int32

func (*LiveFeedResponse_FlightData_ExtraInfo) GetEmsAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetEmsInfo added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetFlight added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetLogoId added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetReg added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetRoute added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetSchedule added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetSquawk added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetType added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) GetVspeed added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) ProtoMessage()

func (*LiveFeedResponse_FlightData_ExtraInfo) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) Reset added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo) String added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_EMS added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_EMS struct {
	Qnh       *int32 `protobuf:"varint,1,opt,name=qnh,proto3,oneof" json:"qnh,omitempty"`   // often null
	Amcp      *int32 `protobuf:"varint,2,opt,name=amcp,proto3,oneof" json:"amcp,omitempty"` // likely barometric altitude
	Afms      *int32 `protobuf:"varint,3,opt,name=afms,proto3,oneof" json:"afms,omitempty"` // often null
	Oat       *int32 `protobuf:"varint,4,opt,name=oat,proto3,oneof" json:"oat,omitempty"`
	Ias       *int32 `protobuf:"varint,5,opt,name=ias,proto3,oneof" json:"ias,omitempty"`
	Tas       *int32 `protobuf:"varint,6,opt,name=tas,proto3,oneof" json:"tas,omitempty"`
	Mach      *int32 `protobuf:"varint,7,opt,name=mach,proto3,oneof" json:"mach,omitempty"` // NOTE: 1000 = mach 1
	Agps      *int32 `protobuf:"varint,8,opt,name=agps,proto3,oneof" json:"agps,omitempty"`
	Agpsdiff  *int32 `protobuf:"varint,9,opt,name=agpsdiff,proto3,oneof" json:"agpsdiff,omitempty"` // |amcp - agps|
	Apflags   *int32 `protobuf:"varint,10,opt,name=apflags,proto3,oneof" json:"apflags,omitempty"`  // often null
	WindDir   *int32 `protobuf:"varint,11,opt,name=wind_dir,json=windDir,proto3,oneof" json:"wind_dir,omitempty"`
	WindSpeed *int32 `protobuf:"varint,12,opt,name=wind_speed,json=windSpeed,proto3,oneof" json:"wind_speed,omitempty"`
	Rs        *int32 `protobuf:"varint,13,opt,name=rs,proto3,oneof" json:"rs,omitempty"` // unknown
	// contains filtered or unexported fields
}

a =? altitude

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse_FlightData_ExtraInfo_EMS.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetAfms added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetAgps added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetAgpsdiff added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetAmcp added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetApflags added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetIas added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetMach added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetOat added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetQnh added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetRs added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetTas added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetWindDir added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) GetWindSpeed added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) Reset added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMS) String added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability struct {
	QnhAvailability       *bool `protobuf:"varint,1,opt,name=qnh_availability,json=qnhAvailability,proto3,oneof" json:"qnh_availability,omitempty"`
	AmcpAvailability      *bool `protobuf:"varint,2,opt,name=amcp_availability,json=amcpAvailability,proto3,oneof" json:"amcp_availability,omitempty"`
	AfmsAvailability      *bool `protobuf:"varint,3,opt,name=afms_availability,json=afmsAvailability,proto3,oneof" json:"afms_availability,omitempty"`
	OatAvailability       *bool `protobuf:"varint,4,opt,name=oat_availability,json=oatAvailability,proto3,oneof" json:"oat_availability,omitempty"`
	IasAvailability       *bool `protobuf:"varint,5,opt,name=ias_availability,json=iasAvailability,proto3,oneof" json:"ias_availability,omitempty"`
	TasAvailability       *bool `protobuf:"varint,6,opt,name=tas_availability,json=tasAvailability,proto3,oneof" json:"tas_availability,omitempty"`
	MachAvailability      *bool `protobuf:"varint,7,opt,name=mach_availability,json=machAvailability,proto3,oneof" json:"mach_availability,omitempty"`
	AgpsAvailability      *bool `protobuf:"varint,8,opt,name=agps_availability,json=agpsAvailability,proto3,oneof" json:"agps_availability,omitempty"`
	AgpsdiffAvailability  *bool `` /* 128-byte string literal not displayed */
	ApflagsAvailability   *bool `` /* 126-byte string literal not displayed */
	WindDirAvailability   *bool `` /* 128-byte string literal not displayed */
	WindSpeedAvailability *bool `` /* 134-byte string literal not displayed */
	RsAvailability        *bool `protobuf:"varint,13,opt,name=rs_availability,json=rsAvailability,proto3,oneof" json:"rs_availability,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) Descriptor deprecated added in v0.1.3

Deprecated: Use LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetAfmsAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetAgpsAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetAgpsdiffAvailability added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetAgpsdiffAvailability() bool

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetAmcpAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetApflagsAvailability added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetApflagsAvailability() bool

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetIasAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetMachAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetOatAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetQnhAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetRsAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetTasAvailability added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetWindDirAvailability added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetWindDirAvailability() bool

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetWindSpeedAvailability added in v0.1.3

func (x *LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) GetWindSpeedAvailability() bool

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) Reset added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_EMSAvailability) String added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_Route added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_Route struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) Descriptor deprecated added in v0.1.3

Deprecated: Use LiveFeedResponse_FlightData_ExtraInfo_Route.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) GetFrom added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) GetTo added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) Reset added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Route) String added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_Schedule added in v0.1.3

type LiveFeedResponse_FlightData_ExtraInfo_Schedule struct {
	Std int32 `protobuf:"varint,1,opt,name=std,proto3" json:"std,omitempty"`
	Etd int32 `protobuf:"varint,2,opt,name=etd,proto3" json:"etd,omitempty"`
	Atd int32 `protobuf:"varint,3,opt,name=atd,proto3" json:"atd,omitempty"`
	Sta int32 `protobuf:"varint,4,opt,name=sta,proto3" json:"sta,omitempty"`
	Eta int32 `protobuf:"varint,5,opt,name=eta,proto3" json:"eta,omitempty"` //!
	Ata int32 `protobuf:"varint,6,opt,name=ata,proto3" json:"ata,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) Descriptor deprecated added in v0.1.3

Deprecated: Use LiveFeedResponse_FlightData_ExtraInfo_Schedule.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetAta added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetAtd added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetEta added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetEtd added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetSta added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) GetStd added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) Reset added in v0.1.3

func (*LiveFeedResponse_FlightData_ExtraInfo_Schedule) String added in v0.1.3

type LiveFeedResponse_Statistics added in v0.1.3

type LiveFeedResponse_Statistics struct {
	Sources []*LiveFeedResponse_Statistics_SourceKV `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_Statistics) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse_Statistics) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse_Statistics.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_Statistics) GetSources added in v0.1.3

func (*LiveFeedResponse_Statistics) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_Statistics) ProtoMessage()

func (*LiveFeedResponse_Statistics) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_Statistics) Reset added in v0.1.3

func (x *LiveFeedResponse_Statistics) Reset()

func (*LiveFeedResponse_Statistics) String added in v0.1.3

func (x *LiveFeedResponse_Statistics) String() string

type LiveFeedResponse_Statistics_SourceKV added in v0.1.3

type LiveFeedResponse_Statistics_SourceKV struct {
	Source DataSource `protobuf:"varint,1,opt,name=source,proto3,enum=fr24.feed.api.v1.DataSource" json:"source,omitempty"`
	Count  int32      `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*LiveFeedResponse_Statistics_SourceKV) Descriptor deprecated added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) Descriptor() ([]byte, []int)

Deprecated: Use LiveFeedResponse_Statistics_SourceKV.ProtoReflect.Descriptor instead.

func (*LiveFeedResponse_Statistics_SourceKV) GetCount added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) GetSource added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) ProtoMessage added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) ProtoMessage()

func (*LiveFeedResponse_Statistics_SourceKV) ProtoReflect added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) Reset added in v0.1.3

func (*LiveFeedResponse_Statistics_SourceKV) String added in v0.1.3

type LookupHistoryResponse

type LookupHistoryResponse struct {
	Result struct {
		Response struct {
			Data []struct {
				Identification struct {
					Id     string `json:"id"`
					Number struct {
						Default string `json:"default"`
					} `json:"number"`
					Callsign string `json:"callsign"`
				} `json:"identification"`

				Time struct {
					Other struct {
						ETA     int `json:"eta"`
						Updated int `json:"updated"`
					} `json:"other"`
					Scheduled struct {
						Departure int `json:"departure"`
						Arrival   int `json:"arrival"`
					} `json:"scheduled"`
					Real struct {
						Departure int `json:"departure"`
						Arrival   int `json:"arrival"`
					} `json:"real"`
					Estimated struct {
						Departure int `json:"departure"`
						Arrival   int `json:"arrival"`
					} `json:"estimated"`
				} `json:"time"`

				Aircraft struct {
					Model struct {
						Text string `json:"text"`
						Code string `json:"code"`
					} `json:"model"`
					Registration string `json:"registration"`
				} `json:"aircraft"`

				Airport struct {
					Destination AirportData `json:"destination"`
					Origin      AirportData `json:"origin"`
				} `json:"airport"`
			} `json:"data"`
		} `json:"response"`
	} `json:"result"`
}

This is a subset, only parsing out some interesting fields

type QueryResponse

type QueryResponse struct {
	Results []struct {
		Id string `json:"id"`

		Detail struct {
			Reg      string `json:"reg"`
			Callsign string `json:"callsign"`
			Flight   string `json:"flight"`
		} `json:"detail"`

		Type string `json:"type"`
	} `json:"results"`
}

This is a small subset, only parsing out some interesting fields

type Service added in v0.1.3

type Service int32
const (
	Service_PASSENGER               Service = 0
	Service_CARGO                   Service = 1
	Service_MILITARY_AND_GOVERNMENT Service = 2
	Service_BUSINESS_JETS           Service = 3
	Service_GENERAL_AVIATION        Service = 4
	Service_HELICOPTERS             Service = 5
	Service_LIGHTER_THAN_AIR        Service = 6
	Service_GLIDERS                 Service = 7
	Service_DRONES                  Service = 8
	Service_GROUND_VEHICLES         Service = 9
	Service_OTHER_SERVICE           Service = 10
	Service_NON_CATEGORIZED         Service = 11
)

func (Service) Descriptor added in v0.1.3

func (Service) Descriptor() protoreflect.EnumDescriptor

func (Service) Enum added in v0.1.3

func (x Service) Enum() *Service

func (Service) EnumDescriptor deprecated added in v0.1.3

func (Service) EnumDescriptor() ([]byte, []int)

Deprecated: Use Service.Descriptor instead.

func (Service) Number added in v0.1.3

func (x Service) Number() protoreflect.EnumNumber

func (Service) String added in v0.1.3

func (x Service) String() string

func (Service) Type added in v0.1.3

func (Service) Type() protoreflect.EnumType

type UnimplementedFeedServer added in v0.1.3

type UnimplementedFeedServer struct {
}

UnimplementedFeedServer must be embedded to have forward compatible implementations.

func (UnimplementedFeedServer) LiveFeed added in v0.1.3

type UnsafeFeedServer added in v0.1.3

type UnsafeFeedServer interface {
	// contains filtered or unexported methods
}

UnsafeFeedServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FeedServer will result in compilation errors.

Jump to

Keyboard shortcuts

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