Documentation
¶
Overview ¶
Package fr24 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 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
- func (r GetAirlinesLightResponse) ContentType() string
- func (r GetAirlinesLightResponse) GetBody() []byte
- func (r GetAirlinesLightResponse) GetJSON200() *AirlineLight
- func (r GetAirlinesLightResponse) GetJSON400() ...
- func (r GetAirlinesLightResponse) GetJSON401() *Unauthorized
- func (r GetAirlinesLightResponse) GetJSON402() *PaymentRequired
- func (r GetAirlinesLightResponse) GetJSON404() ...
- func (r GetAirlinesLightResponse) Status() string
- func (r GetAirlinesLightResponse) StatusCode() int
- type GetAirportsFullParams
- type GetAirportsFullResponse
- func (r GetAirportsFullResponse) ContentType() string
- func (r GetAirportsFullResponse) GetBody() []byte
- func (r GetAirportsFullResponse) GetJSON200() *AirportFull
- func (r GetAirportsFullResponse) GetJSON400() ...
- func (r GetAirportsFullResponse) GetJSON401() *Unauthorized
- func (r GetAirportsFullResponse) GetJSON402() *PaymentRequired
- func (r GetAirportsFullResponse) GetJSON404() ...
- func (r GetAirportsFullResponse) Status() string
- func (r GetAirportsFullResponse) StatusCode() int
- type GetAirportsLightParams
- type GetAirportsLightResponse
- func (r GetAirportsLightResponse) ContentType() string
- func (r GetAirportsLightResponse) GetBody() []byte
- func (r GetAirportsLightResponse) GetJSON200() *AirportLight
- func (r GetAirportsLightResponse) GetJSON400() ...
- func (r GetAirportsLightResponse) GetJSON401() *Unauthorized
- func (r GetAirportsLightResponse) GetJSON402() *PaymentRequired
- func (r GetAirportsLightResponse) GetJSON404() ...
- func (r GetAirportsLightResponse) Status() string
- func (r GetAirportsLightResponse) StatusCode() int
- type GetApiFlightSummaryCountParams
- type GetApiFlightSummaryCountResponse
- func (r GetApiFlightSummaryCountResponse) ContentType() string
- func (r GetApiFlightSummaryCountResponse) GetBody() []byte
- func (r GetApiFlightSummaryCountResponse) GetJSON200() *Count
- func (r GetApiFlightSummaryCountResponse) GetJSON400() *UsageLogSummaryValidationError
- func (r GetApiFlightSummaryCountResponse) GetJSON401() *Unauthorized
- func (r GetApiFlightSummaryCountResponse) GetJSON402() *PaymentRequired
- func (r GetApiFlightSummaryCountResponse) Status() string
- func (r GetApiFlightSummaryCountResponse) StatusCode() int
- type GetApiHistoricFlightPositionsCountParams
- type GetApiHistoricFlightPositionsCountResponse
- func (r GetApiHistoricFlightPositionsCountResponse) ContentType() string
- func (r GetApiHistoricFlightPositionsCountResponse) GetBody() []byte
- func (r GetApiHistoricFlightPositionsCountResponse) GetJSON200() *Count
- func (r GetApiHistoricFlightPositionsCountResponse) GetJSON400() *UsageLogSummaryValidationError
- func (r GetApiHistoricFlightPositionsCountResponse) GetJSON401() *Unauthorized
- func (r GetApiHistoricFlightPositionsCountResponse) GetJSON402() *PaymentRequired
- func (r GetApiHistoricFlightPositionsCountResponse) Status() string
- func (r GetApiHistoricFlightPositionsCountResponse) StatusCode() int
- type GetApiLiveFlightPositionsCountParams
- type GetApiLiveFlightPositionsCountResponse
- func (r GetApiLiveFlightPositionsCountResponse) ContentType() string
- func (r GetApiLiveFlightPositionsCountResponse) GetBody() []byte
- func (r GetApiLiveFlightPositionsCountResponse) GetJSON200() *Count
- func (r GetApiLiveFlightPositionsCountResponse) GetJSON400() *UsageLogSummaryValidationError
- func (r GetApiLiveFlightPositionsCountResponse) GetJSON401() *Unauthorized
- func (r GetApiLiveFlightPositionsCountResponse) GetJSON402() *PaymentRequired
- func (r GetApiLiveFlightPositionsCountResponse) Status() string
- func (r GetApiLiveFlightPositionsCountResponse) StatusCode() int
- type GetApiUsageParams
- type GetApiUsageParamsPeriod
- type GetApiUsageResponse
- func (r GetApiUsageResponse) ContentType() string
- func (r GetApiUsageResponse) GetBody() []byte
- func (r GetApiUsageResponse) GetJSON200() ...
- func (r GetApiUsageResponse) GetJSON400() *UsageLogSummaryValidationError
- func (r GetApiUsageResponse) GetJSON401() *Unauthorized
- func (r GetApiUsageResponse) Status() string
- func (r GetApiUsageResponse) StatusCode() int
- type GetFlightSummaryFullParams
- type GetFlightSummaryFullParamsSort
- type GetFlightSummaryFullResponse
- func (r GetFlightSummaryFullResponse) ContentType() string
- func (r GetFlightSummaryFullResponse) GetBody() []byte
- func (r GetFlightSummaryFullResponse) GetJSON200() ...
- func (r GetFlightSummaryFullResponse) GetJSON400() ...
- func (r GetFlightSummaryFullResponse) GetJSON401() *Unauthorized
- func (r GetFlightSummaryFullResponse) GetJSON402() *PaymentRequired
- func (r GetFlightSummaryFullResponse) Status() string
- func (r GetFlightSummaryFullResponse) StatusCode() int
- type GetFlightSummaryLightParams
- type GetFlightSummaryLightParamsSort
- type GetFlightSummaryLightResponse
- func (r GetFlightSummaryLightResponse) ContentType() string
- func (r GetFlightSummaryLightResponse) GetBody() []byte
- func (r GetFlightSummaryLightResponse) GetJSON200() ...
- func (r GetFlightSummaryLightResponse) GetJSON400() ...
- func (r GetFlightSummaryLightResponse) GetJSON401() *Unauthorized
- func (r GetFlightSummaryLightResponse) GetJSON402() *PaymentRequired
- func (r GetFlightSummaryLightResponse) Status() string
- func (r GetFlightSummaryLightResponse) StatusCode() int
- type GetFlightsTracksParams
- type GetFlightsTracksResponse
- func (r GetFlightsTracksResponse) ContentType() string
- func (r GetFlightsTracksResponse) GetBody() []byte
- func (r GetFlightsTracksResponse) GetJSON200() *FlightTracks
- func (r GetFlightsTracksResponse) GetJSON400() ...
- func (r GetFlightsTracksResponse) GetJSON401() *Unauthorized
- func (r GetFlightsTracksResponse) GetJSON402() *PaymentRequired
- func (r GetFlightsTracksResponse) GetJSON404() ...
- func (r GetFlightsTracksResponse) Status() string
- func (r GetFlightsTracksResponse) StatusCode() int
- type GetHistoricFlightPositionsFullParams
- type GetHistoricFlightPositionsFullResponse
- func (r GetHistoricFlightPositionsFullResponse) ContentType() string
- func (r GetHistoricFlightPositionsFullResponse) GetBody() []byte
- func (r GetHistoricFlightPositionsFullResponse) GetJSON200() ...
- func (r GetHistoricFlightPositionsFullResponse) GetJSON400() ...
- func (r GetHistoricFlightPositionsFullResponse) GetJSON401() *Unauthorized
- func (r GetHistoricFlightPositionsFullResponse) GetJSON402() *PaymentRequired
- func (r GetHistoricFlightPositionsFullResponse) Status() string
- func (r GetHistoricFlightPositionsFullResponse) StatusCode() int
- type GetHistoricFlightPositionsLightParams
- type GetHistoricFlightPositionsLightResponse
- func (r GetHistoricFlightPositionsLightResponse) ContentType() string
- func (r GetHistoricFlightPositionsLightResponse) GetBody() []byte
- func (r GetHistoricFlightPositionsLightResponse) GetJSON200() ...
- func (r GetHistoricFlightPositionsLightResponse) GetJSON400() ...
- func (r GetHistoricFlightPositionsLightResponse) GetJSON401() *Unauthorized
- func (r GetHistoricFlightPositionsLightResponse) GetJSON402() *PaymentRequired
- func (r GetHistoricFlightPositionsLightResponse) Status() string
- func (r GetHistoricFlightPositionsLightResponse) StatusCode() int
- type GetHistoricalFlightEventsFullParams
- type GetHistoricalFlightEventsFullResponse
- func (r GetHistoricalFlightEventsFullResponse) ContentType() string
- func (r GetHistoricalFlightEventsFullResponse) GetBody() []byte
- func (r GetHistoricalFlightEventsFullResponse) GetJSON200() ...
- func (r GetHistoricalFlightEventsFullResponse) GetJSON400() ...
- func (r GetHistoricalFlightEventsFullResponse) GetJSON401() *Unauthorized
- func (r GetHistoricalFlightEventsFullResponse) GetJSON402() *PaymentRequired
- func (r GetHistoricalFlightEventsFullResponse) Status() string
- func (r GetHistoricalFlightEventsFullResponse) StatusCode() int
- type GetHistoricalFlightEventsLightParams
- type GetHistoricalFlightEventsLightResponse
- func (r GetHistoricalFlightEventsLightResponse) ContentType() string
- func (r GetHistoricalFlightEventsLightResponse) GetBody() []byte
- func (r GetHistoricalFlightEventsLightResponse) GetJSON200() ...
- func (r GetHistoricalFlightEventsLightResponse) GetJSON400() ...
- func (r GetHistoricalFlightEventsLightResponse) GetJSON401() *Unauthorized
- func (r GetHistoricalFlightEventsLightResponse) GetJSON402() *PaymentRequired
- func (r GetHistoricalFlightEventsLightResponse) Status() string
- func (r GetHistoricalFlightEventsLightResponse) StatusCode() int
- type GetLiveFlightPositionsFullParams
- type GetLiveFlightPositionsFullResponse
- func (r GetLiveFlightPositionsFullResponse) ContentType() string
- func (r GetLiveFlightPositionsFullResponse) GetBody() []byte
- func (r GetLiveFlightPositionsFullResponse) GetJSON200() ...
- func (r GetLiveFlightPositionsFullResponse) GetJSON400() ...
- func (r GetLiveFlightPositionsFullResponse) GetJSON401() *Unauthorized
- func (r GetLiveFlightPositionsFullResponse) GetJSON402() *PaymentRequired
- func (r GetLiveFlightPositionsFullResponse) Status() string
- func (r GetLiveFlightPositionsFullResponse) StatusCode() int
- type GetLiveFlightPositionsLightParams
- type GetLiveFlightPositionsLightResponse
- func (r GetLiveFlightPositionsLightResponse) ContentType() string
- func (r GetLiveFlightPositionsLightResponse) GetBody() []byte
- func (r GetLiveFlightPositionsLightResponse) GetJSON200() ...
- func (r GetLiveFlightPositionsLightResponse) GetJSON400() ...
- func (r GetLiveFlightPositionsLightResponse) GetJSON401() *Unauthorized
- func (r GetLiveFlightPositionsLightResponse) GetJSON402() *PaymentRequired
- func (r GetLiveFlightPositionsLightResponse) Status() string
- func (r GetLiveFlightPositionsLightResponse) StatusCode() int
- 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 ServerURL = "https://fr24api.flightradar24.com"
ServerURL is the base URL of the fr24 API. Pass it to NewClient or NewClientWithResponses.
Variables ¶
This section is empty.
Functions ¶
func NewGetAirlinesLightRequest ¶
func NewGetAirlinesLightRequest(server string, icao string, params *GetAirlinesLightParams) (*http.Request, error)
NewGetAirlinesLightRequest constructs an http.Request for the GetAirlinesLight method
func NewGetAirportsFullRequest ¶
func NewGetAirportsFullRequest(server string, code string, params *GetAirportsFullParams) (*http.Request, error)
NewGetAirportsFullRequest constructs an http.Request for the GetAirportsFull method
func NewGetAirportsLightRequest ¶
func NewGetAirportsLightRequest(server string, code string, params *GetAirportsLightParams) (*http.Request, error)
NewGetAirportsLightRequest constructs an http.Request for the GetAirportsLight method
func NewGetApiFlightSummaryCountRequest ¶
func NewGetApiFlightSummaryCountRequest(server string, params *GetApiFlightSummaryCountParams) (*http.Request, error)
NewGetApiFlightSummaryCountRequest constructs an http.Request for the GetApiFlightSummaryCount method
func NewGetApiHistoricFlightPositionsCountRequest ¶
func NewGetApiHistoricFlightPositionsCountRequest(server string, params *GetApiHistoricFlightPositionsCountParams) (*http.Request, error)
NewGetApiHistoricFlightPositionsCountRequest constructs an http.Request for the GetApiHistoricFlightPositionsCount method
func NewGetApiLiveFlightPositionsCountRequest ¶
func NewGetApiLiveFlightPositionsCountRequest(server string, params *GetApiLiveFlightPositionsCountParams) (*http.Request, error)
NewGetApiLiveFlightPositionsCountRequest constructs an http.Request for the GetApiLiveFlightPositionsCount method
func NewGetApiUsageRequest ¶
func NewGetApiUsageRequest(server string, params *GetApiUsageParams) (*http.Request, error)
NewGetApiUsageRequest constructs an http.Request for the GetApiUsage method
func NewGetFlightSummaryFullRequest ¶
func NewGetFlightSummaryFullRequest(server string, params *GetFlightSummaryFullParams) (*http.Request, error)
NewGetFlightSummaryFullRequest constructs an http.Request for the GetFlightSummaryFull method
func NewGetFlightSummaryLightRequest ¶
func NewGetFlightSummaryLightRequest(server string, params *GetFlightSummaryLightParams) (*http.Request, error)
NewGetFlightSummaryLightRequest constructs an http.Request for the GetFlightSummaryLight method
func NewGetFlightsTracksRequest ¶
func NewGetFlightsTracksRequest(server string, params *GetFlightsTracksParams) (*http.Request, error)
NewGetFlightsTracksRequest constructs an http.Request for the GetFlightsTracks method
func NewGetHistoricFlightPositionsFullRequest ¶
func NewGetHistoricFlightPositionsFullRequest(server string, params *GetHistoricFlightPositionsFullParams) (*http.Request, error)
NewGetHistoricFlightPositionsFullRequest constructs an http.Request for the GetHistoricFlightPositionsFull method
func NewGetHistoricFlightPositionsLightRequest ¶
func NewGetHistoricFlightPositionsLightRequest(server string, params *GetHistoricFlightPositionsLightParams) (*http.Request, error)
NewGetHistoricFlightPositionsLightRequest constructs an http.Request for the GetHistoricFlightPositionsLight method
func NewGetHistoricalFlightEventsFullRequest ¶
func NewGetHistoricalFlightEventsFullRequest(server string, params *GetHistoricalFlightEventsFullParams) (*http.Request, error)
NewGetHistoricalFlightEventsFullRequest constructs an http.Request for the GetHistoricalFlightEventsFull method
func NewGetHistoricalFlightEventsLightRequest ¶
func NewGetHistoricalFlightEventsLightRequest(server string, params *GetHistoricalFlightEventsLightParams) (*http.Request, error)
NewGetHistoricalFlightEventsLightRequest constructs an http.Request for the GetHistoricalFlightEventsLight method
func NewGetLiveFlightPositionsFullRequest ¶
func NewGetLiveFlightPositionsFullRequest(server string, params *GetLiveFlightPositionsFullParams) (*http.Request, error)
NewGetLiveFlightPositionsFullRequest constructs an http.Request for the GetLiveFlightPositionsFull method
func NewGetLiveFlightPositionsLightRequest ¶
func NewGetLiveFlightPositionsLightRequest(server string, params *GetLiveFlightPositionsLightParams) (*http.Request, error)
NewGetLiveFlightPositionsLightRequest constructs an http.Request for the GetLiveFlightPositionsLight method
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.
//
// Examples: Stockholm
City *string `json:"city,omitempty"`
// Country Examples: {"code":"SE","name":"SWEDEN"}
Country *Country `json:"country,omitempty"`
// Elevation Airport elevation in feet.
//
// Examples: 150
Elevation *float32 `json:"elevation,omitempty"`
// Iata Airport IATA code.
//
// Examples: ARN
Iata *string `json:"iata,omitempty"`
// Icao Airport ICAO code.
//
// Examples: ESSA
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.
//
// Examples: Stockholm Arlanda 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 Examples: {"name":"Europe/Stockholm","offset":7200}
Timezone *Timezone `json:"timezone,omitempty"`
}
AirportFull Contains detailed airport information.
type AirportLight ¶
type AirportLight struct {
// Iata Airport IATA code.
//
// Examples: ARN
Iata *string `json:"iata,omitempty"`
// Icao Airport ICAO code.
//
// Examples: ESSA
Icao *string `json:"icao,omitempty"`
// Name Name of the airport.
//
// Examples: Stockholm Arlanda 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)
GetAirlinesLight Get basic airline information by ICAO code
Returns airline name, ICAO, and IATA codes.
Corresponds with GET /api/static/airlines/{icao}/light (the `GetAirlinesLight` operationId).
func (*Client) GetAirportsFull ¶
func (c *Client) GetAirportsFull(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportsFull Get detailed airport information by code
Returns details of the requested airport including its name, codes, location, elevation, and timezone information.
Corresponds with GET /api/static/airports/{code}/full (the `GetAirportsFull` operationId).
func (*Client) GetAirportsLight ¶
func (c *Client) GetAirportsLight(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportsLight Get basic airline information by code
Returns the airport name, ICAO and IATA codes.
Corresponds with GET /api/static/airports/{code}/light (the `GetAirportsLight` operationId).
func (*Client) GetApiFlightSummaryCount ¶
func (c *Client) GetApiFlightSummaryCount(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiFlightSummaryCount Get count of flight summaries
Returns the number of flights for a given flight summary query.
Corresponds with GET /api/flight-summary/count (the `GetApiFlightSummaryCount` operationId).
func (*Client) GetApiHistoricFlightPositionsCount ¶
func (c *Client) GetApiHistoricFlightPositionsCount(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiHistoricFlightPositionsCount Get count of historical flight positions
Returns number of historical aircraft flight positions.
Corresponds with GET /api/historic/flight-positions/count (the `GetApiHistoricFlightPositionsCount` operationId).
func (*Client) GetApiLiveFlightPositionsCount ¶
func (c *Client) GetApiLiveFlightPositionsCount(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiLiveFlightPositionsCount Get count of live flight positions
Returns number of live aircraft flight positions.
Corresponds with GET /api/live/flight-positions/count (the `GetApiLiveFlightPositionsCount` operationId).
func (*Client) GetApiUsage ¶
func (c *Client) GetApiUsage(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetApiUsage Get info on API account usage
Corresponds with GET /api/usage (the `GetApiUsage` operationId).
func (*Client) GetFlightSummaryFull ¶
func (c *Client) GetFlightSummaryFull(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightSummaryFull Get summary of flights with detailed information
Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
Corresponds with GET /api/flight-summary/full (the `GetFlightSummaryFull` operationId).
func (*Client) GetFlightSummaryLight ¶
func (c *Client) GetFlightSummaryLight(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightSummaryLight Get summary of flights with basic information
Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
Corresponds with GET /api/flight-summary/light (the `GetFlightSummaryLight` operationId).
func (*Client) GetFlightsTracks ¶
func (c *Client) GetFlightsTracks(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsTracks Get positional tracks for a specific flight
Returns a flight with positional tracks for both live and historical flights based on the FR24 flight ID. Availability of historical data depends on the user's subscription plan, with a maximum limit of up to 3 years.
Corresponds with GET /api/flight-tracks (the `GetFlightsTracks` operationId).
func (*Client) GetHistoricFlightPositionsFull ¶
func (c *Client) GetHistoricFlightPositionsFull(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoricFlightPositionsFull Get historical flight positions
Returns comprehensive historical information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
Corresponds with GET /api/historic/flight-positions/full (the `GetHistoricFlightPositionsFull` operationId).
func (*Client) GetHistoricFlightPositionsLight ¶
func (c *Client) GetHistoricFlightPositionsLight(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoricFlightPositionsLight Get historical flight positions with basic details
Returns historical information on aircraft flight movements including latitude, longitude, speed, and altitude, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
Corresponds with GET /api/historic/flight-positions/light (the `GetHistoricFlightPositionsLight` operationId).
func (*Client) GetHistoricalFlightEventsFull ¶
func (c *Client) GetHistoricalFlightEventsFull(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoricalFlightEventsFull Returns selected flight events, with all available information.
Returns selected historical flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), with detailed information, sorted by event_timestamp and grouped by flight_id.
Corresponds with GET /api/historic/flight-events/full (the `GetHistoricalFlightEventsFull` operationId).
func (*Client) GetHistoricalFlightEventsLight ¶
func (c *Client) GetHistoricalFlightEventsLight(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoricalFlightEventsLight Returns selected flight events.
Returns selected flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), sorted by event_timestamp and grouped by flight_id.
Corresponds with GET /api/historic/flight-events/light (the `GetHistoricalFlightEventsLight` operationId).
func (*Client) GetLiveFlightPositionsFull ¶
func (c *Client) GetLiveFlightPositionsFull(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLiveFlightPositionsFull Get real-time flight positions with detailed information
Returns comprehensive real-time information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type. At least one query parameter is required to retrieve data.
Corresponds with GET /api/live/flight-positions/full (the `GetLiveFlightPositionsFull` operationId).
func (*Client) GetLiveFlightPositionsLight ¶
func (c *Client) GetLiveFlightPositionsLight(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLiveFlightPositionsLight Get real-time flight positions
Returns real-time information on aircraft flight movements including latitude, longitude, speed, and altitude. At least one query parameter is required to retrieve data.
Corresponds with GET /api/live/flight-positions/light (the `GetLiveFlightPositionsLight` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetApiFlightSummaryCount Get count of flight summaries
//
// Returns the number of flights for a given flight summary query.
//
// Corresponds with GET /api/flight-summary/count (the `GetApiFlightSummaryCount` operationId).
GetApiFlightSummaryCount(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightSummaryFull Get summary of flights with detailed information
//
// Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
//
// Corresponds with GET /api/flight-summary/full (the `GetFlightSummaryFull` operationId).
GetFlightSummaryFull(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightSummaryLight Get summary of flights with basic information
//
// Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
//
// Corresponds with GET /api/flight-summary/light (the `GetFlightSummaryLight` operationId).
GetFlightSummaryLight(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsTracks Get positional tracks for a specific flight
//
// Returns a flight with positional tracks for both live and historical flights based on the FR24 flight ID. Availability of historical data depends on the user's subscription plan, with a maximum limit of up to 3 years.
//
// Corresponds with GET /api/flight-tracks (the `GetFlightsTracks` operationId).
GetFlightsTracks(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricalFlightEventsFull Returns selected flight events, with all available information.
//
// Returns selected historical flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), with detailed information, sorted by event_timestamp and grouped by flight_id.
//
// Corresponds with GET /api/historic/flight-events/full (the `GetHistoricalFlightEventsFull` operationId).
GetHistoricalFlightEventsFull(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricalFlightEventsLight Returns selected flight events.
//
// Returns selected flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), sorted by event_timestamp and grouped by flight_id.
//
// Corresponds with GET /api/historic/flight-events/light (the `GetHistoricalFlightEventsLight` operationId).
GetHistoricalFlightEventsLight(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiHistoricFlightPositionsCount Get count of historical flight positions
//
// Returns number of historical aircraft flight positions.
//
// Corresponds with GET /api/historic/flight-positions/count (the `GetApiHistoricFlightPositionsCount` operationId).
GetApiHistoricFlightPositionsCount(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricFlightPositionsFull Get historical flight positions
//
// Returns comprehensive historical information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
//
// Corresponds with GET /api/historic/flight-positions/full (the `GetHistoricFlightPositionsFull` operationId).
GetHistoricFlightPositionsFull(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoricFlightPositionsLight Get historical flight positions with basic details
//
// Returns historical information on aircraft flight movements including latitude, longitude, speed, and altitude, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
//
// Corresponds with GET /api/historic/flight-positions/light (the `GetHistoricFlightPositionsLight` operationId).
GetHistoricFlightPositionsLight(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiLiveFlightPositionsCount Get count of live flight positions
//
// Returns number of live aircraft flight positions.
//
// Corresponds with GET /api/live/flight-positions/count (the `GetApiLiveFlightPositionsCount` operationId).
GetApiLiveFlightPositionsCount(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLiveFlightPositionsFull Get real-time flight positions with detailed information
//
// Returns comprehensive real-time information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type. At least one query parameter is required to retrieve data.
//
// Corresponds with GET /api/live/flight-positions/full (the `GetLiveFlightPositionsFull` operationId).
GetLiveFlightPositionsFull(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLiveFlightPositionsLight Get real-time flight positions
//
// Returns real-time information on aircraft flight movements including latitude, longitude, speed, and altitude. At least one query parameter is required to retrieve data.
//
// Corresponds with GET /api/live/flight-positions/light (the `GetLiveFlightPositionsLight` operationId).
GetLiveFlightPositionsLight(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirlinesLight Get basic airline information by ICAO code
//
// Returns airline name, ICAO, and IATA codes.
//
// Corresponds with GET /api/static/airlines/{icao}/light (the `GetAirlinesLight` operationId).
GetAirlinesLight(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsFull Get detailed airport information by code
//
// Returns details of the requested airport including its name, codes, location, elevation, and timezone information.
//
// Corresponds with GET /api/static/airports/{code}/full (the `GetAirportsFull` operationId).
GetAirportsFull(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsLight Get basic airline information by code
//
// Returns the airport name, ICAO and IATA codes.
//
// Corresponds with GET /api/static/airports/{code}/light (the `GetAirportsLight` operationId).
GetAirportsLight(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetApiUsage Get info on API account usage
//
// Corresponds with GET /api/usage (the `GetApiUsage` operationId).
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 authenticates each request by setting the Authorization header to "Bearer <apiKey>".
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 Get basic airline information by ICAO code
Returns airline name, ICAO, and IATA codes.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/static/airlines/{icao}/light (the `GetAirlinesLight` operationId).
func (*ClientWithResponses) GetAirportsFullWithResponse ¶
func (c *ClientWithResponses) GetAirportsFullWithResponse(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*GetAirportsFullResponse, error)
GetAirportsFullWithResponse Get detailed airport information by code
Returns details of the requested airport including its name, codes, location, elevation, and timezone information.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/static/airports/{code}/full (the `GetAirportsFull` operationId).
func (*ClientWithResponses) GetAirportsLightWithResponse ¶
func (c *ClientWithResponses) GetAirportsLightWithResponse(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*GetAirportsLightResponse, error)
GetAirportsLightWithResponse Get basic airline information by code
Returns the airport name, ICAO and IATA codes.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/static/airports/{code}/light (the `GetAirportsLight` operationId).
func (*ClientWithResponses) GetApiFlightSummaryCountWithResponse ¶
func (c *ClientWithResponses) GetApiFlightSummaryCountWithResponse(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*GetApiFlightSummaryCountResponse, error)
GetApiFlightSummaryCountWithResponse Get count of flight summaries
Returns the number of flights for a given flight summary query.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/flight-summary/count (the `GetApiFlightSummaryCount` operationId).
func (*ClientWithResponses) GetApiHistoricFlightPositionsCountWithResponse ¶
func (c *ClientWithResponses) GetApiHistoricFlightPositionsCountWithResponse(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiHistoricFlightPositionsCountResponse, error)
GetApiHistoricFlightPositionsCountWithResponse Get count of historical flight positions
Returns number of historical aircraft flight positions.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/historic/flight-positions/count (the `GetApiHistoricFlightPositionsCount` operationId).
func (*ClientWithResponses) GetApiLiveFlightPositionsCountWithResponse ¶
func (c *ClientWithResponses) GetApiLiveFlightPositionsCountWithResponse(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiLiveFlightPositionsCountResponse, error)
GetApiLiveFlightPositionsCountWithResponse Get count of live flight positions
Returns number of live aircraft flight positions.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/live/flight-positions/count (the `GetApiLiveFlightPositionsCount` operationId).
func (*ClientWithResponses) GetApiUsageWithResponse ¶
func (c *ClientWithResponses) GetApiUsageWithResponse(ctx context.Context, params *GetApiUsageParams, reqEditors ...RequestEditorFn) (*GetApiUsageResponse, error)
GetApiUsageWithResponse Get info on API account usage
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/usage (the `GetApiUsage` operationId).
func (*ClientWithResponses) GetFlightSummaryFullWithResponse ¶
func (c *ClientWithResponses) GetFlightSummaryFullWithResponse(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryFullResponse, error)
GetFlightSummaryFullWithResponse Get summary of flights with detailed information
Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/flight-summary/full (the `GetFlightSummaryFull` operationId).
func (*ClientWithResponses) GetFlightSummaryLightWithResponse ¶
func (c *ClientWithResponses) GetFlightSummaryLightWithResponse(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryLightResponse, error)
GetFlightSummaryLightWithResponse Get summary of flights with basic information
Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/flight-summary/light (the `GetFlightSummaryLight` operationId).
func (*ClientWithResponses) GetFlightsTracksWithResponse ¶
func (c *ClientWithResponses) GetFlightsTracksWithResponse(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*GetFlightsTracksResponse, error)
GetFlightsTracksWithResponse Get positional tracks for a specific flight
Returns a flight with positional tracks for both live and historical flights based on the FR24 flight ID. Availability of historical data depends on the user's subscription plan, with a maximum limit of up to 3 years.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/flight-tracks (the `GetFlightsTracks` operationId).
func (*ClientWithResponses) GetHistoricFlightPositionsFullWithResponse ¶
func (c *ClientWithResponses) GetHistoricFlightPositionsFullWithResponse(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsFullResponse, error)
GetHistoricFlightPositionsFullWithResponse Get historical flight positions
Returns comprehensive historical information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/historic/flight-positions/full (the `GetHistoricFlightPositionsFull` operationId).
func (*ClientWithResponses) GetHistoricFlightPositionsLightWithResponse ¶
func (c *ClientWithResponses) GetHistoricFlightPositionsLightWithResponse(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsLightResponse, error)
GetHistoricFlightPositionsLightWithResponse Get historical flight positions with basic details
Returns historical information on aircraft flight movements including latitude, longitude, speed, and altitude, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/historic/flight-positions/light (the `GetHistoricFlightPositionsLight` operationId).
func (*ClientWithResponses) GetHistoricalFlightEventsFullWithResponse ¶
func (c *ClientWithResponses) GetHistoricalFlightEventsFullWithResponse(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsFullResponse, error)
GetHistoricalFlightEventsFullWithResponse Returns selected flight events, with all available information.
Returns selected historical flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), with detailed information, sorted by event_timestamp and grouped by flight_id.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/historic/flight-events/full (the `GetHistoricalFlightEventsFull` operationId).
func (*ClientWithResponses) GetHistoricalFlightEventsLightWithResponse ¶
func (c *ClientWithResponses) GetHistoricalFlightEventsLightWithResponse(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsLightResponse, error)
GetHistoricalFlightEventsLightWithResponse Returns selected flight events.
Returns selected flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), sorted by event_timestamp and grouped by flight_id.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/historic/flight-events/light (the `GetHistoricalFlightEventsLight` operationId).
func (*ClientWithResponses) GetLiveFlightPositionsFullWithResponse ¶
func (c *ClientWithResponses) GetLiveFlightPositionsFullWithResponse(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsFullResponse, error)
GetLiveFlightPositionsFullWithResponse Get real-time flight positions with detailed information
Returns comprehensive real-time information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type. At least one query parameter is required to retrieve data.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/live/flight-positions/full (the `GetLiveFlightPositionsFull` operationId).
func (*ClientWithResponses) GetLiveFlightPositionsLightWithResponse ¶
func (c *ClientWithResponses) GetLiveFlightPositionsLightWithResponse(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsLightResponse, error)
GetLiveFlightPositionsLightWithResponse Get real-time flight positions
Returns real-time information on aircraft flight movements including latitude, longitude, speed, and altitude. At least one query parameter is required to retrieve data.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api/live/flight-positions/light (the `GetLiveFlightPositionsLight` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetApiFlightSummaryCountWithResponse Get count of flight summaries
//
// Returns the number of flights for a given flight summary query.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/flight-summary/count (the `GetApiFlightSummaryCount` operationId).
GetApiFlightSummaryCountWithResponse(ctx context.Context, params *GetApiFlightSummaryCountParams, reqEditors ...RequestEditorFn) (*GetApiFlightSummaryCountResponse, error)
// GetFlightSummaryFullWithResponse Get summary of flights with detailed information
//
// Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/flight-summary/full (the `GetFlightSummaryFull` operationId).
GetFlightSummaryFullWithResponse(ctx context.Context, params *GetFlightSummaryFullParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryFullResponse, error)
// GetFlightSummaryLightWithResponse Get summary of flights with basic information
//
// Returns key timings and locations of aircraft takeoffs and landings alongside all primary flight, aircraft and operator information. Specify either flight_ids or supply both flight_datetime_from and flight_datetime_to along with at least one of the following query parameters - flights, registrations, callsigns, painted_as, operating_as, airports, type, or routes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/flight-summary/light (the `GetFlightSummaryLight` operationId).
GetFlightSummaryLightWithResponse(ctx context.Context, params *GetFlightSummaryLightParams, reqEditors ...RequestEditorFn) (*GetFlightSummaryLightResponse, error)
// GetFlightsTracksWithResponse Get positional tracks for a specific flight
//
// Returns a flight with positional tracks for both live and historical flights based on the FR24 flight ID. Availability of historical data depends on the user's subscription plan, with a maximum limit of up to 3 years.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/flight-tracks (the `GetFlightsTracks` operationId).
GetFlightsTracksWithResponse(ctx context.Context, params *GetFlightsTracksParams, reqEditors ...RequestEditorFn) (*GetFlightsTracksResponse, error)
// GetHistoricalFlightEventsFullWithResponse Returns selected flight events, with all available information.
//
// Returns selected historical flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), with detailed information, sorted by event_timestamp and grouped by flight_id.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/historic/flight-events/full (the `GetHistoricalFlightEventsFull` operationId).
GetHistoricalFlightEventsFullWithResponse(ctx context.Context, params *GetHistoricalFlightEventsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsFullResponse, error)
// GetHistoricalFlightEventsLightWithResponse Returns selected flight events.
//
// Returns selected flight events (gate_departure, takeoff, cruising, airspace_transition, resuming_flightplan, descent, landed, gate_arrival), sorted by event_timestamp and grouped by flight_id.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/historic/flight-events/light (the `GetHistoricalFlightEventsLight` operationId).
GetHistoricalFlightEventsLightWithResponse(ctx context.Context, params *GetHistoricalFlightEventsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricalFlightEventsLightResponse, error)
// GetApiHistoricFlightPositionsCountWithResponse Get count of historical flight positions
//
// Returns number of historical aircraft flight positions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/historic/flight-positions/count (the `GetApiHistoricFlightPositionsCount` operationId).
GetApiHistoricFlightPositionsCountWithResponse(ctx context.Context, params *GetApiHistoricFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiHistoricFlightPositionsCountResponse, error)
// GetHistoricFlightPositionsFullWithResponse Get historical flight positions
//
// Returns comprehensive historical information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/historic/flight-positions/full (the `GetHistoricFlightPositionsFull` operationId).
GetHistoricFlightPositionsFullWithResponse(ctx context.Context, params *GetHistoricFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsFullResponse, error)
// GetHistoricFlightPositionsLightWithResponse Get historical flight positions with basic details
//
// Returns historical information on aircraft flight movements including latitude, longitude, speed, and altitude, dating back to May 11, 2016. At least one query parameter and a history snapshot timestamp are required to retrieve data.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/historic/flight-positions/light (the `GetHistoricFlightPositionsLight` operationId).
GetHistoricFlightPositionsLightWithResponse(ctx context.Context, params *GetHistoricFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetHistoricFlightPositionsLightResponse, error)
// GetApiLiveFlightPositionsCountWithResponse Get count of live flight positions
//
// Returns number of live aircraft flight positions.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/live/flight-positions/count (the `GetApiLiveFlightPositionsCount` operationId).
GetApiLiveFlightPositionsCountWithResponse(ctx context.Context, params *GetApiLiveFlightPositionsCountParams, reqEditors ...RequestEditorFn) (*GetApiLiveFlightPositionsCountResponse, error)
// GetLiveFlightPositionsFullWithResponse Get real-time flight positions with detailed information
//
// Returns comprehensive real-time information on aircraft flight movements, including flight and aircraft details such as origin, destination, and aircraft type. At least one query parameter is required to retrieve data.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/live/flight-positions/full (the `GetLiveFlightPositionsFull` operationId).
GetLiveFlightPositionsFullWithResponse(ctx context.Context, params *GetLiveFlightPositionsFullParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsFullResponse, error)
// GetLiveFlightPositionsLightWithResponse Get real-time flight positions
//
// Returns real-time information on aircraft flight movements including latitude, longitude, speed, and altitude. At least one query parameter is required to retrieve data.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/live/flight-positions/light (the `GetLiveFlightPositionsLight` operationId).
GetLiveFlightPositionsLightWithResponse(ctx context.Context, params *GetLiveFlightPositionsLightParams, reqEditors ...RequestEditorFn) (*GetLiveFlightPositionsLightResponse, error)
// GetAirlinesLightWithResponse Get basic airline information by ICAO code
//
// Returns airline name, ICAO, and IATA codes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/static/airlines/{icao}/light (the `GetAirlinesLight` operationId).
GetAirlinesLightWithResponse(ctx context.Context, icao string, params *GetAirlinesLightParams, reqEditors ...RequestEditorFn) (*GetAirlinesLightResponse, error)
// GetAirportsFullWithResponse Get detailed airport information by code
//
// Returns details of the requested airport including its name, codes, location, elevation, and timezone information.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/static/airports/{code}/full (the `GetAirportsFull` operationId).
GetAirportsFullWithResponse(ctx context.Context, code string, params *GetAirportsFullParams, reqEditors ...RequestEditorFn) (*GetAirportsFullResponse, error)
// GetAirportsLightWithResponse Get basic airline information by code
//
// Returns the airport name, ICAO and IATA codes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/static/airports/{code}/light (the `GetAirportsLight` operationId).
GetAirportsLightWithResponse(ctx context.Context, code string, params *GetAirportsLightParams, reqEditors ...RequestEditorFn) (*GetAirportsLightResponse, error)
// GetApiUsageWithResponse Get info on API account usage
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api/usage (the `GetApiUsage` operationId).
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 Examples: 1233
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 Examples: {"code":"SE","name":"SWEDEN"}
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.
//
// Examples: ARN
DestIata *string `json:"dest_iata,omitempty"`
// DestIcao Destination airport ICAO code.
//
// Examples: ESSA
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.
//
// Examples: ARN
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).
//
// Examples: 2023-01-27T05:15:22
DatetimeLanded *string `json:"datetime_landed,omitempty"`
// DatetimeTakeoff Datetime of takeoff in UTC (YYYY-MM-DDTHH:MM:SS).
//
// Examples: 2023-01-27T05:15:22
DatetimeTakeoff *string `json:"datetime_takeoff,omitempty"`
// DestIata Destination airport IATA code.
//
// Examples: SVQ
DestIata *string `json:"dest_iata,omitempty"`
// DestIataActual IATA code for the actual destination airport (different when diverted).
//
// Examples: SVQ
DestIataActual *string `json:"dest_iata_actual,omitempty"`
// DestIcao Destination airport ICAO code.
//
// Examples: LEZL
DestIcao *string `json:"dest_icao,omitempty"`
// DestIcaoActual ICAO code for the actual destination airport (different when diverted).
//
// Examples: LEZL
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).
//
// Examples: 2023-01-27T05:15:22
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.
//
// Examples: 2023-01-27T05:15:22
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).
//
// Examples: 2023-01-27T05:15:22
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.
//
// Examples: ESSA
OrigIata *string `json:"orig_iata,omitempty"`
// OrigIcao Origin airport ICAO code.
//
// Examples: ESSA
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.
//
// Examples: 27
RunwayLanded *string `json:"runway_landed,omitempty"`
// RunwayTakeoff Identifier of the runway used for takeoff.
//
// Examples: 01L
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).
//
// Examples: 2023-01-27T05:15:22
DatetimeLanded *string `json:"datetime_landed,omitempty"`
// DatetimeTakeoff Datetime of takeoff in UTC (YYYY-MM-DDTHH:MM:SS).
//
// Examples: 2023-01-27T05:15:22
DatetimeTakeoff *string `json:"datetime_takeoff,omitempty"`
// DestIcao Destination airport ICAO code.
//
// Examples: ESSA
DestIcao *string `json:"dest_icao,omitempty"`
// FirstSeen Datetime when the aircraft was first detected for this flight leg (UTC) (YYYY-MM-DDTHH:MM:SS).
//
// Examples: 2023-01-27T05:15:22
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.
//
// Examples: 2023-01-27T05:15:22
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).
//
// Examples: 2023-01-27T05:15:22
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.
//
// Examples: ESSA
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 Examples: {"callsign":"NSZ4529","datetime_landed":null,"datetime_takeoff":null,"dest_icao":"GMAD","dest_icao_actual":"GMAD","first_seen":"2025-02-14T11:47:06Z","flight":"D84529","flight_ended":true,"fr24_id":"391fdd79","hex":"4ACA83","last_seen":"2025-02-14T13:11:49Z","operating_as":"NSZ","orig_icao":"ESSA","painted_as":"NSZ","reg":"SE-RTC","type":"B38M"}
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 the response for an HTTP 200 `application/json` response
JSON200 *AirlineLight
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *PaymentRequired
// JSON404 the response for an HTTP 404 `application/json` response
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) GetBody ¶
func (r GetAirlinesLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirlinesLightResponse) GetJSON200 ¶
func (r GetAirlinesLightResponse) GetJSON200() *AirlineLight
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAirlinesLightResponse) GetJSON400 ¶
func (r GetAirlinesLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetAirlinesLightResponse) GetJSON401 ¶
func (r GetAirlinesLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAirlinesLightResponse) GetJSON402 ¶
func (r GetAirlinesLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (GetAirlinesLightResponse) GetJSON404 ¶
func (r GetAirlinesLightResponse) GetJSON404() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *AirportFull
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *PaymentRequired
// JSON404 the response for an HTTP 404 `application/json` response
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) GetBody ¶
func (r GetAirportsFullResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportsFullResponse) GetJSON200 ¶
func (r GetAirportsFullResponse) GetJSON200() *AirportFull
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAirportsFullResponse) GetJSON400 ¶
func (r GetAirportsFullResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetAirportsFullResponse) GetJSON401 ¶
func (r GetAirportsFullResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAirportsFullResponse) GetJSON402 ¶
func (r GetAirportsFullResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (GetAirportsFullResponse) GetJSON404 ¶
func (r GetAirportsFullResponse) GetJSON404() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *AirportLight
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *PaymentRequired
// JSON404 the response for an HTTP 404 `application/json` response
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) GetBody ¶
func (r GetAirportsLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportsLightResponse) GetJSON200 ¶
func (r GetAirportsLightResponse) GetJSON200() *AirportLight
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetAirportsLightResponse) GetJSON400 ¶
func (r GetAirportsLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetAirportsLightResponse) GetJSON401 ¶
func (r GetAirportsLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetAirportsLightResponse) GetJSON402 ¶
func (r GetAirportsLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (GetAirportsLightResponse) GetJSON404 ¶
func (r GetAirportsLightResponse) GetJSON404() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *Count
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *UsageLogSummaryValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetApiFlightSummaryCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiFlightSummaryCountResponse) GetJSON200 ¶
func (r GetApiFlightSummaryCountResponse) GetJSON200() *Count
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiFlightSummaryCountResponse) GetJSON400 ¶
func (r GetApiFlightSummaryCountResponse) GetJSON400() *UsageLogSummaryValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiFlightSummaryCountResponse) GetJSON401 ¶
func (r GetApiFlightSummaryCountResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiFlightSummaryCountResponse) GetJSON402 ¶
func (r GetApiFlightSummaryCountResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *Count
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *UsageLogSummaryValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetApiHistoricFlightPositionsCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiHistoricFlightPositionsCountResponse) GetJSON200 ¶
func (r GetApiHistoricFlightPositionsCountResponse) GetJSON200() *Count
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiHistoricFlightPositionsCountResponse) GetJSON400 ¶
func (r GetApiHistoricFlightPositionsCountResponse) GetJSON400() *UsageLogSummaryValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiHistoricFlightPositionsCountResponse) GetJSON401 ¶
func (r GetApiHistoricFlightPositionsCountResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiHistoricFlightPositionsCountResponse) GetJSON402 ¶
func (r GetApiHistoricFlightPositionsCountResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *Count
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *UsageLogSummaryValidationError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetApiLiveFlightPositionsCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiLiveFlightPositionsCountResponse) GetJSON200 ¶
func (r GetApiLiveFlightPositionsCountResponse) GetJSON200() *Count
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiLiveFlightPositionsCountResponse) GetJSON400 ¶
func (r GetApiLiveFlightPositionsCountResponse) GetJSON400() *UsageLogSummaryValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiLiveFlightPositionsCountResponse) GetJSON401 ¶
func (r GetApiLiveFlightPositionsCountResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetApiLiveFlightPositionsCountResponse) GetJSON402 ¶
func (r GetApiLiveFlightPositionsCountResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]UsageLogSummary `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *UsageLogSummaryValidationError
// JSON401 the response for an HTTP 401 `application/json` response
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) GetBody ¶
func (r GetApiUsageResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetApiUsageResponse) GetJSON200 ¶
func (r GetApiUsageResponse) GetJSON200() *struct { Data *[]UsageLogSummary `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetApiUsageResponse) GetJSON400 ¶
func (r GetApiUsageResponse) GetJSON400() *UsageLogSummaryValidationError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetApiUsageResponse) GetJSON401 ¶
func (r GetApiUsageResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightSummaryFull `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetFlightSummaryFullResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightSummaryFullResponse) GetJSON200 ¶
func (r GetFlightSummaryFullResponse) GetJSON200() *struct { Data *[]FlightSummaryFull `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetFlightSummaryFullResponse) GetJSON400 ¶
func (r GetFlightSummaryFullResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetFlightSummaryFullResponse) GetJSON401 ¶
func (r GetFlightSummaryFullResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetFlightSummaryFullResponse) GetJSON402 ¶
func (r GetFlightSummaryFullResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 ( GetFlightSummaryLightParamsSortAsc GetFlightSummaryLightParamsSort = "asc" GetFlightSummaryLightParamsSortDesc 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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightSummaryLight `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetFlightSummaryLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightSummaryLightResponse) GetJSON200 ¶
func (r GetFlightSummaryLightResponse) GetJSON200() *struct { Data *[]FlightSummaryLight `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetFlightSummaryLightResponse) GetJSON400 ¶
func (r GetFlightSummaryLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetFlightSummaryLightResponse) GetJSON401 ¶
func (r GetFlightSummaryLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetFlightSummaryLightResponse) GetJSON402 ¶
func (r GetFlightSummaryLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *FlightTracks
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
JSON402 *PaymentRequired
// JSON404 the response for an HTTP 404 `application/json` response
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) GetBody ¶
func (r GetFlightsTracksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsTracksResponse) GetJSON200 ¶
func (r GetFlightsTracksResponse) GetJSON200() *FlightTracks
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetFlightsTracksResponse) GetJSON400 ¶
func (r GetFlightsTracksResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetFlightsTracksResponse) GetJSON401 ¶
func (r GetFlightsTracksResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetFlightsTracksResponse) GetJSON402 ¶
func (r GetFlightsTracksResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
func (GetFlightsTracksResponse) GetJSON404 ¶
func (r GetFlightsTracksResponse) GetJSON404() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON404 returns the response for an HTTP 404 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightPositionsFull `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetHistoricFlightPositionsFullResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoricFlightPositionsFullResponse) GetJSON200 ¶
func (r GetHistoricFlightPositionsFullResponse) GetJSON200() *struct { Data *[]FlightPositionsFull `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoricFlightPositionsFullResponse) GetJSON400 ¶
func (r GetHistoricFlightPositionsFullResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetHistoricFlightPositionsFullResponse) GetJSON401 ¶
func (r GetHistoricFlightPositionsFullResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetHistoricFlightPositionsFullResponse) GetJSON402 ¶
func (r GetHistoricFlightPositionsFullResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightPositionsLight `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetHistoricFlightPositionsLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoricFlightPositionsLightResponse) GetJSON200 ¶
func (r GetHistoricFlightPositionsLightResponse) GetJSON200() *struct { Data *[]FlightPositionsLight `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoricFlightPositionsLightResponse) GetJSON400 ¶
func (r GetHistoricFlightPositionsLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetHistoricFlightPositionsLightResponse) GetJSON401 ¶
func (r GetHistoricFlightPositionsLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetHistoricFlightPositionsLightResponse) GetJSON402 ¶
func (r GetHistoricFlightPositionsLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]HistoricFlightEventsFull `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetHistoricalFlightEventsFullResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoricalFlightEventsFullResponse) GetJSON200 ¶
func (r GetHistoricalFlightEventsFullResponse) GetJSON200() *struct { Data *[]HistoricFlightEventsFull `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoricalFlightEventsFullResponse) GetJSON400 ¶
func (r GetHistoricalFlightEventsFullResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetHistoricalFlightEventsFullResponse) GetJSON401 ¶
func (r GetHistoricalFlightEventsFullResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetHistoricalFlightEventsFullResponse) GetJSON402 ¶
func (r GetHistoricalFlightEventsFullResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]HistoricFlightEventsLight `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetHistoricalFlightEventsLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoricalFlightEventsLightResponse) GetJSON200 ¶
func (r GetHistoricalFlightEventsLightResponse) GetJSON200() *struct { Data *[]HistoricFlightEventsLight `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetHistoricalFlightEventsLightResponse) GetJSON400 ¶
func (r GetHistoricalFlightEventsLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetHistoricalFlightEventsLightResponse) GetJSON401 ¶
func (r GetHistoricalFlightEventsLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetHistoricalFlightEventsLightResponse) GetJSON402 ¶
func (r GetHistoricalFlightEventsLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightPositionsFull `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetLiveFlightPositionsFullResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLiveFlightPositionsFullResponse) GetJSON200 ¶
func (r GetLiveFlightPositionsFullResponse) GetJSON200() *struct { Data *[]FlightPositionsFull `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLiveFlightPositionsFullResponse) GetJSON400 ¶
func (r GetLiveFlightPositionsFullResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetLiveFlightPositionsFullResponse) GetJSON401 ¶
func (r GetLiveFlightPositionsFullResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetLiveFlightPositionsFullResponse) GetJSON402 ¶
func (r GetLiveFlightPositionsFullResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 the response for an HTTP 200 `application/json` response
JSON200 *struct {
Data *[]FlightPositionsLight `json:"data,omitempty"`
}
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *struct {
Details *string `json:"details,omitempty"`
Message *string `json:"message,omitempty"`
}
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *Unauthorized
// JSON402 the response for an HTTP 402 `application/json` response
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) GetBody ¶
func (r GetLiveFlightPositionsLightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLiveFlightPositionsLightResponse) GetJSON200 ¶
func (r GetLiveFlightPositionsLightResponse) GetJSON200() *struct { Data *[]FlightPositionsLight `json:"data,omitempty"` }
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLiveFlightPositionsLightResponse) GetJSON400 ¶
func (r GetLiveFlightPositionsLightResponse) GetJSON400() *struct { Details *string `json:"details,omitempty"` Message *string `json:"message,omitempty"` }
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetLiveFlightPositionsLightResponse) GetJSON401 ¶
func (r GetLiveFlightPositionsLightResponse) GetJSON401() *Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetLiveFlightPositionsLightResponse) GetJSON402 ¶
func (r GetLiveFlightPositionsLightResponse) GetJSON402() *PaymentRequired
GetJSON402 returns the response for an HTTP 402 `application/json` response
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 Examples: {"name":"Europe/Stockholm","offset":7200}
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.