Documentation
¶
Overview ¶
Package fr24api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
Index ¶
- Constants
- func NewGetAirlinesLightRequest(server string, icao string, params *GetAirlinesLightParams) (*http.Request, error)
- func NewGetAirportsFullRequest(server string, code string, params *GetAirportsFullParams) (*http.Request, error)
- func NewGetAirportsLightRequest(server string, code string, params *GetAirportsLightParams) (*http.Request, error)
- func NewGetApiFlightSummaryCountRequest(server string, params *GetApiFlightSummaryCountParams) (*http.Request, error)
- func NewGetApiHistoricFlightPositionsCountRequest(server string, params *GetApiHistoricFlightPositionsCountParams) (*http.Request, error)
- func NewGetApiLiveFlightPositionsCountRequest(server string, params *GetApiLiveFlightPositionsCountParams) (*http.Request, error)
- func NewGetApiUsageRequest(server string, params *GetApiUsageParams) (*http.Request, error)
- func NewGetFlightSummaryFullRequest(server string, params *GetFlightSummaryFullParams) (*http.Request, error)
- func NewGetFlightSummaryLightRequest(server string, params *GetFlightSummaryLightParams) (*http.Request, error)
- func NewGetFlightsTracksRequest(server string, params *GetFlightsTracksParams) (*http.Request, error)
- func NewGetHistoricFlightPositionsFullRequest(server string, params *GetHistoricFlightPositionsFullParams) (*http.Request, error)
- func NewGetHistoricFlightPositionsLightRequest(server string, params *GetHistoricFlightPositionsLightParams) (*http.Request, error)
- func NewGetHistoricalFlightEventsFullRequest(server string, params *GetHistoricalFlightEventsFullParams) (*http.Request, error)
- func NewGetHistoricalFlightEventsLightRequest(server string, params *GetHistoricalFlightEventsLightParams) (*http.Request, error)
- func NewGetLiveFlightPositionsFullRequest(server string, params *GetLiveFlightPositionsFullParams) (*http.Request, error)
- func NewGetLiveFlightPositionsLightRequest(server string, params *GetLiveFlightPositionsLightParams) (*http.Request, error)
- type AcceptVersion
- type Aircraft
- type AirlineLight
- type AirportFull
- type AirportLight
- type Airports
- type Airspaces
- type AltitudeRanges
- type Bounds
- type Callsigns
- type Categories
- type Client
- func (c *Client) GetAirlinesLight(ctx context.Context, icao string, params *GetAirlinesLightParams, ...) (*http.Response, error)
- func (c *Client) GetAirportsFull(ctx context.Context, code string, params *GetAirportsFullParams, ...) (*http.Response, error)
- func (c *Client) GetAirportsLight(ctx context.Context, code string, params *GetAirportsLightParams, ...) (*http.Response, error)
- func (c *Client) GetApiFlightSummaryCount(ctx context.Context, params *GetApiFlightSummaryCountParams, ...) (*http.Response, error)
- func (c *Client) GetApiHistoricFlightPositionsCount(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, ...) (*http.Response, error)
- func (c *Client) GetApiLiveFlightPositionsCount(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, ...) (*http.Response, error)
- func (c *Client) GetApiUsage(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFlightSummaryFull(ctx context.Context, params *GetFlightSummaryFullParams, ...) (*http.Response, error)
- func (c *Client) GetFlightSummaryLight(ctx context.Context, params *GetFlightSummaryLightParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsTracks(ctx context.Context, params *GetFlightsTracksParams, ...) (*http.Response, error)
- func (c *Client) GetHistoricFlightPositionsFull(ctx context.Context, params *GetHistoricFlightPositionsFullParams, ...) (*http.Response, error)
- func (c *Client) GetHistoricFlightPositionsLight(ctx context.Context, params *GetHistoricFlightPositionsLightParams, ...) (*http.Response, error)
- func (c *Client) GetHistoricalFlightEventsFull(ctx context.Context, params *GetHistoricalFlightEventsFullParams, ...) (*http.Response, error)
- func (c *Client) GetHistoricalFlightEventsLight(ctx context.Context, params *GetHistoricalFlightEventsLightParams, ...) (*http.Response, error)
- func (c *Client) GetLiveFlightPositionsFull(ctx context.Context, params *GetLiveFlightPositionsFullParams, ...) (*http.Response, error)
- func (c *Client) GetLiveFlightPositionsLight(ctx context.Context, params *GetLiveFlightPositionsLightParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) GetAirlinesLightWithResponse(ctx context.Context, icao string, params *GetAirlinesLightParams, ...) (*GetAirlinesLightResponse, error)
- func (c *ClientWithResponses) GetAirportsFullWithResponse(ctx context.Context, code string, params *GetAirportsFullParams, ...) (*GetAirportsFullResponse, error)
- func (c *ClientWithResponses) GetAirportsLightWithResponse(ctx context.Context, code string, params *GetAirportsLightParams, ...) (*GetAirportsLightResponse, error)
- func (c *ClientWithResponses) GetApiFlightSummaryCountWithResponse(ctx context.Context, params *GetApiFlightSummaryCountParams, ...) (*GetApiFlightSummaryCountResponse, error)
- func (c *ClientWithResponses) GetApiHistoricFlightPositionsCountWithResponse(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, ...) (*GetApiHistoricFlightPositionsCountResponse, error)
- func (c *ClientWithResponses) GetApiLiveFlightPositionsCountWithResponse(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, ...) (*GetApiLiveFlightPositionsCountResponse, error)
- func (c *ClientWithResponses) GetApiUsageWithResponse(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*GetApiUsageResponse, error)
- func (c *ClientWithResponses) GetFlightSummaryFullWithResponse(ctx context.Context, params *GetFlightSummaryFullParams, ...) (*GetFlightSummaryFullResponse, error)
- func (c *ClientWithResponses) GetFlightSummaryLightWithResponse(ctx context.Context, params *GetFlightSummaryLightParams, ...) (*GetFlightSummaryLightResponse, error)
- func (c *ClientWithResponses) GetFlightsTracksWithResponse(ctx context.Context, params *GetFlightsTracksParams, ...) (*GetFlightsTracksResponse, error)
- func (c *ClientWithResponses) GetHistoricFlightPositionsFullWithResponse(ctx context.Context, params *GetHistoricFlightPositionsFullParams, ...) (*GetHistoricFlightPositionsFullResponse, error)
- func (c *ClientWithResponses) GetHistoricFlightPositionsLightWithResponse(ctx context.Context, params *GetHistoricFlightPositionsLightParams, ...) (*GetHistoricFlightPositionsLightResponse, error)
- func (c *ClientWithResponses) GetHistoricalFlightEventsFullWithResponse(ctx context.Context, params *GetHistoricalFlightEventsFullParams, ...) (*GetHistoricalFlightEventsFullResponse, error)
- func (c *ClientWithResponses) GetHistoricalFlightEventsLightWithResponse(ctx context.Context, params *GetHistoricalFlightEventsLightParams, ...) (*GetHistoricalFlightEventsLightResponse, error)
- func (c *ClientWithResponses) GetLiveFlightPositionsFullWithResponse(ctx context.Context, params *GetLiveFlightPositionsFullParams, ...) (*GetLiveFlightPositionsFullResponse, error)
- func (c *ClientWithResponses) GetLiveFlightPositionsLightWithResponse(ctx context.Context, params *GetLiveFlightPositionsLightParams, ...) (*GetLiveFlightPositionsLightResponse, error)
- type ClientWithResponsesInterface
- type Count
- type Country
- type DataSources
- type EventTypes
- type FlightDateTimeFrom
- type FlightDateTimeTo
- type FlightIdsFlightEvents
- type FlightIdsFlightSummary
- type FlightPositionsFull
- type FlightPositionsLight
- type FlightSummaryFull
- type FlightSummaryLight
- type FlightTracks
- type Flights
- type GSpeed
- type GetAirlinesLightParams
- type GetAirlinesLightResponse
- type GetAirportsFullParams
- type GetAirportsFullResponse
- type GetAirportsLightParams
- type GetAirportsLightResponse
- type GetApiFlightSummaryCountParams
- type GetApiFlightSummaryCountResponse
- type GetApiHistoricFlightPositionsCountParams
- type GetApiHistoricFlightPositionsCountResponse
- type GetApiLiveFlightPositionsCountParams
- type GetApiLiveFlightPositionsCountResponse
- type GetApiUsageParams
- type GetApiUsageParamsPeriod
- type GetApiUsageResponse
- type GetFlightSummaryFullParams
- type GetFlightSummaryFullParamsSort
- type GetFlightSummaryFullResponse
- type GetFlightSummaryLightParams
- type GetFlightSummaryLightParamsSort
- type GetFlightSummaryLightResponse
- type GetFlightsTracksParams
- type GetFlightsTracksResponse
- type GetHistoricFlightPositionsFullParams
- type GetHistoricFlightPositionsFullResponse
- type GetHistoricFlightPositionsLightParams
- type GetHistoricFlightPositionsLightResponse
- type GetHistoricalFlightEventsFullParams
- type GetHistoricalFlightEventsFullResponse
- type GetHistoricalFlightEventsLightParams
- type GetHistoricalFlightEventsLightResponse
- type GetLiveFlightPositionsFullParams
- type GetLiveFlightPositionsFullResponse
- type GetLiveFlightPositionsLightParams
- type GetLiveFlightPositionsLightResponse
- type HistoricFlightEventsFull
- type HistoricFlightEventsLight
- type HttpRequestDoer
- type OperatingAs
- type PaintedAs
- type PaymentRequired
- type Registrations
- type RequestEditorFn
- type Routes
- type Runway
- type Sort
- type Squawks
- type Timestamp
- type Timezone
- type Unauthorized
- type UsageLogSummary
- type UsageLogSummaryValidationError
Constants ¶
const (
AuthorizationScopes authorizationContextKey = "Authorization.Scopes"
)
const ServerUrlProductionServer = "https://fr24api.flightradar24.com"
ServerUrlProductionServer defines the Server URL for Production server
Variables ¶
This section is empty.
Functions ¶
func NewGetAirlinesLightRequest ¶
func NewGetAirlinesLightRequest(server string, icao string, params *GetAirlinesLightParams) (*http.Request, error)
NewGetAirlinesLightRequest generates requests for GetAirlinesLight
func NewGetAirportsFullRequest ¶
func NewGetAirportsFullRequest(server string, code string, params *GetAirportsFullParams) (*http.Request, error)
NewGetAirportsFullRequest generates requests for GetAirportsFull
func NewGetAirportsLightRequest ¶
func NewGetAirportsLightRequest(server string, code string, params *GetAirportsLightParams) (*http.Request, error)
NewGetAirportsLightRequest generates requests for GetAirportsLight
func NewGetApiFlightSummaryCountRequest ¶
func NewGetApiFlightSummaryCountRequest(server string, params *GetApiFlightSummaryCountParams) (*http.Request, error)
NewGetApiFlightSummaryCountRequest generates requests for GetApiFlightSummaryCount
func NewGetApiHistoricFlightPositionsCountRequest ¶
func NewGetApiHistoricFlightPositionsCountRequest(server string, params *GetApiHistoricFlightPositionsCountParams) (*http.Request, error)
NewGetApiHistoricFlightPositionsCountRequest generates requests for GetApiHistoricFlightPositionsCount
func NewGetApiLiveFlightPositionsCountRequest ¶
func NewGetApiLiveFlightPositionsCountRequest(server string, params *GetApiLiveFlightPositionsCountParams) (*http.Request, error)
NewGetApiLiveFlightPositionsCountRequest generates requests for GetApiLiveFlightPositionsCount
func NewGetApiUsageRequest ¶
func NewGetApiUsageRequest(server string, params *GetApiUsageParams) (*http.Request, error)
NewGetApiUsageRequest generates requests for GetApiUsage
func NewGetFlightSummaryFullRequest ¶
func NewGetFlightSummaryFullRequest(server string, params *GetFlightSummaryFullParams) (*http.Request, error)
NewGetFlightSummaryFullRequest generates requests for GetFlightSummaryFull
func NewGetFlightSummaryLightRequest ¶
func NewGetFlightSummaryLightRequest(server string, params *GetFlightSummaryLightParams) (*http.Request, error)
NewGetFlightSummaryLightRequest generates requests for GetFlightSummaryLight
func NewGetFlightsTracksRequest ¶
func NewGetFlightsTracksRequest(server string, params *GetFlightsTracksParams) (*http.Request, error)
NewGetFlightsTracksRequest generates requests for GetFlightsTracks
func NewGetHistoricFlightPositionsFullRequest ¶
func NewGetHistoricFlightPositionsFullRequest(server string, params *GetHistoricFlightPositionsFullParams) (*http.Request, error)
NewGetHistoricFlightPositionsFullRequest generates requests for GetHistoricFlightPositionsFull
func NewGetHistoricFlightPositionsLightRequest ¶
func NewGetHistoricFlightPositionsLightRequest(server string, params *GetHistoricFlightPositionsLightParams) (*http.Request, error)
NewGetHistoricFlightPositionsLightRequest generates requests for GetHistoricFlightPositionsLight
func NewGetHistoricalFlightEventsFullRequest ¶
func NewGetHistoricalFlightEventsFullRequest(server string, params *GetHistoricalFlightEventsFullParams) (*http.Request, error)
NewGetHistoricalFlightEventsFullRequest generates requests for GetHistoricalFlightEventsFull
func NewGetHistoricalFlightEventsLightRequest ¶
func NewGetHistoricalFlightEventsLightRequest(server string, params *GetHistoricalFlightEventsLightParams) (*http.Request, error)
NewGetHistoricalFlightEventsLightRequest generates requests for GetHistoricalFlightEventsLight
func NewGetLiveFlightPositionsFullRequest ¶
func NewGetLiveFlightPositionsFullRequest(server string, params *GetLiveFlightPositionsFullParams) (*http.Request, error)
NewGetLiveFlightPositionsFullRequest generates requests for GetLiveFlightPositionsFull
func NewGetLiveFlightPositionsLightRequest ¶
func NewGetLiveFlightPositionsLightRequest(server string, params *GetLiveFlightPositionsLightParams) (*http.Request, error)
NewGetLiveFlightPositionsLightRequest generates requests for GetLiveFlightPositionsLight
Types ¶
type AirlineLight ¶
type AirlineLight struct {
// Iata Airline IATA code.
Iata *string `json:"iata,omitempty"`
// Icao Airline ICAO code.
Icao *string `json:"icao,omitempty"`
// Name Name of the airline.
Name *string `json:"name,omitempty"`
}
AirlineLight defines model for AirlineLight.
type AirportFull ¶
type AirportFull struct {
// City City of airport.
City *string `json:"city,omitempty"`
Country *Country `json:"country,omitempty"`
// Elevation Airport elevation in feet.
Elevation *float32 `json:"elevation,omitempty"`
// Iata Airport IATA code.
Iata *string `json:"iata,omitempty"`
// Icao Airport ICAO code.
Icao *string `json:"icao,omitempty"`
// Lat Latitude expressed in decimal degrees.
Lat *float32 `json:"lat,omitempty"`
// Lon Longitude expressed in decimal degrees.
Lon *float32 `json:"lon,omitempty"`
// Name Name of the airport.
Name *string `json:"name,omitempty"`
// Runways List of runways at the airport.
Runways *[]Runway `json:"runways,omitempty"`
// State The state where the airport is located. Only available for US, Canada, Brazil and Australia.
State *string `json:"state,omitempty"`
Timezone *Timezone `json:"timezone,omitempty"`
}
AirportFull Contains detailed airport information.
type AirportLight ¶
type AirportLight struct {
// Iata Airport IATA code.
Iata *string `json:"iata,omitempty"`
// Icao Airport ICAO code.
Icao *string `json:"icao,omitempty"`
// Name Name of the airport.
Name *string `json:"name,omitempty"`
}
AirportLight Contains airport information.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) GetAirlinesLight ¶
func (c *Client) GetAirlinesLight(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAirportsFull ¶
func (c *Client) GetAirportsFull(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAirportsLight ¶
func (c *Client) GetAirportsLight(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiFlightSummaryCount ¶
func (c *Client) GetApiFlightSummaryCount(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiHistoricFlightPositionsCount ¶
func (c *Client) GetApiHistoricFlightPositionsCount(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiLiveFlightPositionsCount ¶
func (c *Client) GetApiLiveFlightPositionsCount(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetApiUsage ¶
func (c *Client) GetApiUsage(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFlightSummaryFull ¶
func (c *Client) GetFlightSummaryFull(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFlightSummaryLight ¶
func (c *Client) GetFlightSummaryLight(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFlightsTracks ¶
func (c *Client) GetFlightsTracks(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHistoricFlightPositionsFull ¶
func (c *Client) GetHistoricFlightPositionsFull(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHistoricFlightPositionsLight ¶
func (c *Client) GetHistoricFlightPositionsLight(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHistoricalFlightEventsFull ¶
func (c *Client) GetHistoricalFlightEventsFull(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetHistoricalFlightEventsLight ¶
func (c *Client) GetHistoricalFlightEventsLight(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLiveFlightPositionsFull ¶
func (c *Client) GetLiveFlightPositionsFull(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLiveFlightPositionsLight ¶
func (c *Client) GetLiveFlightPositionsLight(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetApiFlightSummaryCount request
GetApiFlightSummaryCount(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightSummaryFull request
GetFlightSummaryFull(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightSummaryLight request
GetFlightSummaryLight(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsTracks request
GetFlightsTracks(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricalFlightEventsFull request
GetHistoricalFlightEventsFull(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricalFlightEventsLight request
GetHistoricalFlightEventsLight(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiHistoricFlightPositionsCount request
GetApiHistoricFlightPositionsCount(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricFlightPositionsFull request
GetHistoricFlightPositionsFull(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricFlightPositionsLight request
GetHistoricFlightPositionsLight(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiLiveFlightPositionsCount request
GetApiLiveFlightPositionsCount(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLiveFlightPositionsFull request
GetLiveFlightPositionsFull(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLiveFlightPositionsLight request
GetLiveFlightPositionsLight(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirlinesLight request
GetAirlinesLight(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsFull request
GetAirportsFull(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsLight request
GetAirportsLight(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiUsage request
GetApiUsage(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithAuthentication ¶
func WithAuthentication(apiKey string) ClientOption
WithAuthentication returns a ClientOption that sets the Authorization header to "Bearer <apiKey>" on each request.
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) GetAirlinesLightWithResponse ¶
func (c *ClientWithResponses) GetAirlinesLightWithResponse(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*GetAirlinesLightResponse, error)
GetAirlinesLightWithResponse request returning *GetAirlinesLightResponse
func (*ClientWithResponses) GetAirportsFullWithResponse ¶
func (c *ClientWithResponses) GetAirportsFullWithResponse(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*GetAirportsFullResponse, error)
GetAirportsFullWithResponse request returning *GetAirportsFullResponse
func (*ClientWithResponses) GetAirportsLightWithResponse ¶
func (c *ClientWithResponses) GetAirportsLightWithResponse(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*GetAirportsLightResponse, error)
GetAirportsLightWithResponse request returning *GetAirportsLightResponse
func (*ClientWithResponses) GetApiFlightSummaryCountWithResponse ¶
func (c *ClientWithResponses) GetApiFlightSummaryCountWithResponse(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*GetApiFlightSummaryCountResponse, error)
GetApiFlightSummaryCountWithResponse request returning *GetApiFlightSummaryCountResponse
func (*ClientWithResponses) GetApiHistoricFlightPositionsCountWithResponse ¶
func (c *ClientWithResponses) GetApiHistoricFlightPositionsCountWithResponse(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiHistoricFlightPositionsCountResponse, error)
GetApiHistoricFlightPositionsCountWithResponse request returning *GetApiHistoricFlightPositionsCountResponse
func (*ClientWithResponses) GetApiLiveFlightPositionsCountWithResponse ¶
func (c *ClientWithResponses) GetApiLiveFlightPositionsCountWithResponse(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiLiveFlightPositionsCountResponse, error)
GetApiLiveFlightPositionsCountWithResponse request returning *GetApiLiveFlightPositionsCountResponse
func (*ClientWithResponses) GetApiUsageWithResponse ¶
func (c *ClientWithResponses) GetApiUsageWithResponse(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*GetApiUsageResponse, error)
GetApiUsageWithResponse request returning *GetApiUsageResponse
func (*ClientWithResponses) GetFlightSummaryFullWithResponse ¶
func (c *ClientWithResponses) GetFlightSummaryFullWithResponse(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryFullResponse, error)
GetFlightSummaryFullWithResponse request returning *GetFlightSummaryFullResponse
func (*ClientWithResponses) GetFlightSummaryLightWithResponse ¶
func (c *ClientWithResponses) GetFlightSummaryLightWithResponse(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryLightResponse, error)
GetFlightSummaryLightWithResponse request returning *GetFlightSummaryLightResponse
func (*ClientWithResponses) GetFlightsTracksWithResponse ¶
func (c *ClientWithResponses) GetFlightsTracksWithResponse(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*GetFlightsTracksResponse, error)
GetFlightsTracksWithResponse request returning *GetFlightsTracksResponse
func (*ClientWithResponses) GetHistoricFlightPositionsFullWithResponse ¶
func (c *ClientWithResponses) GetHistoricFlightPositionsFullWithResponse(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsFullResponse, error)
GetHistoricFlightPositionsFullWithResponse request returning *GetHistoricFlightPositionsFullResponse
func (*ClientWithResponses) GetHistoricFlightPositionsLightWithResponse ¶
func (c *ClientWithResponses) GetHistoricFlightPositionsLightWithResponse(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsLightResponse, error)
GetHistoricFlightPositionsLightWithResponse request returning *GetHistoricFlightPositionsLightResponse
func (*ClientWithResponses) GetHistoricalFlightEventsFullWithResponse ¶
func (c *ClientWithResponses) GetHistoricalFlightEventsFullWithResponse(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsFullResponse, error)
GetHistoricalFlightEventsFullWithResponse request returning *GetHistoricalFlightEventsFullResponse
func (*ClientWithResponses) GetHistoricalFlightEventsLightWithResponse ¶
func (c *ClientWithResponses) GetHistoricalFlightEventsLightWithResponse(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsLightResponse, error)
GetHistoricalFlightEventsLightWithResponse request returning *GetHistoricalFlightEventsLightResponse
func (*ClientWithResponses) GetLiveFlightPositionsFullWithResponse ¶
func (c *ClientWithResponses) GetLiveFlightPositionsFullWithResponse(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsFullResponse, error)
GetLiveFlightPositionsFullWithResponse request returning *GetLiveFlightPositionsFullResponse
func (*ClientWithResponses) GetLiveFlightPositionsLightWithResponse ¶
func (c *ClientWithResponses) GetLiveFlightPositionsLightWithResponse(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsLightResponse, error)
GetLiveFlightPositionsLightWithResponse request returning *GetLiveFlightPositionsLightResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetApiFlightSummaryCountWithResponse request
GetApiFlightSummaryCountWithResponse(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*GetApiFlightSummaryCountResponse, error)
// GetFlightSummaryFullWithResponse request
GetFlightSummaryFullWithResponse(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryFullResponse, error)
// GetFlightSummaryLightWithResponse request
GetFlightSummaryLightWithResponse(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryLightResponse, error)
// GetFlightsTracksWithResponse request
GetFlightsTracksWithResponse(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*GetFlightsTracksResponse, error)
// GetHistoricalFlightEventsFullWithResponse request
GetHistoricalFlightEventsFullWithResponse(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsFullResponse, error)
// GetHistoricalFlightEventsLightWithResponse request
GetHistoricalFlightEventsLightWithResponse(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsLightResponse, error)
// GetApiHistoricFlightPositionsCountWithResponse request
GetApiHistoricFlightPositionsCountWithResponse(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiHistoricFlightPositionsCountResponse, error)
// GetHistoricFlightPositionsFullWithResponse request
GetHistoricFlightPositionsFullWithResponse(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsFullResponse, error)
// GetHistoricFlightPositionsLightWithResponse request
GetHistoricFlightPositionsLightWithResponse(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsLightResponse, error)
// GetApiLiveFlightPositionsCountWithResponse request
GetApiLiveFlightPositionsCountWithResponse(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiLiveFlightPositionsCountResponse, error)
// GetLiveFlightPositionsFullWithResponse request
GetLiveFlightPositionsFullWithResponse(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsFullResponse, error)
// GetLiveFlightPositionsLightWithResponse request
GetLiveFlightPositionsLightWithResponse(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsLightResponse, error)
// GetAirlinesLightWithResponse request
GetAirlinesLightWithResponse(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*GetAirlinesLightResponse, error)
// GetAirportsFullWithResponse request
GetAirportsFullWithResponse(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*GetAirportsFullResponse, error)
// GetAirportsLightWithResponse request
GetAirportsLightWithResponse(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*GetAirportsLightResponse, error)
// GetApiUsageWithResponse request
GetApiUsageWithResponse(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*GetApiUsageResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Count ¶
type Count struct {
RecordCount *int `json:"record_count,omitempty"`
}
Count defines model for Count.
type Country ¶
type Country struct {
// Code ISO 3166-1 alpha-2 code of the country.
Code *string `json:"code,omitempty"`
// Name Name of the country.
Name *string `json:"name,omitempty"`
}
Country defines model for Country.
type FlightDateTimeFrom ¶
FlightDateTimeFrom defines model for FlightDateTimeFrom.
type FlightDateTimeTo ¶
FlightDateTimeTo defines model for FlightDateTimeTo.
type FlightIdsFlightEvents ¶
type FlightIdsFlightEvents = string
FlightIdsFlightEvents defines model for FlightIdsFlightEvents.
type FlightIdsFlightSummary ¶
type FlightIdsFlightSummary = string
FlightIdsFlightSummary defines model for FlightIdsFlightSummary.
type FlightPositionsFull ¶
type FlightPositionsFull struct {
// Alt Barometric pressure altitude above mean sea level (AMSL) reported at a standard atmospheric pressure (1013.25 hPa / 29.92 in. Hg.) expressed in feet.
Alt *int `json:"alt,omitempty"`
// Callsign Callsign used by Air Traffic Control to denote a specific flight (as sent by aircraft transponder).
Callsign *string `json:"callsign,omitempty"`
// DestIata Destination airport IATA code.
DestIata *string `json:"dest_iata,omitempty"`
// DestIcao Destination airport ICAO code.
DestIcao *string `json:"dest_icao,omitempty"`
// Eta Estimated time of arrival (ISO 8601 date format).
Eta *string `json:"eta,omitempty"`
// Flight Commercial flight number.
Flight *string `json:"flight,omitempty"`
// Fr24Id Unique identifier assigned by Flightradar24 to each flight leg.
Fr24Id *string `json:"fr24_id,omitempty"`
// Gspeed Speed relative to the ground expressed in knots.
Gspeed *int `json:"gspeed,omitempty"`
// Hex 24 bit Mode-S identifier expressed in hexadecimal format.
Hex *string `json:"hex,omitempty"`
// Lat Latest latitude expressed in decimal degrees.
Lat *float32 `json:"lat,omitempty"`
// Lon Latest longitude expressed in decimal degrees.
Lon *float32 `json:"lon,omitempty"`
// OperatingAs ICAO code of the airline carrier as derived from flight callsign.
OperatingAs *string `json:"operating_as,omitempty"`
// OrigIata Origin airport IATA code.
OrigIata *string `json:"orig_iata,omitempty"`
// OrigIcao Origin airport ICAO code.
OrigIcao *string `json:"orig_icao,omitempty"`
// PaintedAs ICAO code of the carrier mapped from FR24's internal database.
PaintedAs *string `json:"painted_as,omitempty"`
// Reg Aircraft registration as matched from Mode-S identifier.
Reg *string `json:"reg,omitempty"`
// Source Data source of the provided flight position.
Source *string `json:"source,omitempty"`
// Squawk 4 digit unique identifying code for ATC expressed in octal format.
Squawk *string `json:"squawk,omitempty"`
// Timestamp Timestamp of the flight position expressed in UTC (ISO 8601 date format).
Timestamp *time.Time `json:"timestamp,omitempty"`
// Track True track (over ground) expressed in integer degrees as 0-360. Please note that 0 can in some cases mean unknown.
Track *int `json:"track,omitempty"`
// Type Aircraft ICAO type code.
Type *string `json:"type,omitempty"`
// Vspeed The rate at which the aircraft is ascending or descending in feet per minute.
Vspeed *int `json:"vspeed,omitempty"`
}
FlightPositionsFull defines model for FlightPositionsFull.
type FlightPositionsLight ¶
type FlightPositionsLight struct {
// Alt Barometric pressure altitude above mean sea level (AMSL) reported at a standard atmospheric pressure (1013.25 hPa / 29.92 in. Hg.) expressed in feet.
Alt *int `json:"alt,omitempty"`
// Callsign Callsign used by Air Traffic Control to denote a specific flight (as sent by aircraft transponder).
Callsign *string `json:"callsign,omitempty"`
// Fr24Id Unique identifier assigned by Flightradar24 to each flight leg.
Fr24Id *string `json:"fr24_id,omitempty"`
// Gspeed Speed relative to the ground expressed in knots.
Gspeed *int `json:"gspeed,omitempty"`
// Hex 24 bit Mode-S identifier expressed in hexadecimal format.
Hex *string `json:"hex,omitempty"`
// Lat Latest latitude expressed in decimal degrees.
Lat *float32 `json:"lat,omitempty"`
// Lon Latest longitude expressed in decimal degrees.
Lon *float32 `json:"lon,omitempty"`
// Source Data source of the provided flight position.
Source *string `json:"source,omitempty"`
// Squawk 4 digit unique identifying code for ATC expressed in octal format.
Squawk *string `json:"squawk,omitempty"`
// Timestamp Timestamp of the flight position expressed in UTC (ISO 8601 date format).
Timestamp *time.Time `json:"timestamp,omitempty"`
// Track True track (over ground) expressed in integer degrees as 0-360. Please note that 0 can in some cases mean unknown.
Track *int `json:"track,omitempty"`
// Vspeed The rate at which the aircraft is ascending or descending in feet per minute.
Vspeed *int `json:"vspeed,omitempty"`
}
FlightPositionsLight defines model for FlightPositionsLight.
type FlightSummaryFull ¶
type FlightSummaryFull struct {
// ActualDistance Actual ground distance the aircraft traveled (in km).
ActualDistance *float32 `json:"actual_distance,omitempty"`
// Callsign Callsign used by Air Traffic Control to denote a specific flight (as sent by aircraft transponder).
Callsign *string `json:"callsign,omitempty"`
// CircleDistance Great-circle distance between the first and last position (in km).
CircleDistance *float32 `json:"circle_distance,omitempty"`
// DatetimeLanded Datetime of landing in UTC (YYYY-MM-DDTHH:MM:SS).
DatetimeLanded *string `json:"datetime_landed,omitempty"`
// DatetimeTakeoff Datetime of takeoff in UTC (YYYY-MM-DDTHH:MM:SS).
DatetimeTakeoff *string `json:"datetime_takeoff,omitempty"`
// DestIata Destination airport IATA code.
DestIata *string `json:"dest_iata,omitempty"`
// DestIataActual IATA code for the actual destination airport (different when diverted).
DestIataActual *string `json:"dest_iata_actual,omitempty"`
// DestIcao Destination airport ICAO code.
DestIcao *string `json:"dest_icao,omitempty"`
// DestIcaoActual ICAO code for the actual destination airport (different when diverted).
DestIcaoActual *string `json:"dest_icao_actual,omitempty"`
// FirstSeen Datetime when the aircraft was first detected for this flight leg (UTC) (YYYY-MM-DDTHH:MM:SS).
FirstSeen *string `json:"first_seen,omitempty"`
// Flight Commercial flight number.
Flight *string `json:"flight,omitempty"`
// FlightEnded Flag indicating if the flight is live (currently tracked) or historical.
FlightEnded *bool `json:"flight_ended,omitempty"`
// FlightTime Duration of the flight from takeoff to landing in seconds.
FlightTime *float32 `json:"flight_time,omitempty"`
// Fr24Id Unique identifier assigned by Flightradar24 to each flight leg.
Fr24Id *string `json:"fr24_id,omitempty"`
// Hex 24-bit Mode-S identifier in hexadecimal format.
Hex *string `json:"hex,omitempty"`
// LastSeen Datetime when the aircraft was last detected for this flight leg (UTC) (YYYY-MM-DDTHH:MM:SS).
LastSeen *string `json:"last_seen,omitempty"`
// OperatingAs ICAO code of the airline carrier as derived from flight callsign.
OperatingAs *string `json:"operating_as,omitempty"`
// OrigIata Origin airport IATA code.
OrigIata *string `json:"orig_iata,omitempty"`
// OrigIcao Origin airport ICAO code.
OrigIcao *string `json:"orig_icao,omitempty"`
// PaintedAs ICAO code of the carrier mapped from FR24's internal database.
PaintedAs *string `json:"painted_as,omitempty"`
// Reg Aircraft registration as matched from Mode-S identifier.
Reg *string `json:"reg,omitempty"`
// RunwayLanded Identifier of the runway used for landing.
RunwayLanded *string `json:"runway_landed,omitempty"`
// RunwayTakeoff Identifier of the runway used for takeoff.
RunwayTakeoff *string `json:"runway_takeoff,omitempty"`
// Type Aircraft ICAO type code.
Type *string `json:"type,omitempty"`
}
FlightSummaryFull defines model for FlightSummaryFull.
type FlightSummaryLight ¶
type FlightSummaryLight struct {
// Callsign Callsign used by Air Traffic Control to denote a specific flight (as sent by aircraft transponder).
Callsign *string `json:"callsign,omitempty"`
// DatetimeLanded Datetime of landing in UTC (YYYY-MM-DDTHH:MM:SS).
DatetimeLanded *string `json:"datetime_landed,omitempty"`
// DatetimeTakeoff Datetime of takeoff in UTC (YYYY-MM-DDTHH:MM:SS).
DatetimeTakeoff *string `json:"datetime_takeoff,omitempty"`
// DestIcao Destination airport ICAO code.
DestIcao *string `json:"dest_icao,omitempty"`
// FirstSeen Datetime when the aircraft was first detected for this flight leg (UTC) (YYYY-MM-DDTHH:MM:SS).
FirstSeen *string `json:"first_seen,omitempty"`
// Flight Commercial flight number.
Flight *string `json:"flight,omitempty"`
// FlightEnded Flag indicating if the flight is live (currently tracked) or historical.
FlightEnded *bool `json:"flight_ended,omitempty"`
// Fr24Id Unique identifier assigned by Flightradar24 to each flight leg.
Fr24Id *string `json:"fr24_id,omitempty"`
// Hex 24 bit Mode-S identifier expressed in hexadecimal format.
Hex *string `json:"hex,omitempty"`
// LastSeen Datetime when the aircraft was last detected for this flight leg (UTC) (YYYY-MM-DDTHH:MM:SS).
LastSeen *string `json:"last_seen,omitempty"`
// OperatingAs ICAO code of the airline carrier as derived from flight callsign.
OperatingAs *string `json:"operating_as,omitempty"`
// OrigIcao Origin airport ICAO code.
OrigIcao *string `json:"orig_icao,omitempty"`
// PaintedAs ICAO code of the carrier mapped from FR24's internal database.
PaintedAs *string `json:"painted_as,omitempty"`
// Reg Aircraft registration as matched from Mode-S identifier.
Reg *string `json:"reg,omitempty"`
// Type Aircraft ICAO type code.
Type *string `json:"type,omitempty"`
}
FlightSummaryLight defines model for FlightSummaryLight.
type FlightTracks ¶
type FlightTracks struct {
// Fr24Id Unique identifier assigned by Flightradar24 to the flight leg.
Fr24Id *string `json:"fr24_id,omitempty"`
Tracks *[]struct {
// Alt Barometric pressure altitude above mean sea level (AMSL) reported at a standard atmospheric pressure (1013.25 hPa / 29.92 in. Hg.) expressed in feet.
Alt *int `json:"alt,omitempty"`
// Callsign The last known callsign used by Air Traffic Control to denote a specific flight, as sent by the aircraft transponder. This callsign is consistent across all reported positions.
Callsign *string `json:"callsign,omitempty"`
// Gspeed Speed relative to the ground expressed in knots.
Gspeed *int `json:"gspeed,omitempty"`
// Lat Latest latitude expressed in decimal degrees.
Lat *float32 `json:"lat,omitempty"`
// Lon Latest longitude expressed in decimal degrees.
Lon *float32 `json:"lon,omitempty"`
// Source Data source of the provided flight position.
Source *string `json:"source,omitempty"`
// Squawk 4 digit unique identifying code for ATC expressed in octal format.
Squawk *string `json:"squawk,omitempty"`
// Timestamp Timestamp of the flight position expressed in UTC (ISO 8601 date format).
Timestamp *time.Time `json:"timestamp,omitempty"`
// Track True track (over ground) expressed in integer degrees as 0-360. Please note that 0 can in some cases mean unknown.
Track *int `json:"track,omitempty"`
// Vspeed The rate at which the aircraft is ascending or descending in feet per minute.
Vspeed *int `json:"vspeed,omitempty"`
} `json:"tracks,omitempty"`
}
FlightTracks defines model for FlightTracks.
type GetAirlinesLightParams ¶
type GetAirlinesLightParams struct {
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetAirlinesLightParams defines parameters for GetAirlinesLight.
type GetAirlinesLightResponse ¶
type GetAirlinesLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AirlineLight
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
JSON404 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
}
func ParseGetAirlinesLightResponse ¶
func ParseGetAirlinesLightResponse(rsp *http.Response) (*GetAirlinesLightResponse, error)
ParseGetAirlinesLightResponse parses an HTTP response from a GetAirlinesLightWithResponse call
func (GetAirlinesLightResponse) ContentType ¶
func (r GetAirlinesLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirlinesLightResponse) Status ¶
func (r GetAirlinesLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirlinesLightResponse) StatusCode ¶
func (r GetAirlinesLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportsFullParams ¶
type GetAirportsFullParams struct {
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetAirportsFullParams defines parameters for GetAirportsFull.
type GetAirportsFullResponse ¶
type GetAirportsFullResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AirportFull
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
JSON404 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
}
func ParseGetAirportsFullResponse ¶
func ParseGetAirportsFullResponse(rsp *http.Response) (*GetAirportsFullResponse, error)
ParseGetAirportsFullResponse parses an HTTP response from a GetAirportsFullWithResponse call
func (GetAirportsFullResponse) ContentType ¶
func (r GetAirportsFullResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportsFullResponse) Status ¶
func (r GetAirportsFullResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportsFullResponse) StatusCode ¶
func (r GetAirportsFullResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportsLightParams ¶
type GetAirportsLightParams struct {
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetAirportsLightParams defines parameters for GetAirportsLight.
type GetAirportsLightResponse ¶
type GetAirportsLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AirportLight
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
JSON404 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
}
func ParseGetAirportsLightResponse ¶
func ParseGetAirportsLightResponse(rsp *http.Response) (*GetAirportsLightResponse, error)
ParseGetAirportsLightResponse parses an HTTP response from a GetAirportsLightWithResponse call
func (GetAirportsLightResponse) ContentType ¶
func (r GetAirportsLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportsLightResponse) Status ¶
func (r GetAirportsLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportsLightResponse) StatusCode ¶
func (r GetAirportsLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiFlightSummaryCountParams ¶
type GetApiFlightSummaryCountParams struct {
// FlightIds Comma-separated fr24_ids (maximum 15 IDs). Cannot be combined with flight_datetime.
FlightIds *FlightIdsFlightSummary `form:"flight_ids,omitempty" json:"flight_ids,omitempty"`
// FlightDatetimeFrom Flight date lower range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids. The maximum permitted date range is 14 days.
FlightDatetimeFrom *FlightDateTimeFrom `form:"flight_datetime_from,omitempty" json:"flight_datetime_from,omitempty"`
// FlightDatetimeTo Flight date upper range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids.
FlightDatetimeTo *FlightDateTimeTo `form:"flight_datetime_to,omitempty" json:"flight_datetime_to,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetApiFlightSummaryCountParams defines parameters for GetApiFlightSummaryCount.
type GetApiFlightSummaryCountResponse ¶
type GetApiFlightSummaryCountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Count
JSON400 *UsageLogSummaryValidationError
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetApiFlightSummaryCountResponse ¶
func ParseGetApiFlightSummaryCountResponse(rsp *http.Response) (*GetApiFlightSummaryCountResponse, error)
ParseGetApiFlightSummaryCountResponse parses an HTTP response from a GetApiFlightSummaryCountWithResponse call
func (GetApiFlightSummaryCountResponse) ContentType ¶
func (r GetApiFlightSummaryCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiFlightSummaryCountResponse) Status ¶
func (r GetApiFlightSummaryCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiFlightSummaryCountResponse) StatusCode ¶
func (r GetApiFlightSummaryCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiHistoricFlightPositionsCountParams ¶
type GetApiHistoricFlightPositionsCountParams struct {
// Timestamp Unix timestamp representing the exact point in time for which you want to fetch flight positions. The timestamp must be later than May 11, 2016, subject to your subscription plan's limitations. Only one timestamp value is accepted; time ranges are not supported
Timestamp Timestamp `form:"timestamp" json:"timestamp"`
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetApiHistoricFlightPositionsCountParams defines parameters for GetApiHistoricFlightPositionsCount.
type GetApiHistoricFlightPositionsCountResponse ¶
type GetApiHistoricFlightPositionsCountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Count
JSON400 *UsageLogSummaryValidationError
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetApiHistoricFlightPositionsCountResponse ¶
func ParseGetApiHistoricFlightPositionsCountResponse(rsp *http.Response) (*GetApiHistoricFlightPositionsCountResponse, error)
ParseGetApiHistoricFlightPositionsCountResponse parses an HTTP response from a GetApiHistoricFlightPositionsCountWithResponse call
func (GetApiHistoricFlightPositionsCountResponse) ContentType ¶
func (r GetApiHistoricFlightPositionsCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiHistoricFlightPositionsCountResponse) Status ¶
func (r GetApiHistoricFlightPositionsCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiHistoricFlightPositionsCountResponse) StatusCode ¶
func (r GetApiHistoricFlightPositionsCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiLiveFlightPositionsCountParams ¶
type GetApiLiveFlightPositionsCountParams struct {
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Airspaces Flight information region in lower or upper airspace.
Airspaces *Airspaces `form:"airspaces,omitempty" json:"airspaces,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetApiLiveFlightPositionsCountParams defines parameters for GetApiLiveFlightPositionsCount.
type GetApiLiveFlightPositionsCountResponse ¶
type GetApiLiveFlightPositionsCountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Count
JSON400 *UsageLogSummaryValidationError
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetApiLiveFlightPositionsCountResponse ¶
func ParseGetApiLiveFlightPositionsCountResponse(rsp *http.Response) (*GetApiLiveFlightPositionsCountResponse, error)
ParseGetApiLiveFlightPositionsCountResponse parses an HTTP response from a GetApiLiveFlightPositionsCountWithResponse call
func (GetApiLiveFlightPositionsCountResponse) ContentType ¶
func (r GetApiLiveFlightPositionsCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiLiveFlightPositionsCountResponse) Status ¶
func (r GetApiLiveFlightPositionsCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiLiveFlightPositionsCountResponse) StatusCode ¶
func (r GetApiLiveFlightPositionsCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetApiUsageParams ¶
type GetApiUsageParams struct {
Period *GetApiUsageParamsPeriod `form:"period,omitempty" json:"period,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetApiUsageParams defines parameters for GetApiUsage.
type GetApiUsageParamsPeriod ¶
type GetApiUsageParamsPeriod string
GetApiUsageParamsPeriod defines parameters for GetApiUsage.
const ( N1y GetApiUsageParamsPeriod = "1y" N24h GetApiUsageParamsPeriod = "24h" N30d GetApiUsageParamsPeriod = "30d" N7d GetApiUsageParamsPeriod = "7d" )
Defines values for GetApiUsageParamsPeriod.
func (GetApiUsageParamsPeriod) Valid ¶
func (e GetApiUsageParamsPeriod) Valid() bool
Valid indicates whether the value is a known member of the GetApiUsageParamsPeriod enum.
type GetApiUsageResponse ¶
type GetApiUsageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]UsageLogSummary `json:"data,omitempty"`
}
JSON400 *UsageLogSummaryValidationError
JSON401 *Unauthorized
}
func ParseGetApiUsageResponse ¶
func ParseGetApiUsageResponse(rsp *http.Response) (*GetApiUsageResponse, error)
ParseGetApiUsageResponse parses an HTTP response from a GetApiUsageWithResponse call
func (GetApiUsageResponse) ContentType ¶
func (r GetApiUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetApiUsageResponse) Status ¶
func (r GetApiUsageResponse) Status() string
Status returns HTTPResponse.Status
func (GetApiUsageResponse) StatusCode ¶
func (r GetApiUsageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightSummaryFullParams ¶
type GetFlightSummaryFullParams struct {
// FlightIds Comma-separated fr24_ids (maximum 15 IDs). Cannot be combined with flight_datetime.
FlightIds *FlightIdsFlightSummary `form:"flight_ids,omitempty" json:"flight_ids,omitempty"`
// FlightDatetimeFrom Flight date lower range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids. The maximum permitted date range is 14 days.
FlightDatetimeFrom *FlightDateTimeFrom `form:"flight_datetime_from,omitempty" json:"flight_datetime_from,omitempty"`
// FlightDatetimeTo Flight date upper range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids.
FlightDatetimeTo *FlightDateTimeTo `form:"flight_datetime_to,omitempty" json:"flight_datetime_to,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// Sort Sorting order of the results by `first_seen`. Default: asc (ascending). Available options: asc, desc.
Sort *GetFlightSummaryFullParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Limit Limit of results. Max value 20000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetFlightSummaryFullParams defines parameters for GetFlightSummaryFull.
type GetFlightSummaryFullParamsSort ¶
type GetFlightSummaryFullParamsSort string
GetFlightSummaryFullParamsSort defines parameters for GetFlightSummaryFull.
const ( GetFlightSummaryFullParamsSortAsc GetFlightSummaryFullParamsSort = "asc" GetFlightSummaryFullParamsSortDesc GetFlightSummaryFullParamsSort = "desc" )
Defines values for GetFlightSummaryFullParamsSort.
func (GetFlightSummaryFullParamsSort) Valid ¶
func (e GetFlightSummaryFullParamsSort) Valid() bool
Valid indicates whether the value is a known member of the GetFlightSummaryFullParamsSort enum.
type GetFlightSummaryFullResponse ¶
type GetFlightSummaryFullResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightSummaryFull `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetFlightSummaryFullResponse ¶
func ParseGetFlightSummaryFullResponse(rsp *http.Response) (*GetFlightSummaryFullResponse, error)
ParseGetFlightSummaryFullResponse parses an HTTP response from a GetFlightSummaryFullWithResponse call
func (GetFlightSummaryFullResponse) ContentType ¶
func (r GetFlightSummaryFullResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightSummaryFullResponse) Status ¶
func (r GetFlightSummaryFullResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightSummaryFullResponse) StatusCode ¶
func (r GetFlightSummaryFullResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightSummaryLightParams ¶
type GetFlightSummaryLightParams struct {
// FlightIds Comma-separated fr24_ids (maximum 15 IDs). Cannot be combined with flight_datetime.
FlightIds *FlightIdsFlightSummary `form:"flight_ids,omitempty" json:"flight_ids,omitempty"`
// FlightDatetimeFrom Flight date lower range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids. The maximum permitted date range is 14 days.
FlightDatetimeFrom *FlightDateTimeFrom `form:"flight_datetime_from,omitempty" json:"flight_datetime_from,omitempty"`
// FlightDatetimeTo Flight date upper range (YYYY-MM-DDTHH:MM:SS), uses first_seen. Cannot be combined with flight_ids.
FlightDatetimeTo *FlightDateTimeTo `form:"flight_datetime_to,omitempty" json:"flight_datetime_to,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// Sort Sorting order of the results by `first_seen`. Default: asc (ascending). Available options: asc, desc.
Sort *GetFlightSummaryLightParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Limit Limit of results. Max value 20000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetFlightSummaryLightParams defines parameters for GetFlightSummaryLight.
type GetFlightSummaryLightParamsSort ¶
type GetFlightSummaryLightParamsSort string
GetFlightSummaryLightParamsSort defines parameters for GetFlightSummaryLight.
const ( Asc GetFlightSummaryLightParamsSort = "asc" Desc GetFlightSummaryLightParamsSort = "desc" )
Defines values for GetFlightSummaryLightParamsSort.
func (GetFlightSummaryLightParamsSort) Valid ¶
func (e GetFlightSummaryLightParamsSort) Valid() bool
Valid indicates whether the value is a known member of the GetFlightSummaryLightParamsSort enum.
type GetFlightSummaryLightResponse ¶
type GetFlightSummaryLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightSummaryLight `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetFlightSummaryLightResponse ¶
func ParseGetFlightSummaryLightResponse(rsp *http.Response) (*GetFlightSummaryLightResponse, error)
ParseGetFlightSummaryLightResponse parses an HTTP response from a GetFlightSummaryLightWithResponse call
func (GetFlightSummaryLightResponse) ContentType ¶
func (r GetFlightSummaryLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightSummaryLightResponse) Status ¶
func (r GetFlightSummaryLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightSummaryLightResponse) StatusCode ¶
func (r GetFlightSummaryLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsTracksParams ¶
type GetFlightsTracksParams struct {
// FlightId Flightradar24 id of active flight in hexadecimal
FlightId *string `form:"flight_id,omitempty" json:"flight_id,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetFlightsTracksParams defines parameters for GetFlightsTracks.
type GetFlightsTracksResponse ¶
type GetFlightsTracksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FlightTracks
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
JSON404 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
}
func ParseGetFlightsTracksResponse ¶
func ParseGetFlightsTracksResponse(rsp *http.Response) (*GetFlightsTracksResponse, error)
ParseGetFlightsTracksResponse parses an HTTP response from a GetFlightsTracksWithResponse call
func (GetFlightsTracksResponse) ContentType ¶
func (r GetFlightsTracksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsTracksResponse) Status ¶
func (r GetFlightsTracksResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsTracksResponse) StatusCode ¶
func (r GetFlightsTracksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoricFlightPositionsFullParams ¶
type GetHistoricFlightPositionsFullParams struct {
// Timestamp Unix timestamp representing the exact point in time for which you want to fetch flight positions. The timestamp must be later than May 11, 2016, subject to your subscription plan's limitations. Only one timestamp value is accepted; time ranges are not supported
Timestamp Timestamp `form:"timestamp" json:"timestamp"`
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// Limit Limit of results. Max value 30000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetHistoricFlightPositionsFullParams defines parameters for GetHistoricFlightPositionsFull.
type GetHistoricFlightPositionsFullResponse ¶
type GetHistoricFlightPositionsFullResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightPositionsFull `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetHistoricFlightPositionsFullResponse ¶
func ParseGetHistoricFlightPositionsFullResponse(rsp *http.Response) (*GetHistoricFlightPositionsFullResponse, error)
ParseGetHistoricFlightPositionsFullResponse parses an HTTP response from a GetHistoricFlightPositionsFullWithResponse call
func (GetHistoricFlightPositionsFullResponse) ContentType ¶
func (r GetHistoricFlightPositionsFullResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoricFlightPositionsFullResponse) Status ¶
func (r GetHistoricFlightPositionsFullResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoricFlightPositionsFullResponse) StatusCode ¶
func (r GetHistoricFlightPositionsFullResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoricFlightPositionsLightParams ¶
type GetHistoricFlightPositionsLightParams struct {
// Timestamp Unix timestamp representing the exact point in time for which you want to fetch flight positions. The timestamp must be later than May 11, 2016, subject to your subscription plan's limitations. Only one timestamp value is accepted; time ranges are not supported
Timestamp Timestamp `form:"timestamp" json:"timestamp"`
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// Limit Limit of results. Max value 30000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetHistoricFlightPositionsLightParams defines parameters for GetHistoricFlightPositionsLight.
type GetHistoricFlightPositionsLightResponse ¶
type GetHistoricFlightPositionsLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightPositionsLight `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetHistoricFlightPositionsLightResponse ¶
func ParseGetHistoricFlightPositionsLightResponse(rsp *http.Response) (*GetHistoricFlightPositionsLightResponse, error)
ParseGetHistoricFlightPositionsLightResponse parses an HTTP response from a GetHistoricFlightPositionsLightWithResponse call
func (GetHistoricFlightPositionsLightResponse) ContentType ¶
func (r GetHistoricFlightPositionsLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoricFlightPositionsLightResponse) Status ¶
func (r GetHistoricFlightPositionsLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoricFlightPositionsLightResponse) StatusCode ¶
func (r GetHistoricFlightPositionsLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoricalFlightEventsFullParams ¶
type GetHistoricalFlightEventsFullParams struct {
// FlightIds Comma-separated fr24_ids (maximum 15 IDs). Cannot be combined with event_datetime.
FlightIds *FlightIdsFlightEvents `form:"flight_ids,omitempty" json:"flight_ids,omitempty"`
// EventTypes Event types to filter by (comma-separated values). Available values all, gate_departure, takeoff, cruising, airspace_transition, descent, landed, gate_arrival.
EventTypes *EventTypes `form:"event_types,omitempty" json:"event_types,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetHistoricalFlightEventsFullParams defines parameters for GetHistoricalFlightEventsFull.
type GetHistoricalFlightEventsFullResponse ¶
type GetHistoricalFlightEventsFullResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]HistoricFlightEventsFull `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetHistoricalFlightEventsFullResponse ¶
func ParseGetHistoricalFlightEventsFullResponse(rsp *http.Response) (*GetHistoricalFlightEventsFullResponse, error)
ParseGetHistoricalFlightEventsFullResponse parses an HTTP response from a GetHistoricalFlightEventsFullWithResponse call
func (GetHistoricalFlightEventsFullResponse) ContentType ¶
func (r GetHistoricalFlightEventsFullResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoricalFlightEventsFullResponse) Status ¶
func (r GetHistoricalFlightEventsFullResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoricalFlightEventsFullResponse) StatusCode ¶
func (r GetHistoricalFlightEventsFullResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoricalFlightEventsLightParams ¶
type GetHistoricalFlightEventsLightParams struct {
// FlightIds Comma-separated fr24_ids (maximum 15 IDs). Cannot be combined with event_datetime.
FlightIds *FlightIdsFlightEvents `form:"flight_ids,omitempty" json:"flight_ids,omitempty"`
// EventTypes Event types to filter by (comma-separated values). Available values all, gate_departure, takeoff, cruising, airspace_transition, descent, landed, gate_arrival.
EventTypes *EventTypes `form:"event_types,omitempty" json:"event_types,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetHistoricalFlightEventsLightParams defines parameters for GetHistoricalFlightEventsLight.
type GetHistoricalFlightEventsLightResponse ¶
type GetHistoricalFlightEventsLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]HistoricFlightEventsLight `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetHistoricalFlightEventsLightResponse ¶
func ParseGetHistoricalFlightEventsLightResponse(rsp *http.Response) (*GetHistoricalFlightEventsLightResponse, error)
ParseGetHistoricalFlightEventsLightResponse parses an HTTP response from a GetHistoricalFlightEventsLightWithResponse call
func (GetHistoricalFlightEventsLightResponse) ContentType ¶
func (r GetHistoricalFlightEventsLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoricalFlightEventsLightResponse) Status ¶
func (r GetHistoricalFlightEventsLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoricalFlightEventsLightResponse) StatusCode ¶
func (r GetHistoricalFlightEventsLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLiveFlightPositionsFullParams ¶
type GetLiveFlightPositionsFullParams struct {
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Airspaces Flight information region in lower or upper airspace.
Airspaces *Airspaces `form:"airspaces,omitempty" json:"airspaces,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// Limit Limit of results. Max value 30000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetLiveFlightPositionsFullParams defines parameters for GetLiveFlightPositionsFull.
type GetLiveFlightPositionsFullResponse ¶
type GetLiveFlightPositionsFullResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightPositionsFull `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetLiveFlightPositionsFullResponse ¶
func ParseGetLiveFlightPositionsFullResponse(rsp *http.Response) (*GetLiveFlightPositionsFullResponse, error)
ParseGetLiveFlightPositionsFullResponse parses an HTTP response from a GetLiveFlightPositionsFullWithResponse call
func (GetLiveFlightPositionsFullResponse) ContentType ¶
func (r GetLiveFlightPositionsFullResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLiveFlightPositionsFullResponse) Status ¶
func (r GetLiveFlightPositionsFullResponse) Status() string
Status returns HTTPResponse.Status
func (GetLiveFlightPositionsFullResponse) StatusCode ¶
func (r GetLiveFlightPositionsFullResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLiveFlightPositionsLightParams ¶
type GetLiveFlightPositionsLightParams struct {
// Bounds Coordinates defining an area. Order: north, south, west, east (comma-separated float values). Up to 3 decimal points will be processed.
Bounds *Bounds `form:"bounds,omitempty" json:"bounds,omitempty"`
// Flights Flight numbers (comma-separated values, max 15).
Flights *Flights `form:"flights,omitempty" json:"flights,omitempty"`
// Callsigns Flight callsigns (comma-separated values, max 15).
Callsigns *Callsigns `form:"callsigns,omitempty" json:"callsigns,omitempty"`
// Registrations Aircraft registration numbers (comma-separated values, max 15).
Registrations *Registrations `form:"registrations,omitempty" json:"registrations,omitempty"`
// PaintedAs Aircraft painted in an airline\'s livery, identified by ICAO code, but not necessarily operated by that airline, such as a regional airline operating a flight for a larger airline (comma-separated values, max 15).
PaintedAs *PaintedAs `form:"painted_as,omitempty" json:"painted_as,omitempty"`
// OperatingAs Aircraft operating under an airline\'s call sign, identified by ICAO code, but not necessarily an aircraft belonging to that airline, such as an aircraft on lease from another airline (comma-separated values, max 15).
OperatingAs *OperatingAs `form:"operating_as,omitempty" json:"operating_as,omitempty"`
// Airports Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values)
// To determine direction use format: <direction>:<code> (colon-separated, max 15)<br><br>
// Available directions:
// - both - both directions (default direction when not specified)
// - inbound - flights to airport
// - outbound - flight from airport
Airports *Airports `form:"airports,omitempty" json:"airports,omitempty"`
// Routes Flights between different airports or countries. Airports specified by IATA or ICAO codes or countries specified by ISO 3166-1 alpha-2 codes (comma-separated values, max 15).
Routes *Routes `form:"routes,omitempty" json:"routes,omitempty"`
// Aircraft Aircraft ICAO type codes (comma-separated values, max 15).
Aircraft *Aircraft `form:"aircraft,omitempty" json:"aircraft,omitempty"`
// AltitudeRanges Flight altitude ranges (comma-separated values) represent the aircraft's barometric pressure altitude above mean sea level (AMSL), measured under standard atmospheric conditions (1013.25 hPa / 29.92 in. Hg.). Altitudes are expressed in feet, starting from 0, where 0 reflects ground level AMSL.
AltitudeRanges *AltitudeRanges `form:"altitude_ranges,omitempty" json:"altitude_ranges,omitempty"`
// Squawks Squawk codes in hex format (comma-separated values).
Squawks *Squawks `form:"squawks,omitempty" json:"squawks,omitempty"`
// Categories Categories of Flights (comma-separated values).
// Available values:
// - <b>P</b> - PASSENGER - Commercial aircraft that carry passengers as their primary purpose
// - <b>C</b> - CARGO - Aircraft that carry only cargo
// - <b>M</b> - MILITARY_AND_GOVERNMENT - Aircraft operated by military or a governmental agency
// - <b>J</b> - BUSINESS_JETS - Larger private aircraft, such as Gulfstream, Bombardier, and Pilatus
// - <b>T</b> - GENERAL_AVIATION - Non-commercial transport flights, including private, ambulance, aerial survey, flight training and instrument calibration aircraft
// - <b>H</b> - HELICOPTERS - Rotary wing aircraft
// - <b>B</b> - LIGHTER_THAN_AIR - Lighter-than-air aircraft include gas-filled airships of all kinds
// - <b>G</b> - GLIDERS - Unpowered aircraft
// - <b>D</b> - DRONES - Uncrewed aircraft, ranging from small consumer drones to larger UAVs
// - <b>V</b> - GROUND_VEHICLES - Transponder equipped vehicles, such as push-back tugs, fire trucks, and operations vehicles
// - <b>O</b> - OTHER - Aircraft appearing on Flightradar24 not classified elsewhere (International Space Station, UFOs, Santa, etc)
// - <b>N</b> - NON_CATEGORIZED - Aircraft not yet placed into a category in the Flightradar24 database
Categories *Categories `form:"categories,omitempty" json:"categories,omitempty"`
// DataSources Source of information about flights (comma-separated values).
// Available values:
// - ADSB
// - MLAT
// - UAT
// - ESTIMATED
// - <i>Empty parameter will include all sources.</i>
DataSources *DataSources `form:"data_sources,omitempty" json:"data_sources,omitempty"`
// Airspaces Flight information region in lower or upper airspace.
Airspaces *Airspaces `form:"airspaces,omitempty" json:"airspaces,omitempty"`
// Gspeed Flight ground speed (in knots). Accepts single value or range.
Gspeed *GSpeed `form:"gspeed,omitempty" json:"gspeed,omitempty"`
// Limit Limit of results. Max value 30000.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// AcceptVersion Specifies the FR24 API version. The currently available version is `v1`.
AcceptVersion AcceptVersion `json:"Accept-Version"`
}
GetLiveFlightPositionsLightParams defines parameters for GetLiveFlightPositionsLight.
type GetLiveFlightPositionsLightResponse ¶
type GetLiveFlightPositionsLightResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Data *[]FlightPositionsLight `json:"data,omitempty"`
}
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
JSON401 *Unauthorized
JSON402 *PaymentRequired
}
func ParseGetLiveFlightPositionsLightResponse ¶
func ParseGetLiveFlightPositionsLightResponse(rsp *http.Response) (*GetLiveFlightPositionsLightResponse, error)
ParseGetLiveFlightPositionsLightResponse parses an HTTP response from a GetLiveFlightPositionsLightWithResponse call
func (GetLiveFlightPositionsLightResponse) ContentType ¶
func (r GetLiveFlightPositionsLightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLiveFlightPositionsLightResponse) Status ¶
func (r GetLiveFlightPositionsLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetLiveFlightPositionsLightResponse) StatusCode ¶
func (r GetLiveFlightPositionsLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HistoricFlightEventsFull ¶
type HistoricFlightEventsFull struct {
// Callsign Flight number or callsign.
Callsign *string `json:"callsign,omitempty"`
// DestIata IATA code for the destination airport.
DestIata *string `json:"dest_iata,omitempty"`
// DestIcao ICAO code for the destination airport.
DestIcao *string `json:"dest_icao,omitempty"`
// Events List of events associated with the flight.
Events *[]struct {
// Alt Altitude at the time of the event (can be null).
Alt *int `json:"alt,omitempty"`
// Details Additional data related to the event (can be null).
Details *struct {
// EnteredAirspace Name of the entered airspace (can be null).
EnteredAirspace *string `json:"entered_airspace,omitempty"`
// EnteredAirspaceId Identifier of the entered airspace (can be null).
EnteredAirspaceId *string `json:"entered_airspace_id,omitempty"`
// ExitedAirspace Name of the exited airspace (can be null).
ExitedAirspace *string `json:"exited_airspace,omitempty"`
// ExitedAirspaceId Identifier of the exited airspace (can be null).
ExitedAirspaceId *string `json:"exited_airspace_id,omitempty"`
// GateIdent Gate identifier (can be null).
GateIdent *string `json:"gate_ident,omitempty"`
// GateLat Latitude of the gate (can be null).
GateLat *float32 `json:"gate_lat,omitempty"`
// GateLon Longitude of the gate (can be null).
GateLon *float32 `json:"gate_lon,omitempty"`
// LandedIcao ICAO code of the airport where the aircraft landed (can be null).
LandedIcao *string `json:"landed_icao,omitempty"`
// LandedRunway Runway used for landing (can be null).
LandedRunway *string `json:"landed_runway,omitempty"`
// TakeoffRunway Runway used during takeoff (can be null).
TakeoffRunway *string `json:"takeoff_runway,omitempty"`
} `json:"details,omitempty"`
// Gspeed Ground speed at the time of the event (can be null).
Gspeed *int `json:"gspeed,omitempty"`
// Lat Latitude position at the time of the event (can be null).
Lat *float32 `json:"lat,omitempty"`
// Lon Longitude position at the time of the event (can be null).
Lon *float32 `json:"lon,omitempty"`
// Timestamp Time of the event in UTC.
Timestamp *time.Time `json:"timestamp,omitempty"`
// Type Type of the event (e.g., takeoff, gate_departure, landed).
Type *string `json:"type,omitempty"`
} `json:"events,omitempty"`
// Fr24Id Unique identifier for the flight.
Fr24Id *string `json:"fr24_id,omitempty"`
// Hex Aircraft hex code.
Hex *string `json:"hex,omitempty"`
// OperatingAs The airline or operator actually operating the flight.
OperatingAs *string `json:"operating_as,omitempty"`
// OrigIata IATA code for the origin airport.
OrigIata *string `json:"orig_iata,omitempty"`
// OrigIcao ICAO code for the origin airport.
OrigIcao *string `json:"orig_icao,omitempty"`
// PaintedAs The airline or operator the flight is painted as.
PaintedAs *string `json:"painted_as,omitempty"`
}
HistoricFlightEventsFull defines model for HistoricFlightEventsFull.
type HistoricFlightEventsLight ¶
type HistoricFlightEventsLight struct {
// Callsign Flight number or callsign.
Callsign *string `json:"callsign,omitempty"`
// Events List of simplified flight events.
Events *[]struct {
// Alt Altitude at the time of the event (in feet, can be null).
Alt *int `json:"alt,omitempty"`
// Details Additional context depending on the event type (can be null).
Details *struct {
// EnteredAirspace Name of the airspace entered.
EnteredAirspace *string `json:"entered_airspace,omitempty"`
// EnteredAirspaceId ID of the airspace entered.
EnteredAirspaceId *string `json:"entered_airspace_id,omitempty"`
// ExitedAirspace Name of the airspace exited.
ExitedAirspace *string `json:"exited_airspace,omitempty"`
// ExitedAirspaceId ID of the airspace exited.
ExitedAirspaceId *string `json:"exited_airspace_id,omitempty"`
// GateIdent Gate identifier (can be null).
GateIdent *string `json:"gate_ident,omitempty"`
// GateLat Latitude of the gate (can be null).
GateLat *float32 `json:"gate_lat,omitempty"`
// GateLon Longitude of the gate (can be null).
GateLon *float32 `json:"gate_lon,omitempty"`
// LandedIcao ICAO code of the arrival airport.
LandedIcao *string `json:"landed_icao,omitempty"`
// LandedRunway Runway used during landing.
LandedRunway *string `json:"landed_runway,omitempty"`
// TakeoffRunway Runway used during takeoff.
TakeoffRunway *string `json:"takeoff_runway,omitempty"`
} `json:"details,omitempty"`
// Gspeed Ground speed at the time of the event (in knots).
Gspeed *int `json:"gspeed,omitempty"`
// Lat Latitude at the time of the event (can be null).
Lat *float32 `json:"lat,omitempty"`
// Lon Longitude at the time of the event (can be null).
Lon *float32 `json:"lon,omitempty"`
// Timestamp Time of the event in UTC.
Timestamp *time.Time `json:"timestamp,omitempty"`
// Type Type of the event (e.g., gate_departure, takeoff, cruising).
Type *string `json:"type,omitempty"`
} `json:"events,omitempty"`
// Fr24Id Unique identifier for the flight.
Fr24Id *string `json:"fr24_id,omitempty"`
// Hex Aircraft hex code.
Hex *string `json:"hex,omitempty"`
}
HistoricFlightEventsLight defines model for HistoricFlightEventsLight.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PaymentRequired ¶
type PaymentRequired struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
PaymentRequired defines model for PaymentRequired.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Runway ¶
type Runway struct {
// Designator Runway designator.
Designator *string `json:"designator,omitempty"`
// Elevation Elevation of the runway in feet.
Elevation *int `json:"elevation,omitempty"`
// Heading Runway heading in degrees.
Heading *float64 `json:"heading,omitempty"`
// Length Length of the runway in feet.
Length *int `json:"length,omitempty"`
Surface *struct {
// Description Human-readable surface description.
Description string `json:"description"`
// Type Surface type code (e.g., ASPHH for asphalt).
Type string `json:"type"`
} `json:"surface,omitempty"`
// ThrCoordinates Threshold coordinates (latitude, longitude) in decimal degrees.
ThrCoordinates *[]float64 `json:"thr_coordinates,omitempty"`
// Width Width of the runway in feet.
Width *int `json:"width,omitempty"`
}
Runway defines model for Runway.
type Timezone ¶
type Timezone struct {
// Name Name of the timezone.
Name *string `json:"name,omitempty"`
// Offset Offset from UTC in seconds.
Offset *int `json:"offset,omitempty"`
}
Timezone defines model for Timezone.
type UsageLogSummary ¶
type UsageLogSummary struct {
// Credits Number of credits used.
Credits *int `json:"credits,omitempty"`
// Endpoint Endpoint of the API cal.
Endpoint *string `json:"endpoint,omitempty"`
// RequestCount Number of requests.
RequestCount *int `json:"request_count,omitempty"`
}
UsageLogSummary defines model for UsageLogSummary.
type UsageLogSummaryValidationError ¶
type UsageLogSummaryValidationError struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
UsageLogSummaryValidationError defines model for UsageLogSummaryValidationError.