client

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: MIT Imports: 11 Imported by: 0

README

aeroapi-go

A Go client library for the FlightAware AeroAPI, auto-generated from the OpenAPI specification using oapi-codegen.

  • Module path: github.com/bilte-co/aeroapi-go
  • AeroAPI version: 4.28.0

Installation

go get github.com/bilte-co/aeroapi-go@latest

Usage

package main

import (
    "context"
    "fmt"
    "log"
    "net/http"

    client "github.com/bilte-co/aeroapi-go"
)

func main() {
    c, err := client.NewClientWithResponses(
        "https://aeroapi.flightaware.com/aeroapi",
        client.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {
            req.Header.Set("x-apikey", "YOUR_API_KEY")
            return nil
        }),
    )
    if err != nil {
        log.Fatal(err)
    }

    // Get flight information
    resp, err := c.GetFlightWithResponse(ctx, "UAL123", nil)
    if err != nil {
        log.Fatal(err)
    }

    // Check status code
    if resp.StatusCode() != http.StatusOK {
        log.Fatalf("API error: %s", resp.Status())
    }

    // Access response data (field name matches content-type from OpenAPI spec)
    data := resp.ApplicationjsonCharsetUTF8200
    if data == nil {
        log.Fatal("no data returned")
    }

    for _, flight := range data.Flights {
        fmt.Printf("Flight: %s -> %s\n",
            *flight.Origin.CodeIcao,
            *flight.Destination.CodeIcao,
        )
    }
}

Note: The response field ApplicationjsonCharsetUTF8200 is auto-generated by oapi-codegen from the API's content-type header (application/json; charset=UTF-8) and status code (200). While verbose, this is the standard pattern for typed responses.

Compatibility

aeroapi-go version FlightAware AeroAPI version
v0.1.0 4.28.0

Development

Prerequisites
  • Go 1.24+
  • just (command runner)
Commands
Command Description
just gen Regenerate client from OpenAPI spec
just test Run tests
just lint Run golangci-lint
just sec Run security checks (gosec)
just vuln Run vulnerability checks (govulncheck)
just check Run tests, lint, vuln (pre-release)
just release Tag a new release (e.g., just release 0.1.0)
Regenerating the Client

The client is generated from the FlightAware AeroAPI OpenAPI specification v4.28.0.

just gen
# or
go generate ./...

License

See LICENSE for details.

Documentation

Overview

Package client provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.

Package client provides a generated client for the FlightAware AeroAPI.

This client is generated from the FlightAware AeroAPI OpenAPI specification version 4.28.0 using oapi-codegen.

For more information, see https://www.flightaware.com/aeroapi/

Index

Constants

View Source
const AeroAPIVersion = "4.28.0"

AeroAPIVersion is the version of the FlightAware AeroAPI specification that this client was generated from.

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewCreateAlertRequest added in v0.2.0

func NewCreateAlertRequest(server string, body CreateAlertJSONRequestBody) (*http.Request, error)

NewCreateAlertRequest calls the generic CreateAlert builder with application/json body

func NewCreateAlertRequestWithBody

func NewCreateAlertRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateAlertRequestWithBody generates requests for CreateAlert with any type of body

func NewDeleteAlertRequest

func NewDeleteAlertRequest(server string, id int) (*http.Request, error)

NewDeleteAlertRequest generates requests for DeleteAlert

func NewDeleteAlertsEndpointRequest

func NewDeleteAlertsEndpointRequest(server string) (*http.Request, error)

NewDeleteAlertsEndpointRequest generates requests for DeleteAlertsEndpoint

func NewGetAccountUsageRequest

func NewGetAccountUsageRequest(server string, params *GetAccountUsageParams) (*http.Request, error)

NewGetAccountUsageRequest generates requests for GetAccountUsage

func NewGetAircraftBlockedRequest

func NewGetAircraftBlockedRequest(server string, ident string) (*http.Request, error)

NewGetAircraftBlockedRequest generates requests for GetAircraftBlocked

func NewGetAircraftOwnerRequest

func NewGetAircraftOwnerRequest(server string, ident string) (*http.Request, error)

NewGetAircraftOwnerRequest generates requests for GetAircraftOwner

func NewGetAirportDelaysRequest

func NewGetAirportDelaysRequest(server string, id string) (*http.Request, error)

NewGetAirportDelaysRequest generates requests for GetAirportDelays

func NewGetAirportFlightsArrivedRequest

func NewGetAirportFlightsArrivedRequest(server string, id string, params *GetAirportFlightsArrivedParams) (*http.Request, error)

NewGetAirportFlightsArrivedRequest generates requests for GetAirportFlightsArrived

func NewGetAirportFlightsCountRequest

func NewGetAirportFlightsCountRequest(server string, id string) (*http.Request, error)

NewGetAirportFlightsCountRequest generates requests for GetAirportFlightsCount

func NewGetAirportFlightsDepartedRequest

func NewGetAirportFlightsDepartedRequest(server string, id string, params *GetAirportFlightsDepartedParams) (*http.Request, error)

NewGetAirportFlightsDepartedRequest generates requests for GetAirportFlightsDeparted

func NewGetAirportFlightsRequest

func NewGetAirportFlightsRequest(server string, id string, params *GetAirportFlightsParams) (*http.Request, error)

NewGetAirportFlightsRequest generates requests for GetAirportFlights

func NewGetAirportFlightsScheduledArrivalsRequest

func NewGetAirportFlightsScheduledArrivalsRequest(server string, id string, params *GetAirportFlightsScheduledArrivalsParams) (*http.Request, error)

NewGetAirportFlightsScheduledArrivalsRequest generates requests for GetAirportFlightsScheduledArrivals

func NewGetAirportFlightsScheduledDeparturesRequest

func NewGetAirportFlightsScheduledDeparturesRequest(server string, id string, params *GetAirportFlightsScheduledDeparturesParams) (*http.Request, error)

NewGetAirportFlightsScheduledDeparturesRequest generates requests for GetAirportFlightsScheduledDepartures

func NewGetAirportRequest

func NewGetAirportRequest(server string, id string) (*http.Request, error)

NewGetAirportRequest generates requests for GetAirport

func NewGetAirportWeatherForecastRequest

func NewGetAirportWeatherForecastRequest(server string, id string, params *GetAirportWeatherForecastParams) (*http.Request, error)

NewGetAirportWeatherForecastRequest generates requests for GetAirportWeatherForecast

func NewGetAirportWeatherObservationsRequest

func NewGetAirportWeatherObservationsRequest(server string, id string, params *GetAirportWeatherObservationsParams) (*http.Request, error)

NewGetAirportWeatherObservationsRequest generates requests for GetAirportWeatherObservations

func NewGetAirportsCanonicalRequest

func NewGetAirportsCanonicalRequest(server string, id string, params *GetAirportsCanonicalParams) (*http.Request, error)

NewGetAirportsCanonicalRequest generates requests for GetAirportsCanonical

func NewGetAirportsNearAirportRequest

func NewGetAirportsNearAirportRequest(server string, id string, params *GetAirportsNearAirportParams) (*http.Request, error)

NewGetAirportsNearAirportRequest generates requests for GetAirportsNearAirport

func NewGetAlertRequest

func NewGetAlertRequest(server string, id int) (*http.Request, error)

NewGetAlertRequest generates requests for GetAlert

func NewGetAlertsEndpointRequest

func NewGetAlertsEndpointRequest(server string) (*http.Request, error)

NewGetAlertsEndpointRequest generates requests for GetAlertsEndpoint

func NewGetAllAirportsRequest

func NewGetAllAirportsRequest(server string, params *GetAllAirportsParams) (*http.Request, error)

NewGetAllAirportsRequest generates requests for GetAllAirports

func NewGetAllAlertsRequest

func NewGetAllAlertsRequest(server string, params *GetAllAlertsParams) (*http.Request, error)

NewGetAllAlertsRequest generates requests for GetAllAlerts

func NewGetAllDisruptionCountsRequest

func NewGetAllDisruptionCountsRequest(server string, entityType string, params *GetAllDisruptionCountsParams) (*http.Request, error)

NewGetAllDisruptionCountsRequest generates requests for GetAllDisruptionCounts

func NewGetAllOperatorsRequest

func NewGetAllOperatorsRequest(server string, params *GetAllOperatorsParams) (*http.Request, error)

NewGetAllOperatorsRequest generates requests for GetAllOperators

func NewGetDelaysForAllAirportsRequest

func NewGetDelaysForAllAirportsRequest(server string, params *GetDelaysForAllAirportsParams) (*http.Request, error)

NewGetDelaysForAllAirportsRequest generates requests for GetDelaysForAllAirports

func NewGetDisruptionCountsRequest

func NewGetDisruptionCountsRequest(server string, entityType string, id string, params *GetDisruptionCountsParams) (*http.Request, error)

NewGetDisruptionCountsRequest generates requests for GetDisruptionCounts

func NewGetFlightMapRequest

func NewGetFlightMapRequest(server string, id string, params *GetFlightMapParams) (*http.Request, error)

NewGetFlightMapRequest generates requests for GetFlightMap

func NewGetFlightPositionRequest

func NewGetFlightPositionRequest(server string, id string) (*http.Request, error)

NewGetFlightPositionRequest generates requests for GetFlightPosition

func NewGetFlightPositionWithForesightRequest

func NewGetFlightPositionWithForesightRequest(server string, id string) (*http.Request, error)

NewGetFlightPositionWithForesightRequest generates requests for GetFlightPositionWithForesight

func NewGetFlightRequest

func NewGetFlightRequest(server string, ident string, params *GetFlightParams) (*http.Request, error)

NewGetFlightRequest generates requests for GetFlight

func NewGetFlightRouteRequest

func NewGetFlightRouteRequest(server string, id string) (*http.Request, error)

NewGetFlightRouteRequest generates requests for GetFlightRoute

func NewGetFlightTrackRequest

func NewGetFlightTrackRequest(server string, id string, params *GetFlightTrackParams) (*http.Request, error)

NewGetFlightTrackRequest generates requests for GetFlightTrack

func NewGetFlightTypeRequest

func NewGetFlightTypeRequest(server string, pType string) (*http.Request, error)

NewGetFlightTypeRequest generates requests for GetFlightType

func NewGetFlightWithForesightRequest

func NewGetFlightWithForesightRequest(server string, ident string, params *GetFlightWithForesightParams) (*http.Request, error)

NewGetFlightWithForesightRequest generates requests for GetFlightWithForesight

func NewGetFlightsBetweenAirportsRequest

func NewGetFlightsBetweenAirportsRequest(server string, id string, destId string, params *GetFlightsBetweenAirportsParams) (*http.Request, error)

NewGetFlightsBetweenAirportsRequest generates requests for GetFlightsBetweenAirports

func NewGetFlightsByAdvancedSearchRequest

func NewGetFlightsByAdvancedSearchRequest(server string, params *GetFlightsByAdvancedSearchParams) (*http.Request, error)

NewGetFlightsByAdvancedSearchRequest generates requests for GetFlightsByAdvancedSearch

func NewGetFlightsByAdvancedSearchWithForesightRequest

func NewGetFlightsByAdvancedSearchWithForesightRequest(server string, params *GetFlightsByAdvancedSearchWithForesightParams) (*http.Request, error)

NewGetFlightsByAdvancedSearchWithForesightRequest generates requests for GetFlightsByAdvancedSearchWithForesight

func NewGetFlightsByPositionSearchRequest

func NewGetFlightsByPositionSearchRequest(server string, params *GetFlightsByPositionSearchParams) (*http.Request, error)

NewGetFlightsByPositionSearchRequest generates requests for GetFlightsByPositionSearch

func NewGetFlightsBySearchRequest

func NewGetFlightsBySearchRequest(server string, params *GetFlightsBySearchParams) (*http.Request, error)

NewGetFlightsBySearchRequest generates requests for GetFlightsBySearch

func NewGetFlightsCanonicalRequest

func NewGetFlightsCanonicalRequest(server string, ident string, params *GetFlightsCanonicalParams) (*http.Request, error)

NewGetFlightsCanonicalRequest generates requests for GetFlightsCanonical

func NewGetFlightsCountBySearchRequest

func NewGetFlightsCountBySearchRequest(server string, params *GetFlightsCountBySearchParams) (*http.Request, error)

NewGetFlightsCountBySearchRequest generates requests for GetFlightsCountBySearch

func NewGetHistoryAircraftLastFlightRequest

func NewGetHistoryAircraftLastFlightRequest(server string, registration string) (*http.Request, error)

NewGetHistoryAircraftLastFlightRequest generates requests for GetHistoryAircraftLastFlight

func NewGetHistoryAirportsFlightsArrivedRequest

func NewGetHistoryAirportsFlightsArrivedRequest(server string, id string, params *GetHistoryAirportsFlightsArrivedParams) (*http.Request, error)

NewGetHistoryAirportsFlightsArrivedRequest generates requests for GetHistoryAirportsFlightsArrived

func NewGetHistoryAirportsFlightsDepartedRequest

func NewGetHistoryAirportsFlightsDepartedRequest(server string, id string, params *GetHistoryAirportsFlightsDepartedParams) (*http.Request, error)

NewGetHistoryAirportsFlightsDepartedRequest generates requests for GetHistoryAirportsFlightsDeparted

func NewGetHistoryFlightMapRequest

func NewGetHistoryFlightMapRequest(server string, id string, params *GetHistoryFlightMapParams) (*http.Request, error)

NewGetHistoryFlightMapRequest generates requests for GetHistoryFlightMap

func NewGetHistoryFlightRequest

func NewGetHistoryFlightRequest(server string, ident string, params *GetHistoryFlightParams) (*http.Request, error)

NewGetHistoryFlightRequest generates requests for GetHistoryFlight

func NewGetHistoryFlightRouteRequest

func NewGetHistoryFlightRouteRequest(server string, id string) (*http.Request, error)

NewGetHistoryFlightRouteRequest generates requests for GetHistoryFlightRoute

func NewGetHistoryFlightTrackRequest

func NewGetHistoryFlightTrackRequest(server string, id string, params *GetHistoryFlightTrackParams) (*http.Request, error)

NewGetHistoryFlightTrackRequest generates requests for GetHistoryFlightTrack

func NewGetHistoryFlightsBetweenAirportsRequest

func NewGetHistoryFlightsBetweenAirportsRequest(server string, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams) (*http.Request, error)

NewGetHistoryFlightsBetweenAirportsRequest generates requests for GetHistoryFlightsBetweenAirports

func NewGetHistoryOperatorsFlightsRequest

func NewGetHistoryOperatorsFlightsRequest(server string, id string, params *GetHistoryOperatorsFlightsParams) (*http.Request, error)

NewGetHistoryOperatorsFlightsRequest generates requests for GetHistoryOperatorsFlights

func NewGetNearbyAirportsRequest

func NewGetNearbyAirportsRequest(server string, params *GetNearbyAirportsParams) (*http.Request, error)

NewGetNearbyAirportsRequest generates requests for GetNearbyAirports

func NewGetOperatorFlightsArrivedRequest

func NewGetOperatorFlightsArrivedRequest(server string, id string, params *GetOperatorFlightsArrivedParams) (*http.Request, error)

NewGetOperatorFlightsArrivedRequest generates requests for GetOperatorFlightsArrived

func NewGetOperatorFlightsCountRequest

func NewGetOperatorFlightsCountRequest(server string, id string) (*http.Request, error)

NewGetOperatorFlightsCountRequest generates requests for GetOperatorFlightsCount

func NewGetOperatorFlightsEnrouteRequest

func NewGetOperatorFlightsEnrouteRequest(server string, id string, params *GetOperatorFlightsEnrouteParams) (*http.Request, error)

NewGetOperatorFlightsEnrouteRequest generates requests for GetOperatorFlightsEnroute

func NewGetOperatorFlightsRequest

func NewGetOperatorFlightsRequest(server string, id string, params *GetOperatorFlightsParams) (*http.Request, error)

NewGetOperatorFlightsRequest generates requests for GetOperatorFlights

func NewGetOperatorFlightsScheduledRequest

func NewGetOperatorFlightsScheduledRequest(server string, id string, params *GetOperatorFlightsScheduledParams) (*http.Request, error)

NewGetOperatorFlightsScheduledRequest generates requests for GetOperatorFlightsScheduled

func NewGetOperatorRequest

func NewGetOperatorRequest(server string, id string) (*http.Request, error)

NewGetOperatorRequest generates requests for GetOperator

func NewGetOperatorsCanonicalRequest

func NewGetOperatorsCanonicalRequest(server string, id string, params *GetOperatorsCanonicalParams) (*http.Request, error)

NewGetOperatorsCanonicalRequest generates requests for GetOperatorsCanonical

func NewGetRoutesBetweenAirportsRequest

func NewGetRoutesBetweenAirportsRequest(server string, id string, destId string, params *GetRoutesBetweenAirportsParams) (*http.Request, error)

NewGetRoutesBetweenAirportsRequest generates requests for GetRoutesBetweenAirports

func NewGetSchedulesByDateRequest

func NewGetSchedulesByDateRequest(server string, dateStart string, dateEnd string, params *GetSchedulesByDateParams) (*http.Request, error)

NewGetSchedulesByDateRequest generates requests for GetSchedulesByDate

func NewPostFlightsByIdentRequest added in v0.2.0

func NewPostFlightsByIdentRequest(server string, ident string, body PostFlightsByIdentJSONRequestBody) (*http.Request, error)

NewPostFlightsByIdentRequest calls the generic PostFlightsByIdent builder with application/json body

func NewPostFlightsByIdentRequestWithBody

func NewPostFlightsByIdentRequestWithBody(server string, ident string, contentType string, body io.Reader) (*http.Request, error)

NewPostFlightsByIdentRequestWithBody generates requests for PostFlightsByIdent with any type of body

func NewSetAlertsEndpointRequest added in v0.2.0

func NewSetAlertsEndpointRequest(server string, body SetAlertsEndpointJSONRequestBody) (*http.Request, error)

NewSetAlertsEndpointRequest calls the generic SetAlertsEndpoint builder with application/json body

func NewSetAlertsEndpointRequestWithBody

func NewSetAlertsEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewSetAlertsEndpointRequestWithBody generates requests for SetAlertsEndpoint with any type of body

func NewUpdateAlertRequest added in v0.2.0

func NewUpdateAlertRequest(server string, id int, body UpdateAlertJSONRequestBody) (*http.Request, error)

NewUpdateAlertRequest calls the generic UpdateAlert builder with application/json body

func NewUpdateAlertRequestWithBody

func NewUpdateAlertRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error)

NewUpdateAlertRequestWithBody generates requests for UpdateAlert with any type of body

Types

type AccountUsage200Response added in v0.2.0

type AccountUsage200Response struct {
	// ResourceDetails Resource specific information
	ResourceDetails []struct {
		// FailedResourceCalls Total number of failed calls for this resource
		FailedResourceCalls int `json:"failed_resource_calls"`

		// NumPages Total number of pages retrieved for this resource
		NumPages int `json:"num_pages"`

		// Operation Name of the operation
		Operation string `json:"operation"`

		// ResourceCost Total cost for all calls made to this resource.
		// Does not include volume discounting
		ResourceCost float32 `json:"resource_cost"`

		// SuccessfulResourceCalls Total number of successful calls for this resource
		SuccessfulResourceCalls int `json:"successful_resource_calls"`

		// TotalResourceCalls Total number of calls made for this resource
		TotalResourceCalls int `json:"total_resource_calls"`
	} `json:"resource_details"`

	// TotalCalls Total number of calls across all resources
	TotalCalls int `json:"total_calls"`

	// TotalCost Total cost for all calls made across all resources.
	// Does not include volume discounting
	TotalCost float32 `json:"total_cost"`

	// TotalDiscountCost Total cost across all resources including volume discounting.
	// (Total cost minus discount)
	TotalDiscountCost float32 `json:"total_discount_cost"`

	// TotalFailedCalls Total number of failed calls across all resources
	TotalFailedCalls int `json:"total_failed_calls"`

	// TotalPages Total number of pages retrieved across all resources
	TotalPages int `json:"total_pages"`

	// TotalSuccessfulCalls Total number of successful calls across all resources
	TotalSuccessfulCalls int `json:"total_successful_calls"`
}

AccountUsage200Response defines model for AccountUsage200Response.

type AircraftBlocked200Response added in v0.2.0

type AircraftBlocked200Response struct {
	// Blocked Set to true if the aircraft or ident is blocked from tracking.
	Blocked bool `json:"blocked"`
}

AircraftBlocked200Response defines model for AircraftBlocked200Response.

type AircraftOwner200Response added in v0.2.0

type AircraftOwner200Response struct {
	Owner *struct {
		// Location City and state of the registered owner. For Australia, state and country. For New Zealand, city and country.
		Location *string `json:"location"`

		// Location2 Street address of the registered owner
		Location2 *string `json:"location2"`

		// Name Name of the registered owner of the aircraft
		Name *string `json:"name"`

		// Website Website for the owner if available
		Website *string `json:"website"`
	} `json:"owner,omitempty"`
}

AircraftOwner200Response defines model for AircraftOwner200Response.

type Airport added in v0.2.0

type Airport struct {
	// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
	AirportCode string `json:"airport_code"`

	// AirportFlightsUrl The URL to flights for this airport
	AirportFlightsUrl string `json:"airport_flights_url"`

	// AlternateIdent IATA or LID identifier for the airport. (Deprecated, use code_iata for the IATA identifier or code_lid for the LID identifier instead.)
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	AlternateIdent *string `json:"alternate_ident"`

	// City Closest city to the airport
	City string `json:"city"`

	// CodeIata IATA identifier for the airport if known
	CodeIata *string `json:"code_iata"`

	// CodeIcao ICAO identifier for the airport if known
	CodeIcao *string `json:"code_icao"`

	// CodeLid LID identifier for the airport if known
	CodeLid *string `json:"code_lid"`

	// CountryCode 2-letter code of country where the airport resides (ISO 3166-1 alpha-2)
	CountryCode string `json:"country_code"`

	// Elevation Height above Mean Sea Level (MSL)
	Elevation float32 `json:"elevation"`

	// Latitude Airport's latitude, generally the center point of the airport
	Latitude float32 `json:"latitude"`

	// Longitude Airport's longitude, generally the center point of the airport
	Longitude float32 `json:"longitude"`

	// Name Common name for the airport
	Name string `json:"name"`

	// State State/province where the airport resides if applicable. For US states
	// this will be their 2-letter code; for provinces or other entities, it
	// will be the full name.
	State string `json:"state"`

	// Timezone Applicable timezone for the airport, in the TZ database format
	Timezone string `json:"timezone"`

	// Type Type of airport
	Type *AirportType `json:"type"`

	// WikiUrl Link to the wikipedia page for the airport
	WikiUrl *string `json:"wiki_url"`
}

Airport defines model for Airport.

type AirportDelays200Response added in v0.2.0

type AirportDelays200Response struct {
	// Airport ICAO/IATA code of airport
	Airport string `json:"airport"`

	// Category Category of the largest delay. Possible values are:
	// * **weather** ex: low vis/fog, storms, wind
	// * **volume** ex: airspace or taxiway congestion
	// * **equipment_failure** ex: atc sytem outage or failure
	// * **security** ex: VIP movement
	// * **emergency** ex: accident event
	// * **runway** ex: runway change or occupancy problems
	// * **other** ex: taxiway maintenance event
	// * **atm** ex: air traffic management program in effect
	Category string `json:"category"`

	// Color Color of largest delay. Red when delay is geater than 1 hour. Yellow when
	// delay is between 15 minutes to an hour. Green when delay is between 0 to 15 minutes.
	Color AirportDelays200ResponseColor `json:"color"`

	// DelaySecs Duration of largest delay (seconds). This value is not intended to be
	// presented to users and should only be used for sorting results.
	DelaySecs int `json:"delay_secs"`

	// Reasons Reasons for the delay
	Reasons []struct {
		// Category Category for the delay. Some possible values are "weather", "traffic",
		// "equipment", etc.
		Category string `json:"category"`

		// Color Color indicating severity of delay
		Color AirportDelays200ResponseReasonsColor `json:"color"`

		// DelaySecs Duration of delay (seconds). This value is not intended to be
		// presented to users and should only be used for sorting results.
		DelaySecs int `json:"delay_secs"`

		// Reason Textual description of the cause of the delay
		Reason string `json:"reason"`
	} `json:"reasons"`
}

AirportDelays200Response defines model for AirportDelays200Response.

type AirportDelays200ResponseColor added in v0.2.0

type AirportDelays200ResponseColor string

AirportDelays200ResponseColor Color of largest delay. Red when delay is geater than 1 hour. Yellow when delay is between 15 minutes to an hour. Green when delay is between 0 to 15 minutes.

const (
	AirportDelays200ResponseColorGreen  AirportDelays200ResponseColor = "green"
	AirportDelays200ResponseColorRed    AirportDelays200ResponseColor = "red"
	AirportDelays200ResponseColorYellow AirportDelays200ResponseColor = "yellow"
)

Defines values for AirportDelays200ResponseColor.

type AirportDelays200ResponseReasonsColor added in v0.2.0

type AirportDelays200ResponseReasonsColor string

AirportDelays200ResponseReasonsColor Color indicating severity of delay

const (
	AirportDelays200ResponseReasonsColorGreen  AirportDelays200ResponseReasonsColor = "green"
	AirportDelays200ResponseReasonsColorRed    AirportDelays200ResponseReasonsColor = "red"
	AirportDelays200ResponseReasonsColorYellow AirportDelays200ResponseReasonsColor = "yellow"
)

Defines values for AirportDelays200ResponseReasonsColor.

type AirportFlights200Response added in v0.2.0

type AirportFlights200Response struct {
	Arrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlights200ResponseArrivalsType `json:"type"`
	} `json:"arrivals"`
	Departures []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlights200ResponseDeparturesType `json:"type"`
	} `json:"departures"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages          int `json:"num_pages"`
	ScheduledArrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlights200ResponseScheduledArrivalsType `json:"type"`
	} `json:"scheduled_arrivals"`
	ScheduledDepartures []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlights200ResponseScheduledDeparturesType `json:"type"`
	} `json:"scheduled_departures"`
}

AirportFlights200Response defines model for AirportFlights200Response.

type AirportFlights200ResponseArrivalsType added in v0.2.0

type AirportFlights200ResponseArrivalsType string

AirportFlights200ResponseArrivalsType Whether this is a commercial or general aviation flight.

const (
	AirportFlights200ResponseArrivalsTypeAirline         AirportFlights200ResponseArrivalsType = "Airline"
	AirportFlights200ResponseArrivalsTypeGeneralAviation AirportFlights200ResponseArrivalsType = "General_Aviation"
)

Defines values for AirportFlights200ResponseArrivalsType.

type AirportFlights200ResponseDeparturesType added in v0.2.0

type AirportFlights200ResponseDeparturesType string

AirportFlights200ResponseDeparturesType Whether this is a commercial or general aviation flight.

const (
	AirportFlights200ResponseDeparturesTypeAirline         AirportFlights200ResponseDeparturesType = "Airline"
	AirportFlights200ResponseDeparturesTypeGeneralAviation AirportFlights200ResponseDeparturesType = "General_Aviation"
)

Defines values for AirportFlights200ResponseDeparturesType.

type AirportFlights200ResponseScheduledArrivalsType added in v0.2.0

type AirportFlights200ResponseScheduledArrivalsType string

AirportFlights200ResponseScheduledArrivalsType Whether this is a commercial or general aviation flight.

const (
	AirportFlights200ResponseScheduledArrivalsTypeAirline         AirportFlights200ResponseScheduledArrivalsType = "Airline"
	AirportFlights200ResponseScheduledArrivalsTypeGeneralAviation AirportFlights200ResponseScheduledArrivalsType = "General_Aviation"
)

Defines values for AirportFlights200ResponseScheduledArrivalsType.

type AirportFlights200ResponseScheduledDeparturesType added in v0.2.0

type AirportFlights200ResponseScheduledDeparturesType string

AirportFlights200ResponseScheduledDeparturesType Whether this is a commercial or general aviation flight.

const (
	AirportFlights200ResponseScheduledDeparturesTypeAirline         AirportFlights200ResponseScheduledDeparturesType = "Airline"
	AirportFlights200ResponseScheduledDeparturesTypeGeneralAviation AirportFlights200ResponseScheduledDeparturesType = "General_Aviation"
)

Defines values for AirportFlights200ResponseScheduledDeparturesType.

type AirportFlightsArrived200Response added in v0.2.0

type AirportFlightsArrived200Response struct {
	Arrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlightsArrived200ResponseArrivalsType `json:"type"`
	} `json:"arrivals"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

AirportFlightsArrived200Response defines model for AirportFlightsArrived200Response.

type AirportFlightsArrived200ResponseArrivalsType added in v0.2.0

type AirportFlightsArrived200ResponseArrivalsType string

AirportFlightsArrived200ResponseArrivalsType Whether this is a commercial or general aviation flight.

const (
	AirportFlightsArrived200ResponseArrivalsTypeAirline         AirportFlightsArrived200ResponseArrivalsType = "Airline"
	AirportFlightsArrived200ResponseArrivalsTypeGeneralAviation AirportFlightsArrived200ResponseArrivalsType = "General_Aviation"
)

Defines values for AirportFlightsArrived200ResponseArrivalsType.

type AirportFlightsCount200Response added in v0.2.0

type AirportFlightsCount200Response struct {
	// Departed Number of flights that have departed the airport and are currently
	// airborne.
	Departed int `json:"departed"`

	// Enroute Number of flights that are currently bound for the airport.
	Enroute int `json:"enroute"`

	// ScheduledArrivals Number of flights that have not yet departed but are scheduled to arrive
	// at the airport.
	ScheduledArrivals int `json:"scheduled_arrivals"`

	// ScheduledDepartures Number of flights that are scheduled to depart from the airport.
	ScheduledDepartures int `json:"scheduled_departures"`
}

AirportFlightsCount200Response None of the counts include cancellations.

type AirportFlightsDeparted200Response added in v0.2.0

type AirportFlightsDeparted200Response struct {
	Departures []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlightsDeparted200ResponseDeparturesType `json:"type"`
	} `json:"departures"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

AirportFlightsDeparted200Response defines model for AirportFlightsDeparted200Response.

type AirportFlightsDeparted200ResponseDeparturesType added in v0.2.0

type AirportFlightsDeparted200ResponseDeparturesType string

AirportFlightsDeparted200ResponseDeparturesType Whether this is a commercial or general aviation flight.

const (
	AirportFlightsDeparted200ResponseDeparturesTypeAirline         AirportFlightsDeparted200ResponseDeparturesType = "Airline"
	AirportFlightsDeparted200ResponseDeparturesTypeGeneralAviation AirportFlightsDeparted200ResponseDeparturesType = "General_Aviation"
)

Defines values for AirportFlightsDeparted200ResponseDeparturesType.

type AirportFlightsScheduledArrivals200Response added in v0.2.0

type AirportFlightsScheduledArrivals200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages          int `json:"num_pages"`
	ScheduledArrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType `json:"type"`
	} `json:"scheduled_arrivals"`
}

AirportFlightsScheduledArrivals200Response defines model for AirportFlightsScheduledArrivals200Response.

type AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType added in v0.2.0

type AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType string

AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType Whether this is a commercial or general aviation flight.

const (
	AirportFlightsScheduledArrivals200ResponseScheduledArrivalsTypeAirline         AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType = "Airline"
	AirportFlightsScheduledArrivals200ResponseScheduledArrivalsTypeGeneralAviation AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType = "General_Aviation"
)

Defines values for AirportFlightsScheduledArrivals200ResponseScheduledArrivalsType.

type AirportFlightsScheduledDepartures200Response added in v0.2.0

type AirportFlightsScheduledDepartures200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages            int `json:"num_pages"`
	ScheduledDepartures []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType `json:"type"`
	} `json:"scheduled_departures"`
}

AirportFlightsScheduledDepartures200Response defines model for AirportFlightsScheduledDepartures200Response.

type AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType added in v0.2.0

type AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType string

AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType Whether this is a commercial or general aviation flight.

const (
	AirportFlightsScheduledDepartures200ResponseScheduledDeparturesTypeAirline         AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType = "Airline"
	AirportFlightsScheduledDepartures200ResponseScheduledDeparturesTypeGeneralAviation AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType = "General_Aviation"
)

Defines values for AirportFlightsScheduledDepartures200ResponseScheduledDeparturesType.

type AirportType added in v0.2.0

type AirportType string

AirportType Type of airport

const (
	AirportTypeAirport      AirportType = "Airport"
	AirportTypeBalloonport  AirportType = "Balloonport"
	AirportTypeGliderport   AirportType = "Gliderport"
	AirportTypeHeliport     AirportType = "Heliport"
	AirportTypeLessThannil  AirportType = "<nil>"
	AirportTypeSeaplaneBase AirportType = "Seaplane Base"
	AirportTypeStolport     AirportType = "Stolport"
	AirportTypeUltralight   AirportType = "Ultralight"
)

Defines values for AirportType.

type AirportWeatherForecast200Response added in v0.2.0

type AirportWeatherForecast200Response struct {
	// AirportCode The airport code of the report. LID/IATA will be used if airport lacks an
	// ICAO code.
	AirportCode     string `json:"airport_code"`
	DecodedForecast *struct {
		End   time.Time `json:"end"`
		Lines []struct {
			// BarometricPressure Forecast pressure (percent)
			BarometricPressure *float32 `json:"barometric_pressure"`
			Clouds             []struct {
				// Altitude Height (AGL) of cloud layer base
				Altitude *string `json:"altitude"`

				// Coverage Area of sky covered by the cloud layer (few 0-2 octas, scatterd
				// 3-4 octas, broken 5-7 octas, overcast 8 octas)
				Coverage *AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage `json:"coverage"`

				// Special Any special modifiers such as CB (cumulonimbus) or TCU
				// (towering cumulonimbus)
				Special *string `json:"special"`

				// Symbol Raw TAF cloud symbol
				Symbol string `json:"symbol"`
			} `json:"clouds"`

			// End End of the effective period for this forecast line
			End *time.Time `json:"end"`

			// IcingLayers Icing forecast
			IcingLayers *string `json:"icing_layers"`

			// SignificantWeather Significant weather forecast
			SignificantWeather *string `json:"significant_weather"`

			// Start Start of the effective period for this forecast line
			Start time.Time `json:"start"`

			// TurbulenceLayers Turbulence forecast
			TurbulenceLayers *string `json:"turbulence_layers"`

			// Type The type of forecast line (forecast, from, temporary, becoming)
			Type       string `json:"type"`
			Visibility *struct {
				// Symbol Raw TAF visibility symbol
				Symbol string `json:"symbol"`

				// Units Visibility units
				Units *string `json:"units"`

				// Visibility Numeric visibility (or "unlimited")
				Visibility string `json:"visibility"`
			} `json:"visibility"`
			Winds *struct {
				// Direction Wind direction (0-360 or "variable")
				Direction string `json:"direction"`

				// PeakGusts Peak gusts for forecast
				PeakGusts *int `json:"peak_gusts"`

				// Speed Wind speed
				Speed int `json:"speed"`

				// Symbol Raw TAF wind symbol
				Symbol string `json:"symbol"`

				// Units Wind units
				Units *string `json:"units"`
			} `json:"winds"`
			Windshear *struct {
				// Direction Wind direction of windshear (0-360 or "variable")
				Direction string `json:"direction"`

				// Height Altitude of low level wind shear occurrence
				Height string `json:"height"`

				// Speed Wind speed of windshear
				Speed string `json:"speed"`

				// Symbol Raw TAF windshear symbol
				Symbol string `json:"symbol"`

				// Units Wind units of windshear
				Units *string `json:"units"`
			} `json:"windshear"`
		} `json:"lines"`
		Start time.Time `json:"start"`
	} `json:"decoded_forecast"`

	// RawForecast Array of raw forecast lines from the TAF
	RawForecast []string `json:"raw_forecast"`

	// Time Datetime that the forecast was generated.
	Time time.Time `json:"time"`
}

AirportWeatherForecast200Response defines model for AirportWeatherForecast200Response.

type AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage added in v0.2.0

type AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage string

AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage Area of sky covered by the cloud layer (few 0-2 octas, scatterd 3-4 octas, broken 5-7 octas, overcast 8 octas)

const (
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageBroken      AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "broken"
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageFew         AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "few"
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageLessThannil AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "<nil>"
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageOvercast    AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "overcast"
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageScattered   AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "scattered"
	AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverageSkyClear    AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage = "sky_clear"
)

Defines values for AirportWeatherForecast200ResponseDecodedForecastLinesCloudsCoverage.

type AirportWeatherObservations200Response added in v0.2.0

type AirportWeatherObservations200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages     int `json:"num_pages"`
	Observations []struct {
		// AirportCode The airport code of the report. LID/IATA will be used if airport lacks an
		// ICAO code.
		AirportCode string `json:"airport_code"`

		// CloudFriendly Human-friendly summary of clouds.
		CloudFriendly *string `json:"cloud_friendly"`

		// Clouds Array of cloud data
		Clouds []struct {
			// Altitude Height in feet (AGL) of cloud base
			Altitude *int `json:"altitude"`

			// Symbol Raw cloud symbol from the METAR report
			Symbol *string `json:"symbol,omitempty"`

			// Type Type of cloud. May be CLR, FEW, SCT, BKN, OVC, VV
			Type *string `json:"type,omitempty"`
		} `json:"clouds"`

		// Conditions Notable weather
		Conditions *string `json:"conditions"`

		// Pressure Air pressure (see pressure_units field for units)
		Pressure *float32 `json:"pressure"`

		// PressureUnits Units for air pressure
		PressureUnits *AirportWeatherObservations200ResponseObservationsPressureUnits `json:"pressure_units"`

		// RawData Raw METAR report string
		RawData string `json:"raw_data"`

		// RelativeHumidity Relative humidity (percent)
		RelativeHumidity *int `json:"relative_humidity"`

		// TempAir Air temperature
		TempAir *int `json:"temp_air"`

		// TempDewpoint Dewpoint temperature
		TempDewpoint *int `json:"temp_dewpoint"`

		// TempPerceived Perceived temperature (e.g. wind chill)
		TempPerceived *int `json:"temp_perceived"`

		// Time Timestamp when report was collected
		Time time.Time `json:"time"`

		// Visibility Horizontal visibility distance (see visibility_units for units)
		Visibility *float32 `json:"visibility"`

		// VisibilityUnits Units for visibility
		VisibilityUnits *AirportWeatherObservations200ResponseObservationsVisibilityUnits `json:"visibility_units"`

		// WindDirection Heading direction of wind (degrees)
		WindDirection int `json:"wind_direction"`

		// WindFriendly Human-friendly summary of winds
		WindFriendly string `json:"wind_friendly"`

		// WindSpeed Wind speed
		WindSpeed int `json:"wind_speed"`

		// WindSpeedGust Wind gust speed
		WindSpeedGust int `json:"wind_speed_gust"`

		// WindUnits Units for the wind speed and wind gusts
		WindUnits AirportWeatherObservations200ResponseObservationsWindUnits `json:"wind_units"`
	} `json:"observations"`
}

AirportWeatherObservations200Response defines model for AirportWeatherObservations200Response.

type AirportWeatherObservations200ResponseObservationsPressureUnits added in v0.2.0

type AirportWeatherObservations200ResponseObservationsPressureUnits string

AirportWeatherObservations200ResponseObservationsPressureUnits Units for air pressure

const (
	AirportWeatherObservations200ResponseObservationsPressureUnitsInHg        AirportWeatherObservations200ResponseObservationsPressureUnits = "in Hg"
	AirportWeatherObservations200ResponseObservationsPressureUnitsLessThannil AirportWeatherObservations200ResponseObservationsPressureUnits = "<nil>"
	AirportWeatherObservations200ResponseObservationsPressureUnitsMb          AirportWeatherObservations200ResponseObservationsPressureUnits = "mb"
)

Defines values for AirportWeatherObservations200ResponseObservationsPressureUnits.

type AirportWeatherObservations200ResponseObservationsVisibilityUnits added in v0.2.0

type AirportWeatherObservations200ResponseObservationsVisibilityUnits string

AirportWeatherObservations200ResponseObservationsVisibilityUnits Units for visibility

const (
	AirportWeatherObservations200ResponseObservationsVisibilityUnitsLessThannil AirportWeatherObservations200ResponseObservationsVisibilityUnits = "<nil>"
	AirportWeatherObservations200ResponseObservationsVisibilityUnitsMeters      AirportWeatherObservations200ResponseObservationsVisibilityUnits = "meters"
	AirportWeatherObservations200ResponseObservationsVisibilityUnitsSM          AirportWeatherObservations200ResponseObservationsVisibilityUnits = "SM"
)

Defines values for AirportWeatherObservations200ResponseObservationsVisibilityUnits.

type AirportWeatherObservations200ResponseObservationsWindUnits added in v0.2.0

type AirportWeatherObservations200ResponseObservationsWindUnits string

AirportWeatherObservations200ResponseObservationsWindUnits Units for the wind speed and wind gusts

Defines values for AirportWeatherObservations200ResponseObservationsWindUnits.

type AirportWithAlternatives added in v0.2.0

type AirportWithAlternatives struct {
	// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
	AirportCode string `json:"airport_code"`

	// AirportFlightsUrl The URL to flights for this airport
	AirportFlightsUrl string `json:"airport_flights_url"`

	// AlternateIdent IATA or LID identifier for the airport. (Deprecated, use code_iata for the IATA identifier or code_lid for the LID identifier instead.)
	// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
	AlternateIdent *string `json:"alternate_ident"`

	// Alternatives An array of other possible matches
	Alternatives *[]Airport `json:"alternatives,omitempty"`

	// City Closest city to the airport
	City string `json:"city"`

	// CodeIata IATA identifier for the airport if known
	CodeIata *string `json:"code_iata"`

	// CodeIcao ICAO identifier for the airport if known
	CodeIcao *string `json:"code_icao"`

	// CodeLid LID identifier for the airport if known
	CodeLid *string `json:"code_lid"`

	// CountryCode 2-letter code of country where the airport resides (ISO 3166-1 alpha-2)
	CountryCode string `json:"country_code"`

	// Elevation Height above Mean Sea Level (MSL)
	Elevation float32 `json:"elevation"`

	// Latitude Airport's latitude, generally the center point of the airport
	Latitude float32 `json:"latitude"`

	// Longitude Airport's longitude, generally the center point of the airport
	Longitude float32 `json:"longitude"`

	// Name Common name for the airport
	Name string `json:"name"`

	// State State/province where the airport resides if applicable. For US states
	// this will be their 2-letter code; for provinces or other entities, it
	// will be the full name.
	State string `json:"state"`

	// Timezone Applicable timezone for the airport, in the TZ database format
	Timezone string `json:"timezone"`

	// Type Type of airport
	Type *AirportWithAlternativesType `json:"type"`

	// WikiUrl Link to the wikipedia page for the airport
	WikiUrl *string `json:"wiki_url"`
}

AirportWithAlternatives defines model for AirportWithAlternatives.

type AirportWithAlternativesType added in v0.2.0

type AirportWithAlternativesType string

AirportWithAlternativesType Type of airport

const (
	AirportWithAlternativesTypeAirport      AirportWithAlternativesType = "Airport"
	AirportWithAlternativesTypeBalloonport  AirportWithAlternativesType = "Balloonport"
	AirportWithAlternativesTypeGliderport   AirportWithAlternativesType = "Gliderport"
	AirportWithAlternativesTypeHeliport     AirportWithAlternativesType = "Heliport"
	AirportWithAlternativesTypeLessThannil  AirportWithAlternativesType = "<nil>"
	AirportWithAlternativesTypeSeaplaneBase AirportWithAlternativesType = "Seaplane Base"
	AirportWithAlternativesTypeStolport     AirportWithAlternativesType = "Stolport"
	AirportWithAlternativesTypeUltralight   AirportWithAlternativesType = "Ultralight"
)

Defines values for AirportWithAlternativesType.

type AirportsCanonical200Response added in v0.2.0

type AirportsCanonical200Response struct {
	Airports []struct {
		// Id Canonical airport code. This is the code by which a given airport (and
		// its flights) can be accessed in AeroAPI.
		Id string `json:"id"`

		// IdType Type of airport code given in id
		IdType AirportsCanonical200ResponseAirportsIdType `json:"id_type"`
	} `json:"airports"`
}

AirportsCanonical200Response defines model for AirportsCanonical200Response.

type AirportsCanonical200ResponseAirportsIdType added in v0.2.0

type AirportsCanonical200ResponseAirportsIdType string

AirportsCanonical200ResponseAirportsIdType Type of airport code given in id

const (
	AirportsCanonical200ResponseAirportsIdTypeIata AirportsCanonical200ResponseAirportsIdType = "iata"
	AirportsCanonical200ResponseAirportsIdTypeIcao AirportsCanonical200ResponseAirportsIdType = "icao"
	AirportsCanonical200ResponseAirportsIdTypeLid  AirportsCanonical200ResponseAirportsIdType = "lid"
)

Defines values for AirportsCanonical200ResponseAirportsIdType.

type AirportsNearAirport200Response added in v0.2.0

type AirportsNearAirport200Response struct {
	Airports []struct {
		// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
		AirportCode string `json:"airport_code"`

		// AirportFlightsUrl The URL to flights for this airport
		AirportFlightsUrl string `json:"airport_flights_url"`

		// AlternateIdent IATA or LID identifier for the airport. (Deprecated, use code_iata for the IATA identifier or code_lid for the LID identifier instead.)
		// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
		AlternateIdent *string `json:"alternate_ident"`

		// City Closest city to the airport
		City string `json:"city"`

		// CodeIata IATA identifier for the airport if known
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO identifier for the airport if known
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID identifier for the airport if known
		CodeLid *string `json:"code_lid"`

		// CountryCode 2-letter code of country where the airport resides (ISO 3166-1 alpha-2)
		CountryCode string `json:"country_code"`

		// Direction Cardinal direction from specified location to airport
		Direction AirportsNearAirport200ResponseAirportsDirection `json:"direction"`

		// Distance Distance of airport from the specified location (statute miles)
		Distance int `json:"distance"`

		// Elevation Height above Mean Sea Level (MSL)
		Elevation float32 `json:"elevation"`

		// Heading Direction from specified location to airport (degrees)
		Heading int `json:"heading"`

		// Latitude Airport's latitude, generally the center point of the airport
		Latitude float32 `json:"latitude"`

		// Longitude Airport's longitude, generally the center point of the airport
		Longitude float32 `json:"longitude"`

		// Name Common name for the airport
		Name string `json:"name"`

		// State State/province where the airport resides if applicable. For US states
		// this will be their 2-letter code; for provinces or other entities, it
		// will be the full name.
		State string `json:"state"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone string `json:"timezone"`

		// Type Type of airport
		Type *AirportsNearAirport200ResponseAirportsType `json:"type"`

		// WikiUrl Link to the wikipedia page for the airport
		WikiUrl *string `json:"wiki_url"`
	} `json:"airports"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

AirportsNearAirport200Response defines model for AirportsNearAirport200Response.

type AirportsNearAirport200ResponseAirportsDirection added in v0.2.0

type AirportsNearAirport200ResponseAirportsDirection string

AirportsNearAirport200ResponseAirportsDirection Cardinal direction from specified location to airport

const (
	AirportsNearAirport200ResponseAirportsDirectionE  AirportsNearAirport200ResponseAirportsDirection = "E"
	AirportsNearAirport200ResponseAirportsDirectionN  AirportsNearAirport200ResponseAirportsDirection = "N"
	AirportsNearAirport200ResponseAirportsDirectionNE AirportsNearAirport200ResponseAirportsDirection = "NE"
	AirportsNearAirport200ResponseAirportsDirectionNW AirportsNearAirport200ResponseAirportsDirection = "NW"
	AirportsNearAirport200ResponseAirportsDirectionS  AirportsNearAirport200ResponseAirportsDirection = "S"
	AirportsNearAirport200ResponseAirportsDirectionSE AirportsNearAirport200ResponseAirportsDirection = "SE"
	AirportsNearAirport200ResponseAirportsDirectionSW AirportsNearAirport200ResponseAirportsDirection = "SW"
	AirportsNearAirport200ResponseAirportsDirectionW  AirportsNearAirport200ResponseAirportsDirection = "W"
)

Defines values for AirportsNearAirport200ResponseAirportsDirection.

type AirportsNearAirport200ResponseAirportsType added in v0.2.0

type AirportsNearAirport200ResponseAirportsType string

AirportsNearAirport200ResponseAirportsType Type of airport

const (
	AirportsNearAirport200ResponseAirportsTypeAirport      AirportsNearAirport200ResponseAirportsType = "Airport"
	AirportsNearAirport200ResponseAirportsTypeBalloonport  AirportsNearAirport200ResponseAirportsType = "Balloonport"
	AirportsNearAirport200ResponseAirportsTypeGliderport   AirportsNearAirport200ResponseAirportsType = "Gliderport"
	AirportsNearAirport200ResponseAirportsTypeHeliport     AirportsNearAirport200ResponseAirportsType = "Heliport"
	AirportsNearAirport200ResponseAirportsTypeLessThannil  AirportsNearAirport200ResponseAirportsType = "<nil>"
	AirportsNearAirport200ResponseAirportsTypeSeaplaneBase AirportsNearAirport200ResponseAirportsType = "Seaplane Base"
	AirportsNearAirport200ResponseAirportsTypeStolport     AirportsNearAirport200ResponseAirportsType = "Stolport"
	AirportsNearAirport200ResponseAirportsTypeUltralight   AirportsNearAirport200ResponseAirportsType = "Ultralight"
)

Defines values for AirportsNearAirport200ResponseAirportsType.

type Alert200Response added in v0.2.0

type Alert200Response struct {
	// AircraftType Aircraft type ICAO code to alert on.
	AircraftType *string `json:"aircraft_type"`

	// Changed Time that the alert was last modified.
	Changed *time.Time `json:"changed,omitempty"`

	// Created Time that the alert was created.
	Created *time.Time `json:"created,omitempty"`

	// Description Server-generated textual description of alert. May include carrier,
	// flight number, origin, destination, etc.
	Description *string `json:"description,omitempty"`

	// Destination Destination airport ICAO, IATA, or LID code to alert on.
	Destination *string `json:"destination"`

	// DestinationIata Destination airport IATA code to alert on.
	DestinationIata *string `json:"destination_iata"`

	// DestinationIcao Destination airport ICAO code to alert on.
	DestinationIcao *string `json:"destination_icao"`

	// DestinationLid Destination airport LID code to alert on.
	DestinationLid *string `json:"destination_lid"`

	// Enabled Whether alert is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// End End date of alert (inclusive). Should be in departure airport's
	// timezone.
	End *openapi_types.Date `json:"end"`

	// Eta How many minutes before a flight's ETA that an alert should be
	// delivered. Alerts will only be delivered after the flight has been in
	// the air for at least 15 minutes. Set to 0 to disable.
	Eta    *int `json:"eta,omitempty"`
	Events *struct {
		// Arrival Whether alerts should be delivered on arrival. FlightAware
		// Global customers will also receive \"taxi stop\" Ready To Taxi™
		// alerts unless they've opted out.
		Arrival bool `json:"arrival"`

		// Cancelled Whether alerts should be delivered on cancellation
		// airline events. Both cancelled and uncancelled events
		// will generate alerts. A max of three cancelled alerts
		// and three uncancelled alerts will be sent for a
		// single configured cancelled alert. The cancelled and an
		// uncancelled alert count operate independently meaning
		// you can get a max of 3 for each of the cancelled and
		// uncancelled events.
		Cancelled bool `json:"cancelled"`

		// Departure Whether alerts should be delivered on departure. FlightAware
		// Global customers will also receive \"power on\" and \"taxi start\"
		// Ready To Taxi™ alerts unless they've opted out.
		Departure bool `json:"departure"`

		// Diverted Whether alerts should be delivered on diversion
		Diverted bool `json:"diverted"`

		// Filed Whether alerts should be delivered on filing
		Filed bool `json:"filed"`

		// HoldEnd Whether alerts should be delivered on end datetime of hold exit
		// (will be null for hold_entry event)
		HoldEnd bool `json:"hold_end"`

		// HoldStart Whether alerts should be delivered on start datetime of hold detection
		HoldStart bool `json:"hold_start"`

		// In Whether alerts should be delivered when aircraft enters arrival gate
		In bool `json:"in"`

		// Off Whether alerts should be delivered when aircraft leaves the runway
		Off bool `json:"off"`

		// On Whether alerts should be delivered when aircraft touches down on runway
		On bool `json:"on"`

		// Out Whether alerts should be delivered when aircraft leaves departure gate
		Out bool `json:"out"`
	} `json:"events,omitempty"`

	// Id Unique ID for alert, can be used to update or delete alert.
	Id *int `json:"id,omitempty"`

	// Ident Ident to alert on. This value may be modified based on codeshare
	// resolution. If that occurs, the originally provided ident will be
	// preserved in the user_ident field.
	Ident *string `json:"ident"`

	// IdentIata IATA ident to alert on
	IdentIata *string `json:"ident_iata"`

	// IdentIcao ICAO ident to alert on
	IdentIcao *string `json:"ident_icao"`

	// ImpendingArrival List of minutes before a flight's arrival time that alerts should be delivered.
	// Limited to 15 minutes after actual departure and available
	// throughout the duration of the flight. No more than 10
	// impending arrival alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingArrival *[]int `json:"impending_arrival"`

	// ImpendingDeparture List of minutes before a flight's departure time that alerts should be delivered.
	// Limited to 60 minutes prior to estimated departure until actual departure,
	// implying a valid range of 60 - 5 minutes. No more than 10 impending departure
	// alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingDeparture *[]int `json:"impending_departure"`

	// Origin Origin airport ICAO, IATA, or LID code to alert on.
	Origin *string `json:"origin"`

	// OriginIata Origin airport IATA code to alert on.
	OriginIata *string `json:"origin_iata"`

	// OriginIcao Origin airport ICAO code to alert on.
	OriginIcao *string `json:"origin_icao"`

	// OriginLid Origin airport LID code to alert on.
	OriginLid *string `json:"origin_lid"`

	// Start Start date of alert. Should be in departure airport's
	// timezone.
	Start *openapi_types.Date `json:"start"`

	// TargetUrl Alert specific URL to deliver to. If null, then the alert
	// will be delivered to the configured account-wide alert URL
	// target.
	TargetUrl *string `json:"target_url"`

	// UserIdent Originally specified ident.
	UserIdent *string `json:"user_ident"`
}

Alert200Response defines model for Alert200Response.

type AlertsEndpoint200Response added in v0.2.0

type AlertsEndpoint200Response struct {
	// Url Default account-wide URL that will be POSTed to for flight alerts.
	Url *string `json:"url"`
}

AlertsEndpoint200Response Configuration for a URL to which AeroAPI alerts should be delivered via HTTP POST. This is the default account-wide URL that all AeroAPI alerts will be delivered to if the alert does not have a specific alert URL configured for it.

type AllAirports200Response added in v0.2.0

type AllAirports200Response struct {
	Airports []struct {
		// AirportInfoUrl The URL to more information about the airport.
		AirportInfoUrl *string `json:"airport_info_url"`

		// Code ICAO identifier if known, otherwise IATA or LID. For position-only
		// flights, this may also be a string indicating the location where tracking
		// of the flight began/ended.
		Code string `json:"code"`
	} `json:"airports"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

AllAirports200Response defines model for AllAirports200Response.

type AllAlerts200Response added in v0.2.0

type AllAlerts200Response struct {
	Alerts []struct {
		// AircraftType Aircraft type ICAO code to alert on.
		AircraftType *string `json:"aircraft_type"`

		// Changed Time that the alert was last modified.
		Changed *time.Time `json:"changed,omitempty"`

		// Created Time that the alert was created.
		Created *time.Time `json:"created,omitempty"`

		// Description Server-generated textual description of alert. May include carrier,
		// flight number, origin, destination, etc.
		Description *string `json:"description,omitempty"`

		// Destination Destination airport ICAO, IATA, or LID code to alert on.
		Destination *string `json:"destination"`

		// DestinationIata Destination airport IATA code to alert on.
		DestinationIata *string `json:"destination_iata"`

		// DestinationIcao Destination airport ICAO code to alert on.
		DestinationIcao *string `json:"destination_icao"`

		// DestinationLid Destination airport LID code to alert on.
		DestinationLid *string `json:"destination_lid"`

		// Enabled Whether alert is enabled.
		Enabled *bool `json:"enabled,omitempty"`

		// End End date of alert (inclusive). Should be in departure airport's
		// timezone.
		End *openapi_types.Date `json:"end"`

		// Eta How many minutes before a flight's ETA that an alert should be
		// delivered. Alerts will only be delivered after the flight has been in
		// the air for at least 15 minutes. Set to 0 to disable.
		Eta    *int `json:"eta,omitempty"`
		Events *struct {
			// Arrival Whether alerts should be delivered on arrival. FlightAware
			// Global customers will also receive \"taxi stop\" Ready To Taxi™
			// alerts unless they've opted out.
			Arrival bool `json:"arrival"`

			// Cancelled Whether alerts should be delivered on cancellation
			// airline events. Both cancelled and uncancelled events
			// will generate alerts. A max of three cancelled alerts
			// and three uncancelled alerts will be sent for a
			// single configured cancelled alert. The cancelled and an
			// uncancelled alert count operate independently meaning
			// you can get a max of 3 for each of the cancelled and
			// uncancelled events.
			Cancelled bool `json:"cancelled"`

			// Departure Whether alerts should be delivered on departure. FlightAware
			// Global customers will also receive \"power on\" and \"taxi start\"
			// Ready To Taxi™ alerts unless they've opted out.
			Departure bool `json:"departure"`

			// Diverted Whether alerts should be delivered on diversion
			Diverted bool `json:"diverted"`

			// Filed Whether alerts should be delivered on filing
			Filed bool `json:"filed"`

			// HoldEnd Whether alerts should be delivered on end datetime of hold exit
			// (will be null for hold_entry event)
			HoldEnd bool `json:"hold_end"`

			// HoldStart Whether alerts should be delivered on start datetime of hold detection
			HoldStart bool `json:"hold_start"`

			// In Whether alerts should be delivered when aircraft enters arrival gate
			In bool `json:"in"`

			// Off Whether alerts should be delivered when aircraft leaves the runway
			Off bool `json:"off"`

			// On Whether alerts should be delivered when aircraft touches down on runway
			On bool `json:"on"`

			// Out Whether alerts should be delivered when aircraft leaves departure gate
			Out bool `json:"out"`
		} `json:"events,omitempty"`

		// Id Unique ID for alert, can be used to update or delete alert.
		Id *int `json:"id,omitempty"`

		// Ident Ident to alert on. This value may be modified based on codeshare
		// resolution. If that occurs, the originally provided ident will be
		// preserved in the user_ident field.
		Ident *string `json:"ident"`

		// IdentIata IATA ident to alert on
		IdentIata *string `json:"ident_iata"`

		// IdentIcao ICAO ident to alert on
		IdentIcao *string `json:"ident_icao"`

		// ImpendingArrival List of minutes before a flight's arrival time that alerts should be delivered.
		// Limited to 15 minutes after actual departure and available
		// throughout the duration of the flight. No more than 10
		// impending arrival alerts can be configured for an individual flight. By default,
		// this field is set to null and when set to either null or an empty array,
		// this feature will not be configured for the alert.
		ImpendingArrival *[]int `json:"impending_arrival"`

		// ImpendingDeparture List of minutes before a flight's departure time that alerts should be delivered.
		// Limited to 60 minutes prior to estimated departure until actual departure,
		// implying a valid range of 60 - 5 minutes. No more than 10 impending departure
		// alerts can be configured for an individual flight. By default,
		// this field is set to null and when set to either null or an empty array,
		// this feature will not be configured for the alert.
		ImpendingDeparture *[]int `json:"impending_departure"`

		// Origin Origin airport ICAO, IATA, or LID code to alert on.
		Origin *string `json:"origin"`

		// OriginIata Origin airport IATA code to alert on.
		OriginIata *string `json:"origin_iata"`

		// OriginIcao Origin airport ICAO code to alert on.
		OriginIcao *string `json:"origin_icao"`

		// OriginLid Origin airport LID code to alert on.
		OriginLid *string `json:"origin_lid"`

		// Start Start date of alert. Should be in departure airport's
		// timezone.
		Start *openapi_types.Date `json:"start"`

		// TargetUrl Alert specific URL to deliver to. If null, then the alert
		// will be delivered to the configured account-wide alert URL
		// target.
		TargetUrl *string `json:"target_url"`

		// UserIdent Originally specified ident.
		UserIdent *string `json:"user_ident"`
	} `json:"alerts"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages *int `json:"num_pages,omitempty"`
}

AllAlerts200Response defines model for AllAlerts200Response.

type AllDisruptionCounts200Response added in v0.2.0

type AllDisruptionCounts200Response struct {
	// Entities Per-entity disruption information.
	Entities []struct {
		// Cancellations The number of cancelled flights for this airline or airport.
		Cancellations int `json:"cancellations"`

		// Delays The number of delayed flights for this airline or airport.
		Delays int `json:"delays"`

		// EntityId Code for the airline or airport.
		EntityId *string `json:"entity_id"`

		// EntityName The name of the airline or airport.
		EntityName *string `json:"entity_name"`

		// Total Total number of originally scheduled flights for this airline or
		// airport.
		Total int `json:"total"`
	} `json:"entities"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`

	// TotalCancellationsNational Total number of cancelled flights in the US.
	TotalCancellationsNational int `json:"total_cancellations_national"`

	// TotalCancellationsWorldwide Total number of cancelled flights.
	TotalCancellationsWorldwide int `json:"total_cancellations_worldwide"`

	// TotalDelaysWorldwide Total number of delayed flights.
	TotalDelaysWorldwide int `json:"total_delays_worldwide"`
}

AllDisruptionCounts200Response defines model for AllDisruptionCounts200Response.

type AllOperators200Response added in v0.2.0

type AllOperators200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages  int `json:"num_pages"`
	Operators []struct {
		// Code ICAO identifier if known, otherwise IATA.
		Code string `json:"code"`

		// OperatorInfoUrl The AeroAPI URL to more information about the operator
		OperatorInfoUrl string `json:"operator_info_url"`
	} `json:"operators"`
}

AllOperators200Response defines model for AllOperators200Response.

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) CreateAlert added in v0.2.0

func (c *Client) CreateAlert(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateAlertWithBody

func (c *Client) CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAlert

func (c *Client) DeleteAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteAlertsEndpoint

func (c *Client) DeleteAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAccountUsage

func (c *Client) GetAccountUsage(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAircraftBlocked

func (c *Client) GetAircraftBlocked(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAircraftOwner

func (c *Client) GetAircraftOwner(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirport

func (c *Client) GetAirport(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportDelays

func (c *Client) GetAirportDelays(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlights

func (c *Client) GetAirportFlights(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlightsArrived

func (c *Client) GetAirportFlightsArrived(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlightsCount

func (c *Client) GetAirportFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlightsDeparted

func (c *Client) GetAirportFlightsDeparted(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlightsScheduledArrivals

func (c *Client) GetAirportFlightsScheduledArrivals(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportFlightsScheduledDepartures

func (c *Client) GetAirportFlightsScheduledDepartures(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportWeatherForecast

func (c *Client) GetAirportWeatherForecast(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportWeatherObservations

func (c *Client) GetAirportWeatherObservations(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportsCanonical

func (c *Client) GetAirportsCanonical(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAirportsNearAirport

func (c *Client) GetAirportsNearAirport(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAlert

func (c *Client) GetAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAlertsEndpoint

func (c *Client) GetAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllAirports

func (c *Client) GetAllAirports(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllAlerts

func (c *Client) GetAllAlerts(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllDisruptionCounts

func (c *Client) GetAllDisruptionCounts(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAllOperators

func (c *Client) GetAllOperators(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDelaysForAllAirports

func (c *Client) GetDelaysForAllAirports(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDisruptionCounts

func (c *Client) GetDisruptionCounts(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlight

func (c *Client) GetFlight(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightMap

func (c *Client) GetFlightMap(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightPosition

func (c *Client) GetFlightPosition(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightPositionWithForesight

func (c *Client) GetFlightPositionWithForesight(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightRoute

func (c *Client) GetFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightTrack

func (c *Client) GetFlightTrack(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightType

func (c *Client) GetFlightType(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightWithForesight

func (c *Client) GetFlightWithForesight(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsBetweenAirports

func (c *Client) GetFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsByAdvancedSearch

func (c *Client) GetFlightsByAdvancedSearch(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsByAdvancedSearchWithForesight

func (c *Client) GetFlightsByAdvancedSearchWithForesight(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsByPositionSearch

func (c *Client) GetFlightsByPositionSearch(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsBySearch

func (c *Client) GetFlightsBySearch(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsCanonical

func (c *Client) GetFlightsCanonical(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetFlightsCountBySearch

func (c *Client) GetFlightsCountBySearch(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryAircraftLastFlight

func (c *Client) GetHistoryAircraftLastFlight(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryAirportsFlightsArrived

func (c *Client) GetHistoryAirportsFlightsArrived(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryAirportsFlightsDeparted

func (c *Client) GetHistoryAirportsFlightsDeparted(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryFlight

func (c *Client) GetHistoryFlight(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryFlightMap

func (c *Client) GetHistoryFlightMap(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryFlightRoute

func (c *Client) GetHistoryFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryFlightTrack

func (c *Client) GetHistoryFlightTrack(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryFlightsBetweenAirports

func (c *Client) GetHistoryFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHistoryOperatorsFlights

func (c *Client) GetHistoryOperatorsFlights(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetNearbyAirports

func (c *Client) GetNearbyAirports(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperator

func (c *Client) GetOperator(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorFlights

func (c *Client) GetOperatorFlights(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorFlightsArrived

func (c *Client) GetOperatorFlightsArrived(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorFlightsCount

func (c *Client) GetOperatorFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorFlightsEnroute

func (c *Client) GetOperatorFlightsEnroute(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorFlightsScheduled

func (c *Client) GetOperatorFlightsScheduled(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetOperatorsCanonical

func (c *Client) GetOperatorsCanonical(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRoutesBetweenAirports

func (c *Client) GetRoutesBetweenAirports(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSchedulesByDate

func (c *Client) GetSchedulesByDate(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostFlightsByIdent added in v0.2.0

func (c *Client) PostFlightsByIdent(ctx context.Context, ident string, body PostFlightsByIdentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostFlightsByIdentWithBody

func (c *Client) PostFlightsByIdentWithBody(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetAlertsEndpoint added in v0.2.0

func (c *Client) SetAlertsEndpoint(ctx context.Context, body SetAlertsEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SetAlertsEndpointWithBody

func (c *Client) SetAlertsEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlert added in v0.2.0

func (c *Client) UpdateAlert(ctx context.Context, id int, body UpdateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateAlertWithBody

func (c *Client) UpdateAlertWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetAccountUsage request
	GetAccountUsage(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightType request
	GetFlightType(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAircraftBlocked request
	GetAircraftBlocked(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAircraftOwner request
	GetAircraftOwner(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllAirports request
	GetAllAirports(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDelaysForAllAirports request
	GetDelaysForAllAirports(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetNearbyAirports request
	GetNearbyAirports(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirport request
	GetAirport(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportsCanonical request
	GetAirportsCanonical(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportDelays request
	GetAirportDelays(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlights request
	GetAirportFlights(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlightsArrived request
	GetAirportFlightsArrived(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlightsCount request
	GetAirportFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlightsDeparted request
	GetAirportFlightsDeparted(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlightsScheduledArrivals request
	GetAirportFlightsScheduledArrivals(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportFlightsScheduledDepartures request
	GetAirportFlightsScheduledDepartures(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsBetweenAirports request
	GetFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportsNearAirport request
	GetAirportsNearAirport(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRoutesBetweenAirports request
	GetRoutesBetweenAirports(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportWeatherForecast request
	GetAirportWeatherForecast(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAirportWeatherObservations request
	GetAirportWeatherObservations(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllAlerts request
	GetAllAlerts(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAlertWithBody request with any body
	CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateAlert(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAlertsEndpoint request
	DeleteAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlertsEndpoint request
	GetAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetAlertsEndpointWithBody request with any body
	SetAlertsEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SetAlertsEndpoint(ctx context.Context, body SetAlertsEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteAlert request
	DeleteAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAlert request
	GetAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateAlertWithBody request with any body
	UpdateAlertWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateAlert(ctx context.Context, id int, body UpdateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllDisruptionCounts request
	GetAllDisruptionCounts(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDisruptionCounts request
	GetDisruptionCounts(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsBySearch request
	GetFlightsBySearch(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsByAdvancedSearch request
	GetFlightsByAdvancedSearch(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsCountBySearch request
	GetFlightsCountBySearch(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsByPositionSearch request
	GetFlightsByPositionSearch(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlight request
	GetFlight(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsCanonical request
	GetFlightsCanonical(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostFlightsByIdentWithBody request with any body
	PostFlightsByIdentWithBody(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostFlightsByIdent(ctx context.Context, ident string, body PostFlightsByIdentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightMap request
	GetFlightMap(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightPosition request
	GetFlightPosition(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightRoute request
	GetFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightTrack request
	GetFlightTrack(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightsByAdvancedSearchWithForesight request
	GetFlightsByAdvancedSearchWithForesight(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightWithForesight request
	GetFlightWithForesight(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetFlightPositionWithForesight request
	GetFlightPositionWithForesight(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryAircraftLastFlight request
	GetHistoryAircraftLastFlight(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryAirportsFlightsArrived request
	GetHistoryAirportsFlightsArrived(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryAirportsFlightsDeparted request
	GetHistoryAirportsFlightsDeparted(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryFlightsBetweenAirports request
	GetHistoryFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryFlight request
	GetHistoryFlight(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryFlightMap request
	GetHistoryFlightMap(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryFlightRoute request
	GetHistoryFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryFlightTrack request
	GetHistoryFlightTrack(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetHistoryOperatorsFlights request
	GetHistoryOperatorsFlights(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAllOperators request
	GetAllOperators(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperator request
	GetOperator(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorsCanonical request
	GetOperatorsCanonical(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorFlights request
	GetOperatorFlights(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorFlightsArrived request
	GetOperatorFlightsArrived(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorFlightsCount request
	GetOperatorFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorFlightsEnroute request
	GetOperatorFlightsEnroute(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOperatorFlightsScheduled request
	GetOperatorFlightsScheduled(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSchedulesByDate request
	GetSchedulesByDate(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) CreateAlertWithBodyWithResponse

func (c *ClientWithResponses) CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

CreateAlertWithBodyWithResponse request with arbitrary body returning *CreateAlertResponse

func (*ClientWithResponses) CreateAlertWithResponse added in v0.2.0

func (c *ClientWithResponses) CreateAlertWithResponse(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

func (*ClientWithResponses) DeleteAlertWithResponse

func (c *ClientWithResponses) DeleteAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error)

DeleteAlertWithResponse request returning *DeleteAlertResponse

func (*ClientWithResponses) DeleteAlertsEndpointWithResponse

func (c *ClientWithResponses) DeleteAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAlertsEndpointResponse, error)

DeleteAlertsEndpointWithResponse request returning *DeleteAlertsEndpointResponse

func (*ClientWithResponses) GetAccountUsageWithResponse

func (c *ClientWithResponses) GetAccountUsageWithResponse(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*GetAccountUsageResponse, error)

GetAccountUsageWithResponse request returning *GetAccountUsageResponse

func (*ClientWithResponses) GetAircraftBlockedWithResponse

func (c *ClientWithResponses) GetAircraftBlockedWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftBlockedResponse, error)

GetAircraftBlockedWithResponse request returning *GetAircraftBlockedResponse

func (*ClientWithResponses) GetAircraftOwnerWithResponse

func (c *ClientWithResponses) GetAircraftOwnerWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftOwnerResponse, error)

GetAircraftOwnerWithResponse request returning *GetAircraftOwnerResponse

func (*ClientWithResponses) GetAirportDelaysWithResponse

func (c *ClientWithResponses) GetAirportDelaysWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportDelaysResponse, error)

GetAirportDelaysWithResponse request returning *GetAirportDelaysResponse

func (*ClientWithResponses) GetAirportFlightsArrivedWithResponse

func (c *ClientWithResponses) GetAirportFlightsArrivedWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivedResponse, error)

GetAirportFlightsArrivedWithResponse request returning *GetAirportFlightsArrivedResponse

func (*ClientWithResponses) GetAirportFlightsCountWithResponse

func (c *ClientWithResponses) GetAirportFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportFlightsCountResponse, error)

GetAirportFlightsCountWithResponse request returning *GetAirportFlightsCountResponse

func (*ClientWithResponses) GetAirportFlightsDepartedWithResponse

func (c *ClientWithResponses) GetAirportFlightsDepartedWithResponse(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDepartedResponse, error)

GetAirportFlightsDepartedWithResponse request returning *GetAirportFlightsDepartedResponse

func (*ClientWithResponses) GetAirportFlightsScheduledArrivalsWithResponse

func (c *ClientWithResponses) GetAirportFlightsScheduledArrivalsWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledArrivalsResponse, error)

GetAirportFlightsScheduledArrivalsWithResponse request returning *GetAirportFlightsScheduledArrivalsResponse

func (*ClientWithResponses) GetAirportFlightsScheduledDeparturesWithResponse

func (c *ClientWithResponses) GetAirportFlightsScheduledDeparturesWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledDeparturesResponse, error)

GetAirportFlightsScheduledDeparturesWithResponse request returning *GetAirportFlightsScheduledDeparturesResponse

func (*ClientWithResponses) GetAirportFlightsWithResponse

func (c *ClientWithResponses) GetAirportFlightsWithResponse(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsResponse, error)

GetAirportFlightsWithResponse request returning *GetAirportFlightsResponse

func (*ClientWithResponses) GetAirportWeatherForecastWithResponse

func (c *ClientWithResponses) GetAirportWeatherForecastWithResponse(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherForecastResponse, error)

GetAirportWeatherForecastWithResponse request returning *GetAirportWeatherForecastResponse

func (*ClientWithResponses) GetAirportWeatherObservationsWithResponse

func (c *ClientWithResponses) GetAirportWeatherObservationsWithResponse(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherObservationsResponse, error)

GetAirportWeatherObservationsWithResponse request returning *GetAirportWeatherObservationsResponse

func (*ClientWithResponses) GetAirportWithResponse

func (c *ClientWithResponses) GetAirportWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportResponse, error)

GetAirportWithResponse request returning *GetAirportResponse

func (*ClientWithResponses) GetAirportsCanonicalWithResponse

func (c *ClientWithResponses) GetAirportsCanonicalWithResponse(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*GetAirportsCanonicalResponse, error)

GetAirportsCanonicalWithResponse request returning *GetAirportsCanonicalResponse

func (*ClientWithResponses) GetAirportsNearAirportWithResponse

func (c *ClientWithResponses) GetAirportsNearAirportWithResponse(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*GetAirportsNearAirportResponse, error)

GetAirportsNearAirportWithResponse request returning *GetAirportsNearAirportResponse

func (*ClientWithResponses) GetAlertWithResponse

func (c *ClientWithResponses) GetAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetAlertResponse, error)

GetAlertWithResponse request returning *GetAlertResponse

func (*ClientWithResponses) GetAlertsEndpointWithResponse

func (c *ClientWithResponses) GetAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsEndpointResponse, error)

GetAlertsEndpointWithResponse request returning *GetAlertsEndpointResponse

func (*ClientWithResponses) GetAllAirportsWithResponse

func (c *ClientWithResponses) GetAllAirportsWithResponse(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*GetAllAirportsResponse, error)

GetAllAirportsWithResponse request returning *GetAllAirportsResponse

func (*ClientWithResponses) GetAllAlertsWithResponse

func (c *ClientWithResponses) GetAllAlertsWithResponse(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*GetAllAlertsResponse, error)

GetAllAlertsWithResponse request returning *GetAllAlertsResponse

func (*ClientWithResponses) GetAllDisruptionCountsWithResponse

func (c *ClientWithResponses) GetAllDisruptionCountsWithResponse(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetAllDisruptionCountsResponse, error)

GetAllDisruptionCountsWithResponse request returning *GetAllDisruptionCountsResponse

func (*ClientWithResponses) GetAllOperatorsWithResponse

func (c *ClientWithResponses) GetAllOperatorsWithResponse(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*GetAllOperatorsResponse, error)

GetAllOperatorsWithResponse request returning *GetAllOperatorsResponse

func (*ClientWithResponses) GetDelaysForAllAirportsWithResponse

func (c *ClientWithResponses) GetDelaysForAllAirportsWithResponse(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*GetDelaysForAllAirportsResponse, error)

GetDelaysForAllAirportsWithResponse request returning *GetDelaysForAllAirportsResponse

func (*ClientWithResponses) GetDisruptionCountsWithResponse

func (c *ClientWithResponses) GetDisruptionCountsWithResponse(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetDisruptionCountsResponse, error)

GetDisruptionCountsWithResponse request returning *GetDisruptionCountsResponse

func (*ClientWithResponses) GetFlightMapWithResponse

func (c *ClientWithResponses) GetFlightMapWithResponse(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*GetFlightMapResponse, error)

GetFlightMapWithResponse request returning *GetFlightMapResponse

func (*ClientWithResponses) GetFlightPositionWithForesightWithResponse

func (c *ClientWithResponses) GetFlightPositionWithForesightWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionWithForesightResponse, error)

GetFlightPositionWithForesightWithResponse request returning *GetFlightPositionWithForesightResponse

func (*ClientWithResponses) GetFlightPositionWithResponse

func (c *ClientWithResponses) GetFlightPositionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionResponse, error)

GetFlightPositionWithResponse request returning *GetFlightPositionResponse

func (*ClientWithResponses) GetFlightRouteWithResponse

func (c *ClientWithResponses) GetFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightRouteResponse, error)

GetFlightRouteWithResponse request returning *GetFlightRouteResponse

func (*ClientWithResponses) GetFlightTrackWithResponse

func (c *ClientWithResponses) GetFlightTrackWithResponse(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*GetFlightTrackResponse, error)

GetFlightTrackWithResponse request returning *GetFlightTrackResponse

func (*ClientWithResponses) GetFlightTypeWithResponse

func (c *ClientWithResponses) GetFlightTypeWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetFlightTypeResponse, error)

GetFlightTypeWithResponse request returning *GetFlightTypeResponse

func (*ClientWithResponses) GetFlightWithForesightWithResponse

func (c *ClientWithResponses) GetFlightWithForesightWithResponse(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightWithForesightResponse, error)

GetFlightWithForesightWithResponse request returning *GetFlightWithForesightResponse

func (*ClientWithResponses) GetFlightWithResponse

func (c *ClientWithResponses) GetFlightWithResponse(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*GetFlightResponse, error)

GetFlightWithResponse request returning *GetFlightResponse

func (*ClientWithResponses) GetFlightsBetweenAirportsWithResponse

func (c *ClientWithResponses) GetFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetFlightsBetweenAirportsResponse, error)

GetFlightsBetweenAirportsWithResponse request returning *GetFlightsBetweenAirportsResponse

func (*ClientWithResponses) GetFlightsByAdvancedSearchWithForesightWithResponse

func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithForesightWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchWithForesightResponse, error)

GetFlightsByAdvancedSearchWithForesightWithResponse request returning *GetFlightsByAdvancedSearchWithForesightResponse

func (*ClientWithResponses) GetFlightsByAdvancedSearchWithResponse

func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchResponse, error)

GetFlightsByAdvancedSearchWithResponse request returning *GetFlightsByAdvancedSearchResponse

func (*ClientWithResponses) GetFlightsByPositionSearchWithResponse

func (c *ClientWithResponses) GetFlightsByPositionSearchWithResponse(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByPositionSearchResponse, error)

GetFlightsByPositionSearchWithResponse request returning *GetFlightsByPositionSearchResponse

func (*ClientWithResponses) GetFlightsBySearchWithResponse

func (c *ClientWithResponses) GetFlightsBySearchWithResponse(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsBySearchResponse, error)

GetFlightsBySearchWithResponse request returning *GetFlightsBySearchResponse

func (*ClientWithResponses) GetFlightsCanonicalWithResponse

func (c *ClientWithResponses) GetFlightsCanonicalWithResponse(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*GetFlightsCanonicalResponse, error)

GetFlightsCanonicalWithResponse request returning *GetFlightsCanonicalResponse

func (*ClientWithResponses) GetFlightsCountBySearchWithResponse

func (c *ClientWithResponses) GetFlightsCountBySearchWithResponse(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsCountBySearchResponse, error)

GetFlightsCountBySearchWithResponse request returning *GetFlightsCountBySearchResponse

func (*ClientWithResponses) GetHistoryAircraftLastFlightWithResponse

func (c *ClientWithResponses) GetHistoryAircraftLastFlightWithResponse(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*GetHistoryAircraftLastFlightResponse, error)

GetHistoryAircraftLastFlightWithResponse request returning *GetHistoryAircraftLastFlightResponse

func (*ClientWithResponses) GetHistoryAirportsFlightsArrivedWithResponse

func (c *ClientWithResponses) GetHistoryAirportsFlightsArrivedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivedResponse, error)

GetHistoryAirportsFlightsArrivedWithResponse request returning *GetHistoryAirportsFlightsArrivedResponse

func (*ClientWithResponses) GetHistoryAirportsFlightsDepartedWithResponse

func (c *ClientWithResponses) GetHistoryAirportsFlightsDepartedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDepartedResponse, error)

GetHistoryAirportsFlightsDepartedWithResponse request returning *GetHistoryAirportsFlightsDepartedResponse

func (*ClientWithResponses) GetHistoryFlightMapWithResponse

func (c *ClientWithResponses) GetHistoryFlightMapWithResponse(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightMapResponse, error)

GetHistoryFlightMapWithResponse request returning *GetHistoryFlightMapResponse

func (*ClientWithResponses) GetHistoryFlightRouteWithResponse

func (c *ClientWithResponses) GetHistoryFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHistoryFlightRouteResponse, error)

GetHistoryFlightRouteWithResponse request returning *GetHistoryFlightRouteResponse

func (*ClientWithResponses) GetHistoryFlightTrackWithResponse

func (c *ClientWithResponses) GetHistoryFlightTrackWithResponse(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightTrackResponse, error)

GetHistoryFlightTrackWithResponse request returning *GetHistoryFlightTrackResponse

func (*ClientWithResponses) GetHistoryFlightWithResponse

func (c *ClientWithResponses) GetHistoryFlightWithResponse(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightResponse, error)

GetHistoryFlightWithResponse request returning *GetHistoryFlightResponse

func (*ClientWithResponses) GetHistoryFlightsBetweenAirportsWithResponse

func (c *ClientWithResponses) GetHistoryFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightsBetweenAirportsResponse, error)

GetHistoryFlightsBetweenAirportsWithResponse request returning *GetHistoryFlightsBetweenAirportsResponse

func (*ClientWithResponses) GetHistoryOperatorsFlightsWithResponse

func (c *ClientWithResponses) GetHistoryOperatorsFlightsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsResponse, error)

GetHistoryOperatorsFlightsWithResponse request returning *GetHistoryOperatorsFlightsResponse

func (*ClientWithResponses) GetNearbyAirportsWithResponse

func (c *ClientWithResponses) GetNearbyAirportsWithResponse(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*GetNearbyAirportsResponse, error)

GetNearbyAirportsWithResponse request returning *GetNearbyAirportsResponse

func (*ClientWithResponses) GetOperatorFlightsArrivedWithResponse

func (c *ClientWithResponses) GetOperatorFlightsArrivedWithResponse(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsArrivedResponse, error)

GetOperatorFlightsArrivedWithResponse request returning *GetOperatorFlightsArrivedResponse

func (*ClientWithResponses) GetOperatorFlightsCountWithResponse

func (c *ClientWithResponses) GetOperatorFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCountResponse, error)

GetOperatorFlightsCountWithResponse request returning *GetOperatorFlightsCountResponse

func (*ClientWithResponses) GetOperatorFlightsEnrouteWithResponse

func (c *ClientWithResponses) GetOperatorFlightsEnrouteWithResponse(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsEnrouteResponse, error)

GetOperatorFlightsEnrouteWithResponse request returning *GetOperatorFlightsEnrouteResponse

func (*ClientWithResponses) GetOperatorFlightsScheduledWithResponse

func (c *ClientWithResponses) GetOperatorFlightsScheduledWithResponse(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsScheduledResponse, error)

GetOperatorFlightsScheduledWithResponse request returning *GetOperatorFlightsScheduledResponse

func (*ClientWithResponses) GetOperatorFlightsWithResponse

func (c *ClientWithResponses) GetOperatorFlightsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsResponse, error)

GetOperatorFlightsWithResponse request returning *GetOperatorFlightsResponse

func (*ClientWithResponses) GetOperatorWithResponse

func (c *ClientWithResponses) GetOperatorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorResponse, error)

GetOperatorWithResponse request returning *GetOperatorResponse

func (*ClientWithResponses) GetOperatorsCanonicalWithResponse

func (c *ClientWithResponses) GetOperatorsCanonicalWithResponse(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*GetOperatorsCanonicalResponse, error)

GetOperatorsCanonicalWithResponse request returning *GetOperatorsCanonicalResponse

func (*ClientWithResponses) GetRoutesBetweenAirportsWithResponse

func (c *ClientWithResponses) GetRoutesBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetRoutesBetweenAirportsResponse, error)

GetRoutesBetweenAirportsWithResponse request returning *GetRoutesBetweenAirportsResponse

func (*ClientWithResponses) GetSchedulesByDateWithResponse

func (c *ClientWithResponses) GetSchedulesByDateWithResponse(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*GetSchedulesByDateResponse, error)

GetSchedulesByDateWithResponse request returning *GetSchedulesByDateResponse

func (*ClientWithResponses) PostFlightsByIdentWithBodyWithResponse

func (c *ClientWithResponses) PostFlightsByIdentWithBodyWithResponse(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)

PostFlightsByIdentWithBodyWithResponse request with arbitrary body returning *PostFlightsByIdentResponse

func (*ClientWithResponses) PostFlightsByIdentWithResponse added in v0.2.0

func (c *ClientWithResponses) PostFlightsByIdentWithResponse(ctx context.Context, ident string, body PostFlightsByIdentJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)

func (*ClientWithResponses) SetAlertsEndpointWithBodyWithResponse

func (c *ClientWithResponses) SetAlertsEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)

SetAlertsEndpointWithBodyWithResponse request with arbitrary body returning *SetAlertsEndpointResponse

func (*ClientWithResponses) SetAlertsEndpointWithResponse added in v0.2.0

func (c *ClientWithResponses) SetAlertsEndpointWithResponse(ctx context.Context, body SetAlertsEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)

func (*ClientWithResponses) UpdateAlertWithBodyWithResponse

func (c *ClientWithResponses) UpdateAlertWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)

UpdateAlertWithBodyWithResponse request with arbitrary body returning *UpdateAlertResponse

func (*ClientWithResponses) UpdateAlertWithResponse added in v0.2.0

func (c *ClientWithResponses) UpdateAlertWithResponse(ctx context.Context, id int, body UpdateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetAccountUsageWithResponse request
	GetAccountUsageWithResponse(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*GetAccountUsageResponse, error)

	// GetFlightTypeWithResponse request
	GetFlightTypeWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetFlightTypeResponse, error)

	// GetAircraftBlockedWithResponse request
	GetAircraftBlockedWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftBlockedResponse, error)

	// GetAircraftOwnerWithResponse request
	GetAircraftOwnerWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftOwnerResponse, error)

	// GetAllAirportsWithResponse request
	GetAllAirportsWithResponse(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*GetAllAirportsResponse, error)

	// GetDelaysForAllAirportsWithResponse request
	GetDelaysForAllAirportsWithResponse(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*GetDelaysForAllAirportsResponse, error)

	// GetNearbyAirportsWithResponse request
	GetNearbyAirportsWithResponse(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*GetNearbyAirportsResponse, error)

	// GetAirportWithResponse request
	GetAirportWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportResponse, error)

	// GetAirportsCanonicalWithResponse request
	GetAirportsCanonicalWithResponse(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*GetAirportsCanonicalResponse, error)

	// GetAirportDelaysWithResponse request
	GetAirportDelaysWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportDelaysResponse, error)

	// GetAirportFlightsWithResponse request
	GetAirportFlightsWithResponse(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsResponse, error)

	// GetAirportFlightsArrivedWithResponse request
	GetAirportFlightsArrivedWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivedResponse, error)

	// GetAirportFlightsCountWithResponse request
	GetAirportFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportFlightsCountResponse, error)

	// GetAirportFlightsDepartedWithResponse request
	GetAirportFlightsDepartedWithResponse(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDepartedResponse, error)

	// GetAirportFlightsScheduledArrivalsWithResponse request
	GetAirportFlightsScheduledArrivalsWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledArrivalsResponse, error)

	// GetAirportFlightsScheduledDeparturesWithResponse request
	GetAirportFlightsScheduledDeparturesWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledDeparturesResponse, error)

	// GetFlightsBetweenAirportsWithResponse request
	GetFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetFlightsBetweenAirportsResponse, error)

	// GetAirportsNearAirportWithResponse request
	GetAirportsNearAirportWithResponse(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*GetAirportsNearAirportResponse, error)

	// GetRoutesBetweenAirportsWithResponse request
	GetRoutesBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetRoutesBetweenAirportsResponse, error)

	// GetAirportWeatherForecastWithResponse request
	GetAirportWeatherForecastWithResponse(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherForecastResponse, error)

	// GetAirportWeatherObservationsWithResponse request
	GetAirportWeatherObservationsWithResponse(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherObservationsResponse, error)

	// GetAllAlertsWithResponse request
	GetAllAlertsWithResponse(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*GetAllAlertsResponse, error)

	// CreateAlertWithBodyWithResponse request with any body
	CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

	CreateAlertWithResponse(ctx context.Context, body CreateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)

	// DeleteAlertsEndpointWithResponse request
	DeleteAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAlertsEndpointResponse, error)

	// GetAlertsEndpointWithResponse request
	GetAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsEndpointResponse, error)

	// SetAlertsEndpointWithBodyWithResponse request with any body
	SetAlertsEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)

	SetAlertsEndpointWithResponse(ctx context.Context, body SetAlertsEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)

	// DeleteAlertWithResponse request
	DeleteAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error)

	// GetAlertWithResponse request
	GetAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetAlertResponse, error)

	// UpdateAlertWithBodyWithResponse request with any body
	UpdateAlertWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)

	UpdateAlertWithResponse(ctx context.Context, id int, body UpdateAlertJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)

	// GetAllDisruptionCountsWithResponse request
	GetAllDisruptionCountsWithResponse(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetAllDisruptionCountsResponse, error)

	// GetDisruptionCountsWithResponse request
	GetDisruptionCountsWithResponse(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetDisruptionCountsResponse, error)

	// GetFlightsBySearchWithResponse request
	GetFlightsBySearchWithResponse(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsBySearchResponse, error)

	// GetFlightsByAdvancedSearchWithResponse request
	GetFlightsByAdvancedSearchWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchResponse, error)

	// GetFlightsCountBySearchWithResponse request
	GetFlightsCountBySearchWithResponse(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsCountBySearchResponse, error)

	// GetFlightsByPositionSearchWithResponse request
	GetFlightsByPositionSearchWithResponse(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByPositionSearchResponse, error)

	// GetFlightWithResponse request
	GetFlightWithResponse(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*GetFlightResponse, error)

	// GetFlightsCanonicalWithResponse request
	GetFlightsCanonicalWithResponse(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*GetFlightsCanonicalResponse, error)

	// PostFlightsByIdentWithBodyWithResponse request with any body
	PostFlightsByIdentWithBodyWithResponse(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)

	PostFlightsByIdentWithResponse(ctx context.Context, ident string, body PostFlightsByIdentJSONRequestBody, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)

	// GetFlightMapWithResponse request
	GetFlightMapWithResponse(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*GetFlightMapResponse, error)

	// GetFlightPositionWithResponse request
	GetFlightPositionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionResponse, error)

	// GetFlightRouteWithResponse request
	GetFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightRouteResponse, error)

	// GetFlightTrackWithResponse request
	GetFlightTrackWithResponse(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*GetFlightTrackResponse, error)

	// GetFlightsByAdvancedSearchWithForesightWithResponse request
	GetFlightsByAdvancedSearchWithForesightWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchWithForesightResponse, error)

	// GetFlightWithForesightWithResponse request
	GetFlightWithForesightWithResponse(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightWithForesightResponse, error)

	// GetFlightPositionWithForesightWithResponse request
	GetFlightPositionWithForesightWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionWithForesightResponse, error)

	// GetHistoryAircraftLastFlightWithResponse request
	GetHistoryAircraftLastFlightWithResponse(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*GetHistoryAircraftLastFlightResponse, error)

	// GetHistoryAirportsFlightsArrivedWithResponse request
	GetHistoryAirportsFlightsArrivedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivedResponse, error)

	// GetHistoryAirportsFlightsDepartedWithResponse request
	GetHistoryAirportsFlightsDepartedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDepartedResponse, error)

	// GetHistoryFlightsBetweenAirportsWithResponse request
	GetHistoryFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightsBetweenAirportsResponse, error)

	// GetHistoryFlightWithResponse request
	GetHistoryFlightWithResponse(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightResponse, error)

	// GetHistoryFlightMapWithResponse request
	GetHistoryFlightMapWithResponse(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightMapResponse, error)

	// GetHistoryFlightRouteWithResponse request
	GetHistoryFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHistoryFlightRouteResponse, error)

	// GetHistoryFlightTrackWithResponse request
	GetHistoryFlightTrackWithResponse(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightTrackResponse, error)

	// GetHistoryOperatorsFlightsWithResponse request
	GetHistoryOperatorsFlightsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsResponse, error)

	// GetAllOperatorsWithResponse request
	GetAllOperatorsWithResponse(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*GetAllOperatorsResponse, error)

	// GetOperatorWithResponse request
	GetOperatorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorResponse, error)

	// GetOperatorsCanonicalWithResponse request
	GetOperatorsCanonicalWithResponse(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*GetOperatorsCanonicalResponse, error)

	// GetOperatorFlightsWithResponse request
	GetOperatorFlightsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsResponse, error)

	// GetOperatorFlightsArrivedWithResponse request
	GetOperatorFlightsArrivedWithResponse(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsArrivedResponse, error)

	// GetOperatorFlightsCountWithResponse request
	GetOperatorFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCountResponse, error)

	// GetOperatorFlightsEnrouteWithResponse request
	GetOperatorFlightsEnrouteWithResponse(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsEnrouteResponse, error)

	// GetOperatorFlightsScheduledWithResponse request
	GetOperatorFlightsScheduledWithResponse(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsScheduledResponse, error)

	// GetSchedulesByDateWithResponse request
	GetSchedulesByDateWithResponse(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*GetSchedulesByDateResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateAlertJSONBody added in v0.2.0

type CreateAlertJSONBody struct {
	// AircraftType Aircraft type ICAO code to alert on.
	AircraftType *string `json:"aircraft_type"`

	// Destination Destination airport ICAO, IATA, or LID code to alert on.
	Destination *string `json:"destination"`

	// End End date of alert (inclusive). Should be in departure airport's
	// timezone.
	End *openapi_types.Date `json:"end"`

	// Eta How many minutes before a flight's ETA that an alert should be
	// delivered. Alerts will only be delivered after the flight has been in
	// the air for at least 15 minutes. Set to 0 to disable.
	Eta    *int `json:"eta,omitempty"`
	Events *struct {
		// Arrival Whether alerts should be delivered on arrival. FlightAware
		// Global customers will also receive \"taxi stop\" Ready To Taxi™
		// alerts unless they've opted out.
		Arrival bool `json:"arrival"`

		// Cancelled Whether alerts should be delivered on cancellation
		// airline events. Both cancelled and uncancelled events
		// will generate alerts. A max of three cancelled alerts
		// and three uncancelled alerts will be sent for a
		// single configured cancelled alert. The cancelled and an
		// uncancelled alert count operate independently meaning
		// you can get a max of 3 for each of the cancelled and
		// uncancelled events.
		Cancelled bool `json:"cancelled"`

		// Departure Whether alerts should be delivered on departure. FlightAware
		// Global customers will also receive \"power on\" and \"taxi start\"
		// Ready To Taxi™ alerts unless they've opted out.
		Departure bool `json:"departure"`

		// Diverted Whether alerts should be delivered on diversion
		Diverted bool `json:"diverted"`

		// Filed Whether alerts should be delivered on filing
		Filed bool `json:"filed"`

		// HoldEnd Whether alerts should be delivered on end datetime of hold exit
		// (will be null for hold_entry event)
		HoldEnd bool `json:"hold_end"`

		// HoldStart Whether alerts should be delivered on start datetime of hold detection
		HoldStart bool `json:"hold_start"`

		// In Whether alerts should be delivered when aircraft enters arrival gate
		In bool `json:"in"`

		// Off Whether alerts should be delivered when aircraft leaves the runway
		Off bool `json:"off"`

		// On Whether alerts should be delivered when aircraft touches down on runway
		On bool `json:"on"`

		// Out Whether alerts should be delivered when aircraft leaves departure gate
		Out bool `json:"out"`
	} `json:"events,omitempty"`

	// Ident Ident to alert on. This value may be modified based on codeshare
	// resolution. If that occurs, the originally provided ident will be
	// preserved in the user_ident field.
	Ident *string `json:"ident"`

	// ImpendingArrival List of minutes before a flight's arrival time that alerts should be delivered.
	// Limited to 15 minutes after actual departure and available
	// throughout the duration of the flight. No more than 10
	// impending arrival alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingArrival *[]int `json:"impending_arrival"`

	// ImpendingDeparture List of minutes before a flight's departure time that alerts should be delivered.
	// Limited to 60 minutes prior to estimated departure until actual departure,
	// implying a valid range of 60 - 5 minutes. No more than 10 impending departure
	// alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingDeparture *[]int `json:"impending_departure"`

	// MaxWeekly Reject the new alert if the estimated number of triggered alerts
	// per week based on historical flight trends would exceed this value.
	// The threshold only considers alerts triggered by this alert config
	// (it is not a total for all previously configured alerts). Check is
	// only applied at alert creation/modification, and does and does not
	// prevent alerts from being delivered even if they exceed the given
	// amount. If your alert request is rejected, consider adding additional
	// filter criteria for the alert creation to further refine the config.
	// If max_weekly is not specified for a standard customer, we default the
	// max_weekly to 1000. For a premium customer, we default the max_weekly
	// to 4000.
	MaxWeekly *int `json:"max_weekly,omitempty"`

	// Origin Origin airport ICAO, IATA, or LID code to alert on.
	Origin *string `json:"origin"`

	// Start Start date of alert. Should be in departure airport's
	// timezone.
	Start *openapi_types.Date `json:"start"`

	// TargetUrl Alert specific URL to deliver to. If null, then the alert
	// will be delivered to the configured account-wide alert URL
	// target.
	TargetUrl *string `json:"target_url"`
}

CreateAlertJSONBody defines parameters for CreateAlert.

type CreateAlertJSONRequestBody added in v0.2.0

type CreateAlertJSONRequestBody CreateAlertJSONBody

CreateAlertJSONRequestBody defines body for CreateAlert for application/json ContentType.

type CreateAlertResponse

type CreateAlertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
}

func ParseCreateAlertResponse

func ParseCreateAlertResponse(rsp *http.Response) (*CreateAlertResponse, error)

ParseCreateAlertResponse parses an HTTP response from a CreateAlertWithResponse call

func (CreateAlertResponse) Status

func (r CreateAlertResponse) Status() string

Status returns HTTPResponse.Status

func (CreateAlertResponse) StatusCode

func (r CreateAlertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DelaysForAllAirports200Response added in v0.2.0

type DelaysForAllAirports200Response struct {
	Delays []struct {
		// Airport ICAO/IATA code of airport
		Airport string `json:"airport"`

		// Category Category of the largest delay. Possible values are:
		// * **weather** ex: low vis/fog, storms, wind
		// * **volume** ex: airspace or taxiway congestion
		// * **equipment_failure** ex: atc sytem outage or failure
		// * **security** ex: VIP movement
		// * **emergency** ex: accident event
		// * **runway** ex: runway change or occupancy problems
		// * **other** ex: taxiway maintenance event
		// * **atm** ex: air traffic management program in effect
		Category string `json:"category"`

		// Color Color of largest delay. Red when delay is geater than 1 hour. Yellow when
		// delay is between 15 minutes to an hour. Green when delay is between 0 to 15 minutes.
		Color DelaysForAllAirports200ResponseDelaysColor `json:"color"`

		// DelaySecs Duration of largest delay (seconds). This value is not intended to be
		// presented to users and should only be used for sorting results.
		DelaySecs int `json:"delay_secs"`

		// Reasons Reasons for the delay
		Reasons []struct {
			// Category Category for the delay. Some possible values are "weather", "traffic",
			// "equipment", etc.
			Category string `json:"category"`

			// Color Color indicating severity of delay
			Color DelaysForAllAirports200ResponseDelaysReasonsColor `json:"color"`

			// DelaySecs Duration of delay (seconds). This value is not intended to be
			// presented to users and should only be used for sorting results.
			DelaySecs int `json:"delay_secs"`

			// Reason Textual description of the cause of the delay
			Reason string `json:"reason"`
		} `json:"reasons"`
	} `json:"delays"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

DelaysForAllAirports200Response defines model for DelaysForAllAirports200Response.

type DelaysForAllAirports200ResponseDelaysColor added in v0.2.0

type DelaysForAllAirports200ResponseDelaysColor string

DelaysForAllAirports200ResponseDelaysColor Color of largest delay. Red when delay is geater than 1 hour. Yellow when delay is between 15 minutes to an hour. Green when delay is between 0 to 15 minutes.

const (
	DelaysForAllAirports200ResponseDelaysColorGreen  DelaysForAllAirports200ResponseDelaysColor = "green"
	DelaysForAllAirports200ResponseDelaysColorRed    DelaysForAllAirports200ResponseDelaysColor = "red"
	DelaysForAllAirports200ResponseDelaysColorYellow DelaysForAllAirports200ResponseDelaysColor = "yellow"
)

Defines values for DelaysForAllAirports200ResponseDelaysColor.

type DelaysForAllAirports200ResponseDelaysReasonsColor added in v0.2.0

type DelaysForAllAirports200ResponseDelaysReasonsColor string

DelaysForAllAirports200ResponseDelaysReasonsColor Color indicating severity of delay

const (
	DelaysForAllAirports200ResponseDelaysReasonsColorGreen  DelaysForAllAirports200ResponseDelaysReasonsColor = "green"
	DelaysForAllAirports200ResponseDelaysReasonsColorRed    DelaysForAllAirports200ResponseDelaysReasonsColor = "red"
	DelaysForAllAirports200ResponseDelaysReasonsColorYellow DelaysForAllAirports200ResponseDelaysReasonsColor = "yellow"
)

Defines values for DelaysForAllAirports200ResponseDelaysReasonsColor.

type DeleteAlertResponse

type DeleteAlertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
}

func ParseDeleteAlertResponse

func ParseDeleteAlertResponse(rsp *http.Response) (*DeleteAlertResponse, error)

ParseDeleteAlertResponse parses an HTTP response from a DeleteAlertWithResponse call

func (DeleteAlertResponse) Status

func (r DeleteAlertResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteAlertResponse) StatusCode

func (r DeleteAlertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteAlertsEndpointResponse

type DeleteAlertsEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
}

func ParseDeleteAlertsEndpointResponse

func ParseDeleteAlertsEndpointResponse(rsp *http.Response) (*DeleteAlertsEndpointResponse, error)

ParseDeleteAlertsEndpointResponse parses an HTTP response from a DeleteAlertsEndpointWithResponse call

func (DeleteAlertsEndpointResponse) Status

Status returns HTTPResponse.Status

func (DeleteAlertsEndpointResponse) StatusCode

func (r DeleteAlertsEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DisruptionCounts200Response added in v0.2.0

type DisruptionCounts200Response struct {
	// Cancellations The number of cancelled flights for this airline or airport.
	Cancellations int `json:"cancellations"`

	// Delays The number of delayed flights for this airline or airport.
	Delays int `json:"delays"`

	// EntityId Code for the airline or airport.
	EntityId *string `json:"entity_id"`

	// EntityName The name of the airline or airport.
	EntityName *string `json:"entity_name"`

	// Total Total number of originally scheduled flights for this airline or
	// airport.
	Total int `json:"total"`
}

DisruptionCounts200Response defines model for DisruptionCounts200Response.

type Flight200Response added in v0.2.0

type Flight200Response struct {
	Flights []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
		ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type Flight200ResponseFlightsType `json:"type"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

Flight200Response defines model for Flight200Response.

type Flight200ResponseFlightsType added in v0.2.0

type Flight200ResponseFlightsType string

Flight200ResponseFlightsType Whether this is a commercial or general aviation flight.

const (
	Flight200ResponseFlightsTypeAirline         Flight200ResponseFlightsType = "Airline"
	Flight200ResponseFlightsTypeGeneralAviation Flight200ResponseFlightsType = "General_Aviation"
)

Defines values for Flight200ResponseFlightsType.

type FlightMap200Response added in v0.2.0

type FlightMap200Response struct {
	Map []byte `json:"map"`
}

FlightMap200Response defines model for FlightMap200Response.

type FlightPosition200Response added in v0.2.0

type FlightPosition200Response struct {
	// ActualOff Actual runway departure time.
	ActualOff *time.Time `json:"actual_off"`

	// ActualOn Actual runway arrival time.
	ActualOn *time.Time `json:"actual_on"`

	// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
	// when the ICAO code is not known.
	AircraftType *string `json:"aircraft_type"`

	// BoundingBox List of 4 coordinates representing the edges of a box that entirely
	// contains this flight's positions. The order of the coordinates are the
	// top, left, bottom, and right sides of the box.
	BoundingBox *[]float32 `json:"bounding_box"`

	// Destination Information for this flight's destination airport.
	Destination *struct {
		// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
		AirportInfoUrl *string `json:"airport_info_url"`

		// City Closest city to the airport
		City *string `json:"city"`

		// Code ICAO/IATA/LID code or string indicating the location where
		// tracking of the flight began/ended for position-only flights.
		Code *string `json:"code"`

		// CodeIata IATA code
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO code
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID code
		CodeLid *string `json:"code_lid"`

		// Name Common name of airport
		Name *string `json:"name"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone *string `json:"timezone"`
	} `json:"destination"`

	// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
	// the flight is diverted, the new leg of the flight will have a duplicate
	// fa_flight_id.
	FaFlightId string `json:"fa_flight_id"`

	// FirstPositionTime Timestamp of when the first position for this flight was received.
	FirstPositionTime *time.Time `json:"first_position_time"`

	// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
	ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

	// Ident Either the operator code followed by the flight number for the flight
	// (for commercial flights) or the aircraft's registration (for general
	// aviation).
	Ident string `json:"ident"`

	// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
	IdentIata *string `json:"ident_iata"`

	// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
	IdentIcao *string `json:"ident_icao"`

	// IdentPrefix A one or two character identifier prefix code (Common values: G or GG
	// Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
	IdentPrefix *string `json:"ident_prefix"`

	// LastPosition Most recent position received for this flight.
	LastPosition *struct {
		// Altitude Aircraft altitude in hundreds of feet
		Altitude int `json:"altitude"`

		// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
		// altitude is being maintained.
		AltitudeChange FlightPosition200ResponseLastPositionAltitudeChange `json:"altitude_change"`

		// FaFlightId Unique identifier assigned by FlightAware to the flight with this
		// position. This field is only populated by the `/flights/search/positions`
		// (in other cases, the user will have already specified the fa_flight_id).
		FaFlightId *string `json:"fa_flight_id"`

		// Groundspeed Most recent groundspeed (knots)
		Groundspeed int `json:"groundspeed"`

		// Heading Aircraft heading in degrees (0-360)
		Heading *int `json:"heading"`

		// Latitude Most recent latitude position
		Latitude float32 `json:"latitude"`

		// Longitude Most recent longitude position
		Longitude float32 `json:"longitude"`

		// Timestamp Time that position was received
		Timestamp time.Time `json:"timestamp"`

		// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
		// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
		// S=space-based, V=virtual event
		UpdateType *FlightPosition200ResponseLastPositionUpdateType `json:"update_type"`
	} `json:"last_position"`

	// Origin Information for this flight's origin airport.
	Origin *struct {
		// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
		AirportInfoUrl *string `json:"airport_info_url"`

		// City Closest city to the airport
		City *string `json:"city"`

		// Code ICAO/IATA/LID code or string indicating the location where
		// tracking of the flight began/ended for position-only flights.
		Code *string `json:"code"`

		// CodeIata IATA code
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO code
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID code
		CodeLid *string `json:"code_lid"`

		// Name Common name of airport
		Name *string `json:"name"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone *string `json:"timezone"`
	} `json:"origin"`

	// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
	PredictedIn *time.Time `json:"predicted_in"`

	// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
	PredictedInSource *FlightPosition200ResponsePredictedInSource `json:"predicted_in_source"`

	// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
	PredictedOff *time.Time `json:"predicted_off"`

	// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
	PredictedOffSource *FlightPosition200ResponsePredictedOffSource `json:"predicted_off_source"`

	// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
	PredictedOn *time.Time `json:"predicted_on"`

	// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
	PredictedOnSource *FlightPosition200ResponsePredictedOnSource `json:"predicted_on_source"`

	// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
	PredictedOut *time.Time `json:"predicted_out"`

	// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
	PredictedOutSource *FlightPosition200ResponsePredictedOutSource `json:"predicted_out_source"`

	// Registration Aircraft registration (tail number) of the aircraft, when known. This field
	// is not populated by the `/flights/search`, `flights/{id}/position` and `/foresight/flights/{id}/position`
	// endpoints.
	Registration *string `json:"registration"`

	// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
	Waypoints []float32 `json:"waypoints"`
}

FlightPosition200Response defines model for FlightPosition200Response.

type FlightPosition200ResponseLastPositionAltitudeChange added in v0.2.0

type FlightPosition200ResponseLastPositionAltitudeChange string

FlightPosition200ResponseLastPositionAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightPosition200ResponseLastPositionAltitudeChangeC     FlightPosition200ResponseLastPositionAltitudeChange = "C"
	FlightPosition200ResponseLastPositionAltitudeChangeD     FlightPosition200ResponseLastPositionAltitudeChange = "D"
	FlightPosition200ResponseLastPositionAltitudeChangeMinus FlightPosition200ResponseLastPositionAltitudeChange = "-"
)

Defines values for FlightPosition200ResponseLastPositionAltitudeChange.

type FlightPosition200ResponseLastPositionUpdateType added in v0.2.0

type FlightPosition200ResponseLastPositionUpdateType string

FlightPosition200ResponseLastPositionUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightPosition200ResponseLastPositionUpdateTypeA           FlightPosition200ResponseLastPositionUpdateType = "A"
	FlightPosition200ResponseLastPositionUpdateTypeD           FlightPosition200ResponseLastPositionUpdateType = "D"
	FlightPosition200ResponseLastPositionUpdateTypeLessThannil FlightPosition200ResponseLastPositionUpdateType = "<nil>"
	FlightPosition200ResponseLastPositionUpdateTypeM           FlightPosition200ResponseLastPositionUpdateType = "M"
	FlightPosition200ResponseLastPositionUpdateTypeO           FlightPosition200ResponseLastPositionUpdateType = "O"
	FlightPosition200ResponseLastPositionUpdateTypeP           FlightPosition200ResponseLastPositionUpdateType = "P"
	FlightPosition200ResponseLastPositionUpdateTypeS           FlightPosition200ResponseLastPositionUpdateType = "S"
	FlightPosition200ResponseLastPositionUpdateTypeV           FlightPosition200ResponseLastPositionUpdateType = "V"
	FlightPosition200ResponseLastPositionUpdateTypeX           FlightPosition200ResponseLastPositionUpdateType = "X"
	FlightPosition200ResponseLastPositionUpdateTypeZ           FlightPosition200ResponseLastPositionUpdateType = "Z"
)

Defines values for FlightPosition200ResponseLastPositionUpdateType.

type FlightPosition200ResponsePredictedInSource added in v0.2.0

type FlightPosition200ResponsePredictedInSource string

FlightPosition200ResponsePredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.

const (
	FlightPosition200ResponsePredictedInSourceForesight         FlightPosition200ResponsePredictedInSource = "Foresight"
	FlightPosition200ResponsePredictedInSourceHistoricalAverage FlightPosition200ResponsePredictedInSource = "Historical Average"
	FlightPosition200ResponsePredictedInSourceLessThannil       FlightPosition200ResponsePredictedInSource = "<nil>"
)

Defines values for FlightPosition200ResponsePredictedInSource.

type FlightPosition200ResponsePredictedOffSource added in v0.2.0

type FlightPosition200ResponsePredictedOffSource string

FlightPosition200ResponsePredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.

const (
	FlightPosition200ResponsePredictedOffSourceForesight         FlightPosition200ResponsePredictedOffSource = "Foresight"
	FlightPosition200ResponsePredictedOffSourceHistoricalAverage FlightPosition200ResponsePredictedOffSource = "Historical Average"
	FlightPosition200ResponsePredictedOffSourceLessThannil       FlightPosition200ResponsePredictedOffSource = "<nil>"
)

Defines values for FlightPosition200ResponsePredictedOffSource.

type FlightPosition200ResponsePredictedOnSource added in v0.2.0

type FlightPosition200ResponsePredictedOnSource string

FlightPosition200ResponsePredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.

const (
	FlightPosition200ResponsePredictedOnSourceForesight         FlightPosition200ResponsePredictedOnSource = "Foresight"
	FlightPosition200ResponsePredictedOnSourceHistoricalAverage FlightPosition200ResponsePredictedOnSource = "Historical Average"
	FlightPosition200ResponsePredictedOnSourceLessThannil       FlightPosition200ResponsePredictedOnSource = "<nil>"
)

Defines values for FlightPosition200ResponsePredictedOnSource.

type FlightPosition200ResponsePredictedOutSource added in v0.2.0

type FlightPosition200ResponsePredictedOutSource string

FlightPosition200ResponsePredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.

const (
	FlightPosition200ResponsePredictedOutSourceForesight         FlightPosition200ResponsePredictedOutSource = "Foresight"
	FlightPosition200ResponsePredictedOutSourceHistoricalAverage FlightPosition200ResponsePredictedOutSource = "Historical Average"
	FlightPosition200ResponsePredictedOutSourceLessThannil       FlightPosition200ResponsePredictedOutSource = "<nil>"
)

Defines values for FlightPosition200ResponsePredictedOutSource.

type FlightPositionWithForesight200Response added in v0.2.0

type FlightPositionWithForesight200Response struct {
	// ActualOff Actual runway departure time.
	ActualOff *time.Time `json:"actual_off"`

	// ActualOn Actual runway arrival time.
	ActualOn *time.Time `json:"actual_on"`

	// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
	// when the ICAO code is not known.
	AircraftType *string `json:"aircraft_type"`

	// BoundingBox List of 4 coordinates representing the edges of a box that entirely
	// contains this flight's positions. The order of the coordinates are the
	// top, left, bottom, and right sides of the box.
	BoundingBox *[]float32 `json:"bounding_box"`

	// Destination Information for this flight's destination airport.
	Destination *struct {
		// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
		AirportInfoUrl *string `json:"airport_info_url"`

		// City Closest city to the airport
		City *string `json:"city"`

		// Code ICAO/IATA/LID code or string indicating the location where
		// tracking of the flight began/ended for position-only flights.
		Code *string `json:"code"`

		// CodeIata IATA code
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO code
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID code
		CodeLid *string `json:"code_lid"`

		// Name Common name of airport
		Name *string `json:"name"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone *string `json:"timezone"`
	} `json:"destination"`

	// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
	// the flight is diverted, the new leg of the flight will have a duplicate
	// fa_flight_id.
	FaFlightId string `json:"fa_flight_id"`

	// FirstPositionTime Timestamp of when the first position for this flight was received.
	FirstPositionTime *time.Time `json:"first_position_time"`

	// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
	ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

	// Ident Either the operator code followed by the flight number for the flight
	// (for commercial flights) or the aircraft's registration (for general
	// aviation).
	Ident string `json:"ident"`

	// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
	IdentIata *string `json:"ident_iata"`

	// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
	IdentIcao *string `json:"ident_icao"`

	// IdentPrefix A one or two character identifier prefix code (Common values: G or GG
	// Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
	IdentPrefix *string `json:"ident_prefix"`

	// LastPosition Most recent position received for this flight.
	LastPosition *struct {
		// Altitude Aircraft altitude in hundreds of feet
		Altitude int `json:"altitude"`

		// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
		// altitude is being maintained.
		AltitudeChange FlightPositionWithForesight200ResponseLastPositionAltitudeChange `json:"altitude_change"`

		// FaFlightId Unique identifier assigned by FlightAware to the flight with this
		// position. This field is only populated by the `/flights/search/positions`
		// (in other cases, the user will have already specified the fa_flight_id).
		FaFlightId *string `json:"fa_flight_id"`

		// Groundspeed Most recent groundspeed (knots)
		Groundspeed int `json:"groundspeed"`

		// Heading Aircraft heading in degrees (0-360)
		Heading *int `json:"heading"`

		// Latitude Most recent latitude position
		Latitude float32 `json:"latitude"`

		// Longitude Most recent longitude position
		Longitude float32 `json:"longitude"`

		// Timestamp Time that position was received
		Timestamp time.Time `json:"timestamp"`

		// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
		// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
		// S=space-based, V=virtual event
		UpdateType *FlightPositionWithForesight200ResponseLastPositionUpdateType `json:"update_type"`
	} `json:"last_position"`

	// Origin Information for this flight's origin airport.
	Origin *struct {
		// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
		AirportInfoUrl *string `json:"airport_info_url"`

		// City Closest city to the airport
		City *string `json:"city"`

		// Code ICAO/IATA/LID code or string indicating the location where
		// tracking of the flight began/ended for position-only flights.
		Code *string `json:"code"`

		// CodeIata IATA code
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO code
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID code
		CodeLid *string `json:"code_lid"`

		// Name Common name of airport
		Name *string `json:"name"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone *string `json:"timezone"`
	} `json:"origin"`

	// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
	PredictedIn *time.Time `json:"predicted_in"`

	// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
	PredictedInSource *FlightPositionWithForesight200ResponsePredictedInSource `json:"predicted_in_source"`

	// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
	PredictedOff *time.Time `json:"predicted_off"`

	// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
	PredictedOffSource *FlightPositionWithForesight200ResponsePredictedOffSource `json:"predicted_off_source"`

	// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
	PredictedOn *time.Time `json:"predicted_on"`

	// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
	PredictedOnSource *FlightPositionWithForesight200ResponsePredictedOnSource `json:"predicted_on_source"`

	// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
	PredictedOut *time.Time `json:"predicted_out"`

	// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
	PredictedOutSource *FlightPositionWithForesight200ResponsePredictedOutSource `json:"predicted_out_source"`

	// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
	PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`

	// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
	PredictedTaxiOutDurationSource *FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource `json:"predicted_taxi_out_duration_source"`

	// Registration Aircraft registration (tail number) of the aircraft, when known. This field
	// is not populated by the `/flights/search`, `flights/{id}/position` and `/foresight/flights/{id}/position`
	// endpoints.
	Registration *string `json:"registration"`

	// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
	Waypoints []float32 `json:"waypoints"`
}

FlightPositionWithForesight200Response defines model for FlightPositionWithForesight200Response.

type FlightPositionWithForesight200ResponseLastPositionAltitudeChange added in v0.2.0

type FlightPositionWithForesight200ResponseLastPositionAltitudeChange string

FlightPositionWithForesight200ResponseLastPositionAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightPositionWithForesight200ResponseLastPositionAltitudeChangeC     FlightPositionWithForesight200ResponseLastPositionAltitudeChange = "C"
	FlightPositionWithForesight200ResponseLastPositionAltitudeChangeD     FlightPositionWithForesight200ResponseLastPositionAltitudeChange = "D"
	FlightPositionWithForesight200ResponseLastPositionAltitudeChangeMinus FlightPositionWithForesight200ResponseLastPositionAltitudeChange = "-"
)

Defines values for FlightPositionWithForesight200ResponseLastPositionAltitudeChange.

type FlightPositionWithForesight200ResponseLastPositionUpdateType added in v0.2.0

type FlightPositionWithForesight200ResponseLastPositionUpdateType string

FlightPositionWithForesight200ResponseLastPositionUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeA           FlightPositionWithForesight200ResponseLastPositionUpdateType = "A"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeD           FlightPositionWithForesight200ResponseLastPositionUpdateType = "D"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeLessThannil FlightPositionWithForesight200ResponseLastPositionUpdateType = "<nil>"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeM           FlightPositionWithForesight200ResponseLastPositionUpdateType = "M"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeO           FlightPositionWithForesight200ResponseLastPositionUpdateType = "O"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeP           FlightPositionWithForesight200ResponseLastPositionUpdateType = "P"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeS           FlightPositionWithForesight200ResponseLastPositionUpdateType = "S"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeV           FlightPositionWithForesight200ResponseLastPositionUpdateType = "V"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeX           FlightPositionWithForesight200ResponseLastPositionUpdateType = "X"
	FlightPositionWithForesight200ResponseLastPositionUpdateTypeZ           FlightPositionWithForesight200ResponseLastPositionUpdateType = "Z"
)

Defines values for FlightPositionWithForesight200ResponseLastPositionUpdateType.

type FlightPositionWithForesight200ResponsePredictedInSource added in v0.2.0

type FlightPositionWithForesight200ResponsePredictedInSource string

FlightPositionWithForesight200ResponsePredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.

const (
	FlightPositionWithForesight200ResponsePredictedInSourceForesight         FlightPositionWithForesight200ResponsePredictedInSource = "Foresight"
	FlightPositionWithForesight200ResponsePredictedInSourceHistoricalAverage FlightPositionWithForesight200ResponsePredictedInSource = "Historical Average"
	FlightPositionWithForesight200ResponsePredictedInSourceLessThannil       FlightPositionWithForesight200ResponsePredictedInSource = "<nil>"
)

Defines values for FlightPositionWithForesight200ResponsePredictedInSource.

type FlightPositionWithForesight200ResponsePredictedOffSource added in v0.2.0

type FlightPositionWithForesight200ResponsePredictedOffSource string

FlightPositionWithForesight200ResponsePredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.

const (
	FlightPositionWithForesight200ResponsePredictedOffSourceForesight         FlightPositionWithForesight200ResponsePredictedOffSource = "Foresight"
	FlightPositionWithForesight200ResponsePredictedOffSourceHistoricalAverage FlightPositionWithForesight200ResponsePredictedOffSource = "Historical Average"
	FlightPositionWithForesight200ResponsePredictedOffSourceLessThannil       FlightPositionWithForesight200ResponsePredictedOffSource = "<nil>"
)

Defines values for FlightPositionWithForesight200ResponsePredictedOffSource.

type FlightPositionWithForesight200ResponsePredictedOnSource added in v0.2.0

type FlightPositionWithForesight200ResponsePredictedOnSource string

FlightPositionWithForesight200ResponsePredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.

const (
	FlightPositionWithForesight200ResponsePredictedOnSourceForesight         FlightPositionWithForesight200ResponsePredictedOnSource = "Foresight"
	FlightPositionWithForesight200ResponsePredictedOnSourceHistoricalAverage FlightPositionWithForesight200ResponsePredictedOnSource = "Historical Average"
	FlightPositionWithForesight200ResponsePredictedOnSourceLessThannil       FlightPositionWithForesight200ResponsePredictedOnSource = "<nil>"
)

Defines values for FlightPositionWithForesight200ResponsePredictedOnSource.

type FlightPositionWithForesight200ResponsePredictedOutSource added in v0.2.0

type FlightPositionWithForesight200ResponsePredictedOutSource string

FlightPositionWithForesight200ResponsePredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.

const (
	FlightPositionWithForesight200ResponsePredictedOutSourceForesight         FlightPositionWithForesight200ResponsePredictedOutSource = "Foresight"
	FlightPositionWithForesight200ResponsePredictedOutSourceHistoricalAverage FlightPositionWithForesight200ResponsePredictedOutSource = "Historical Average"
	FlightPositionWithForesight200ResponsePredictedOutSourceLessThannil       FlightPositionWithForesight200ResponsePredictedOutSource = "<nil>"
)

Defines values for FlightPositionWithForesight200ResponsePredictedOutSource.

type FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource added in v0.2.0

type FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource string

FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.

const (
	FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSourceForesight   FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource = "Foresight"
	FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSourceLessThannil FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource = "<nil>"
)

Defines values for FlightPositionWithForesight200ResponsePredictedTaxiOutDurationSource.

type FlightRoute200Response added in v0.2.0

type FlightRoute200Response struct {
	Fixes []struct {
		// DistanceFromOrigin Distance from origin airport stated in statue miles, nautical miles or
		// kilometers depending on FlightAware Account Display Options
		DistanceFromOrigin *float32 `json:"distance_from_origin"`

		// DistanceThisLeg Distance from the last point on Route stated in statue miles, nautical
		// miles or kilometers depending on FlightAware Account Display Options
		DistanceThisLeg *float32 `json:"distance_this_leg"`

		// DistanceToDestination Distance to destination airport stated in statue miles, nautical miles or
		// kilometers depending on FlightAware Account Display Options
		DistanceToDestination *float32 `json:"distance_to_destination"`

		// Latitude Longitude of the fix in decimal degrees
		Latitude *float32 `json:"latitude"`

		// Longitude Longitude of the fix in decimal degrees
		Longitude *float32 `json:"longitude"`

		// Name Name of the route fix
		Name string `json:"name"`

		// OutboundCourse Course in integer degrees from the current point to the next relative to true north
		OutboundCourse *float32 `json:"outbound_course"`

		// Type Type of the fix (ie Waypoint / Reporting Point)
		Type string `json:"type"`
	} `json:"fixes"`
	RouteDistance *string `json:"route_distance"`
}

FlightRoute200Response defines model for FlightRoute200Response.

type FlightTrack200Response added in v0.2.0

type FlightTrack200Response struct {
	// ActualDistance Distance (in miles) flown as of the latest position point. Will include distance
	// from the origin airport to the first position point. If the flight has
	// been completed, will include the distance from the last position point
	// to the destination airport. If surface positions are enabled, will include
	// distance traveled on the ground as part of the flight track and actual
	// distance flown calculations. Estimated positions present in the flight track
	// will not be part of the actual distance flown calculation.
	ActualDistance *int `json:"actual_distance"`
	Positions      *[]struct {
		// Altitude Aircraft altitude in hundreds of feet
		Altitude int `json:"altitude"`

		// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
		// altitude is being maintained.
		AltitudeChange FlightTrack200ResponsePositionsAltitudeChange `json:"altitude_change"`

		// FaFlightId Unique identifier assigned by FlightAware to the flight with this
		// position. This field is only populated by the `/flights/search/positions`
		// (in other cases, the user will have already specified the fa_flight_id).
		FaFlightId *string `json:"fa_flight_id"`

		// Groundspeed Most recent groundspeed (knots)
		Groundspeed int `json:"groundspeed"`

		// Heading Aircraft heading in degrees (0-360)
		Heading *int `json:"heading"`

		// Latitude Most recent latitude position
		Latitude float32 `json:"latitude"`

		// Longitude Most recent longitude position
		Longitude float32 `json:"longitude"`

		// Timestamp Time that position was received
		Timestamp time.Time `json:"timestamp"`

		// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
		// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
		// S=space-based, V=virtual event
		UpdateType *FlightTrack200ResponsePositionsUpdateType `json:"update_type"`
	} `json:"positions,omitempty"`
}

FlightTrack200Response defines model for FlightTrack200Response.

type FlightTrack200ResponsePositionsAltitudeChange added in v0.2.0

type FlightTrack200ResponsePositionsAltitudeChange string

FlightTrack200ResponsePositionsAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightTrack200ResponsePositionsAltitudeChangeC     FlightTrack200ResponsePositionsAltitudeChange = "C"
	FlightTrack200ResponsePositionsAltitudeChangeD     FlightTrack200ResponsePositionsAltitudeChange = "D"
	FlightTrack200ResponsePositionsAltitudeChangeMinus FlightTrack200ResponsePositionsAltitudeChange = "-"
)

Defines values for FlightTrack200ResponsePositionsAltitudeChange.

type FlightTrack200ResponsePositionsUpdateType added in v0.2.0

type FlightTrack200ResponsePositionsUpdateType string

FlightTrack200ResponsePositionsUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightTrack200ResponsePositionsUpdateTypeA           FlightTrack200ResponsePositionsUpdateType = "A"
	FlightTrack200ResponsePositionsUpdateTypeD           FlightTrack200ResponsePositionsUpdateType = "D"
	FlightTrack200ResponsePositionsUpdateTypeLessThannil FlightTrack200ResponsePositionsUpdateType = "<nil>"
	FlightTrack200ResponsePositionsUpdateTypeM           FlightTrack200ResponsePositionsUpdateType = "M"
	FlightTrack200ResponsePositionsUpdateTypeO           FlightTrack200ResponsePositionsUpdateType = "O"
	FlightTrack200ResponsePositionsUpdateTypeP           FlightTrack200ResponsePositionsUpdateType = "P"
	FlightTrack200ResponsePositionsUpdateTypeS           FlightTrack200ResponsePositionsUpdateType = "S"
	FlightTrack200ResponsePositionsUpdateTypeV           FlightTrack200ResponsePositionsUpdateType = "V"
	FlightTrack200ResponsePositionsUpdateTypeX           FlightTrack200ResponsePositionsUpdateType = "X"
	FlightTrack200ResponsePositionsUpdateTypeZ           FlightTrack200ResponsePositionsUpdateType = "Z"
)

Defines values for FlightTrack200ResponsePositionsUpdateType.

type FlightType200Response added in v0.2.0

type FlightType200Response struct {
	// Description A short description of the aircraft
	Description *string `json:"description,omitempty"`

	// EngineCount Number of engines
	EngineCount *int `json:"engine_count"`

	// EngineType Type of engine
	EngineType *string `json:"engine_type"`

	// Manufacturer Manufacturer of aircraft
	Manufacturer *string `json:"manufacturer,omitempty"`

	// Type Type of aircraft
	Type *string `json:"type,omitempty"`
}

FlightType200Response defines model for FlightType200Response.

type FlightWithForesight200Response added in v0.2.0

type FlightWithForesight200Response struct {
	Flights []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
		ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
		PredictedIn *time.Time `json:"predicted_in"`

		// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
		PredictedInSource *FlightWithForesight200ResponseFlightsPredictedInSource `json:"predicted_in_source"`

		// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
		PredictedOff *time.Time `json:"predicted_off"`

		// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
		PredictedOffSource *FlightWithForesight200ResponseFlightsPredictedOffSource `json:"predicted_off_source"`

		// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
		PredictedOn *time.Time `json:"predicted_on"`

		// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
		PredictedOnSource *FlightWithForesight200ResponseFlightsPredictedOnSource `json:"predicted_on_source"`

		// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
		PredictedOut *time.Time `json:"predicted_out"`

		// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
		PredictedOutSource *FlightWithForesight200ResponseFlightsPredictedOutSource `json:"predicted_out_source"`

		// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
		PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`

		// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
		PredictedTaxiOutDurationSource *FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource `json:"predicted_taxi_out_duration_source"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type FlightWithForesight200ResponseFlightsType `json:"type"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

FlightWithForesight200Response defines model for FlightWithForesight200Response.

type FlightWithForesight200ResponseFlightsPredictedInSource added in v0.2.0

type FlightWithForesight200ResponseFlightsPredictedInSource string

FlightWithForesight200ResponseFlightsPredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.

const (
	FlightWithForesight200ResponseFlightsPredictedInSourceForesight         FlightWithForesight200ResponseFlightsPredictedInSource = "Foresight"
	FlightWithForesight200ResponseFlightsPredictedInSourceHistoricalAverage FlightWithForesight200ResponseFlightsPredictedInSource = "Historical Average"
	FlightWithForesight200ResponseFlightsPredictedInSourceLessThannil       FlightWithForesight200ResponseFlightsPredictedInSource = "<nil>"
)

Defines values for FlightWithForesight200ResponseFlightsPredictedInSource.

type FlightWithForesight200ResponseFlightsPredictedOffSource added in v0.2.0

type FlightWithForesight200ResponseFlightsPredictedOffSource string

FlightWithForesight200ResponseFlightsPredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.

const (
	FlightWithForesight200ResponseFlightsPredictedOffSourceForesight         FlightWithForesight200ResponseFlightsPredictedOffSource = "Foresight"
	FlightWithForesight200ResponseFlightsPredictedOffSourceHistoricalAverage FlightWithForesight200ResponseFlightsPredictedOffSource = "Historical Average"
	FlightWithForesight200ResponseFlightsPredictedOffSourceLessThannil       FlightWithForesight200ResponseFlightsPredictedOffSource = "<nil>"
)

Defines values for FlightWithForesight200ResponseFlightsPredictedOffSource.

type FlightWithForesight200ResponseFlightsPredictedOnSource added in v0.2.0

type FlightWithForesight200ResponseFlightsPredictedOnSource string

FlightWithForesight200ResponseFlightsPredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.

const (
	FlightWithForesight200ResponseFlightsPredictedOnSourceForesight         FlightWithForesight200ResponseFlightsPredictedOnSource = "Foresight"
	FlightWithForesight200ResponseFlightsPredictedOnSourceHistoricalAverage FlightWithForesight200ResponseFlightsPredictedOnSource = "Historical Average"
	FlightWithForesight200ResponseFlightsPredictedOnSourceLessThannil       FlightWithForesight200ResponseFlightsPredictedOnSource = "<nil>"
)

Defines values for FlightWithForesight200ResponseFlightsPredictedOnSource.

type FlightWithForesight200ResponseFlightsPredictedOutSource added in v0.2.0

type FlightWithForesight200ResponseFlightsPredictedOutSource string

FlightWithForesight200ResponseFlightsPredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.

const (
	FlightWithForesight200ResponseFlightsPredictedOutSourceForesight         FlightWithForesight200ResponseFlightsPredictedOutSource = "Foresight"
	FlightWithForesight200ResponseFlightsPredictedOutSourceHistoricalAverage FlightWithForesight200ResponseFlightsPredictedOutSource = "Historical Average"
	FlightWithForesight200ResponseFlightsPredictedOutSourceLessThannil       FlightWithForesight200ResponseFlightsPredictedOutSource = "<nil>"
)

Defines values for FlightWithForesight200ResponseFlightsPredictedOutSource.

type FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource added in v0.2.0

type FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource string

FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.

const (
	FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSourceForesight   FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource = "Foresight"
	FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSourceLessThannil FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource = "<nil>"
)

Defines values for FlightWithForesight200ResponseFlightsPredictedTaxiOutDurationSource.

type FlightWithForesight200ResponseFlightsType added in v0.2.0

type FlightWithForesight200ResponseFlightsType string

FlightWithForesight200ResponseFlightsType Whether this is a commercial or general aviation flight.

const (
	FlightWithForesight200ResponseFlightsTypeAirline         FlightWithForesight200ResponseFlightsType = "Airline"
	FlightWithForesight200ResponseFlightsTypeGeneralAviation FlightWithForesight200ResponseFlightsType = "General_Aviation"
)

Defines values for FlightWithForesight200ResponseFlightsType.

type FlightsBetweenAirports200Response added in v0.2.0

type FlightsBetweenAirports200Response struct {
	Flights []struct {
		Segments []struct {
			// ActualIn Actual gate arrival time.
			ActualIn *time.Time `json:"actual_in"`

			// ActualOff Actual runway departure time.
			ActualOff *time.Time `json:"actual_off"`

			// ActualOn Actual runway arrival time.
			ActualOn *time.Time `json:"actual_on"`

			// ActualOut Actual gate departure time.
			ActualOut *time.Time `json:"actual_out"`

			// ActualRunwayOff Actual departure runway at origin, when known
			ActualRunwayOff *string `json:"actual_runway_off"`

			// ActualRunwayOn Actual arrival runway at destination, when known
			ActualRunwayOn *string `json:"actual_runway_on"`

			// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
			// when the ICAO code is not known.
			AircraftType *string `json:"aircraft_type"`

			// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
			// arrival time. If gate time is unavailable then based on runway arrival
			// time. A negative value indicates the flight is early.
			ArrivalDelay *int `json:"arrival_delay"`

			// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
			AtcIdent *string `json:"atc_ident"`

			// BaggageClaim Baggage claim location at the destination airport.
			BaggageClaim *string `json:"baggage_claim"`

			// Blocked Flag indicating whether this flight is blocked from public viewing.
			Blocked bool `json:"blocked"`

			// Cancelled Flag indicating that the flight is no longer being tracked by
			// FlightAware. There are a number of reasons this could happen
			// including cancellation by the airline, but that will not always be the
			// case.
			Cancelled bool `json:"cancelled"`

			// Codeshares List of any ICAO codeshares operating on this flight.
			Codeshares *[]string `json:"codeshares"`

			// CodesharesIata List of any IATA codeshares operating on this flight.
			CodesharesIata *[]string `json:"codeshares_iata"`

			// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
			// departure time. If gate time is unavailable then based on runway departure
			// time. A negative value indicates the flight is early.
			DepartureDelay *int `json:"departure_delay"`

			// Destination Information for this flight's destination airport.
			Destination *struct {
				// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
				AirportInfoUrl *string `json:"airport_info_url"`

				// City Closest city to the airport
				City *string `json:"city"`

				// Code ICAO/IATA/LID code or string indicating the location where
				// tracking of the flight began/ended for position-only flights.
				Code *string `json:"code"`

				// CodeIata IATA code
				CodeIata *string `json:"code_iata"`

				// CodeIcao ICAO code
				CodeIcao *string `json:"code_icao"`

				// CodeLid LID code
				CodeLid *string `json:"code_lid"`

				// Name Common name of airport
				Name *string `json:"name"`

				// Timezone Applicable timezone for the airport, in the TZ database format
				Timezone *string `json:"timezone"`
			} `json:"destination"`

			// Diverted Flag indicating whether this flight was diverted.
			Diverted bool `json:"diverted"`

			// EstimatedIn Estimated gate arrival time.
			EstimatedIn *time.Time `json:"estimated_in"`

			// EstimatedOff Estimated runway departure time.
			EstimatedOff *time.Time `json:"estimated_off"`

			// EstimatedOn Estimated runway arrival time.
			EstimatedOn *time.Time `json:"estimated_on"`

			// EstimatedOut Estimated gate departure time.
			EstimatedOut *time.Time `json:"estimated_out"`

			// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
			// the flight is diverted, the new leg of the flight will have a duplicate
			// fa_flight_id.
			FaFlightId string `json:"fa_flight_id"`

			// FiledAirspeed Filed IFR airspeed (knots).
			FiledAirspeed *int `json:"filed_airspeed"`

			// FiledAltitude Filed IFR altitude (100s of feet).
			FiledAltitude *int `json:"filed_altitude"`

			// FiledEte Runway-to-runway filed duration (seconds).
			FiledEte *int `json:"filed_ete"`

			// FlightNumber Bare flight number of the flight.
			FlightNumber *string `json:"flight_number"`

			// GateDestination Arrival gate at the destination airport.
			GateDestination *string `json:"gate_destination"`

			// GateOrigin Departure gate at the origin airport.
			GateOrigin *string `json:"gate_origin"`

			// Ident Either the operator code followed by the flight number for the flight
			// (for commercial flights) or the aircraft's registration (for general
			// aviation).
			Ident string `json:"ident"`

			// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
			IdentIata *string `json:"ident_iata"`

			// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
			IdentIcao *string `json:"ident_icao"`

			// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
			// aircraft serving this flight.
			InboundFaFlightId *string `json:"inbound_fa_flight_id"`

			// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
			Operator *string `json:"operator"`

			// OperatorIata IATA code of the operator of the flight.
			OperatorIata *string `json:"operator_iata"`

			// OperatorIcao ICAO code of the operator of the flight.
			OperatorIcao *string `json:"operator_icao"`

			// Origin Information for this flight's origin airport.
			Origin *struct {
				// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
				AirportInfoUrl *string `json:"airport_info_url"`

				// City Closest city to the airport
				City *string `json:"city"`

				// Code ICAO/IATA/LID code or string indicating the location where
				// tracking of the flight began/ended for position-only flights.
				Code *string `json:"code"`

				// CodeIata IATA code
				CodeIata *string `json:"code_iata"`

				// CodeIcao ICAO code
				CodeIcao *string `json:"code_icao"`

				// CodeLid LID code
				CodeLid *string `json:"code_lid"`

				// Name Common name of airport
				Name *string `json:"name"`

				// Timezone Applicable timezone for the airport, in the TZ database format
				Timezone *string `json:"timezone"`
			} `json:"origin"`

			// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
			PositionOnly bool `json:"position_only"`

			// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
			// for en route position-only flights.
			ProgressPercent *int `json:"progress_percent"`

			// Registration Aircraft registration (tail number) of the aircraft, when known.
			Registration *string `json:"registration"`

			// Route The textual description of the flight's route.
			Route *string `json:"route"`

			// RouteDistance Planned flight distance (statute miles) based on the filed route. May
			// vary from actual flown distance.
			RouteDistance *int `json:"route_distance"`

			// ScheduledIn Scheduled gate arrival time.
			ScheduledIn *time.Time `json:"scheduled_in"`

			// ScheduledOff Scheduled runway departure time.
			ScheduledOff *time.Time `json:"scheduled_off"`

			// ScheduledOn Scheduled runway arrival time.
			ScheduledOn *time.Time `json:"scheduled_on"`

			// ScheduledOut Scheduled gate departure time.
			ScheduledOut *time.Time `json:"scheduled_out"`

			// SeatsCabinBusiness Number of seats in the business class cabin.
			SeatsCabinBusiness *int `json:"seats_cabin_business"`

			// SeatsCabinCoach Number of seats in the coach cabin.
			SeatsCabinCoach *int `json:"seats_cabin_coach"`

			// SeatsCabinFirst Number of seats in the first class cabin.
			SeatsCabinFirst *int `json:"seats_cabin_first"`

			// Status Human-readable summary of flight status.
			Status string `json:"status"`

			// TerminalDestination Arrival terminal at the destination airport.
			TerminalDestination *string `json:"terminal_destination"`

			// TerminalOrigin Departure terminal at the origin airport.
			TerminalOrigin *string `json:"terminal_origin"`

			// Type Whether this is a commercial or general aviation flight.
			Type FlightsBetweenAirports200ResponseFlightsSegmentsType `json:"type"`
		} `json:"segments"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

FlightsBetweenAirports200Response defines model for FlightsBetweenAirports200Response.

type FlightsBetweenAirports200ResponseFlightsSegmentsType added in v0.2.0

type FlightsBetweenAirports200ResponseFlightsSegmentsType string

FlightsBetweenAirports200ResponseFlightsSegmentsType Whether this is a commercial or general aviation flight.

const (
	FlightsBetweenAirports200ResponseFlightsSegmentsTypeAirline         FlightsBetweenAirports200ResponseFlightsSegmentsType = "Airline"
	FlightsBetweenAirports200ResponseFlightsSegmentsTypeGeneralAviation FlightsBetweenAirports200ResponseFlightsSegmentsType = "General_Aviation"
)

Defines values for FlightsBetweenAirports200ResponseFlightsSegmentsType.

type FlightsByAdvancedSearchWithForesight200Response added in v0.2.0

type FlightsByAdvancedSearchWithForesight200Response struct {
	Flights []struct {
		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// BoundingBox List of 4 coordinates representing the edges of a box that entirely
		// contains this flight's positions. The order of the coordinates are the
		// top, left, bottom, and right sides of the box.
		BoundingBox *[]float32 `json:"bounding_box"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FirstPositionTime Timestamp of when the first position for this flight was received.
		FirstPositionTime *time.Time `json:"first_position_time"`

		// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
		ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// IdentPrefix A one or two character identifier prefix code (Common values: G or GG
		// Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
		IdentPrefix *string `json:"ident_prefix"`

		// LastPosition Most recent position received for this flight.
		LastPosition *struct {
			// Altitude Aircraft altitude in hundreds of feet
			Altitude int `json:"altitude"`

			// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
			// altitude is being maintained.
			AltitudeChange FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange `json:"altitude_change"`

			// FaFlightId Unique identifier assigned by FlightAware to the flight with this
			// position. This field is only populated by the `/flights/search/positions`
			// (in other cases, the user will have already specified the fa_flight_id).
			FaFlightId *string `json:"fa_flight_id"`

			// Groundspeed Most recent groundspeed (knots)
			Groundspeed int `json:"groundspeed"`

			// Heading Aircraft heading in degrees (0-360)
			Heading *int `json:"heading"`

			// Latitude Most recent latitude position
			Latitude float32 `json:"latitude"`

			// Longitude Most recent longitude position
			Longitude float32 `json:"longitude"`

			// Timestamp Time that position was received
			Timestamp time.Time `json:"timestamp"`

			// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
			// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
			// S=space-based, V=virtual event
			UpdateType *FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType `json:"update_type"`
		} `json:"last_position"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
		PredictedIn *time.Time `json:"predicted_in"`

		// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
		PredictedInSource *FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource `json:"predicted_in_source"`

		// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
		PredictedOff *time.Time `json:"predicted_off"`

		// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
		PredictedOffSource *FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource `json:"predicted_off_source"`

		// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
		PredictedOn *time.Time `json:"predicted_on"`

		// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
		PredictedOnSource *FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource `json:"predicted_on_source"`

		// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
		PredictedOut *time.Time `json:"predicted_out"`

		// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
		PredictedOutSource *FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource `json:"predicted_out_source"`

		// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
		PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`

		// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
		PredictedTaxiOutDurationSource *FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource `json:"predicted_taxi_out_duration_source"`

		// Registration Aircraft registration (tail number) of the aircraft, when known. This field
		// is not populated by the `/flights/search`, `flights/{id}/position` and `/foresight/flights/{id}/position`
		// endpoints.
		Registration *string `json:"registration"`

		// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
		Waypoints []float32 `json:"waypoints"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

FlightsByAdvancedSearchWithForesight200Response defines model for FlightsByAdvancedSearchWithForesight200Response.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange string

FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChangeC     FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange = "C"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChangeD     FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange = "D"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChangeMinus FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange = "-"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionAltitudeChange.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType string

FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeA           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "A"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeD           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "D"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeLessThannil FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "<nil>"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeM           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "M"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeO           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "O"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeP           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "P"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeS           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "S"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeV           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "V"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeX           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "X"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateTypeZ           FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType = "Z"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsLastPositionUpdateType.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource string

FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSourceForesight         FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource = "Foresight"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSourceHistoricalAverage FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource = "Historical Average"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSourceLessThannil       FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource = "<nil>"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedInSource.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource string

FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSourceForesight         FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource = "Foresight"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSourceHistoricalAverage FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource = "Historical Average"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSourceLessThannil       FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource = "<nil>"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOffSource.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource string

FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSourceForesight         FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource = "Foresight"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSourceHistoricalAverage FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource = "Historical Average"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSourceLessThannil       FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource = "<nil>"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOnSource.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource string

FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSourceForesight         FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource = "Foresight"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSourceHistoricalAverage FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource = "Historical Average"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSourceLessThannil       FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource = "<nil>"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedOutSource.

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource added in v0.2.0

type FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource string

FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.

const (
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSourceForesight   FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource = "Foresight"
	FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSourceLessThannil FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource = "<nil>"
)

Defines values for FlightsByAdvancedSearchWithForesight200ResponseFlightsPredictedTaxiOutDurationSource.

type FlightsByPositionSearch200Response added in v0.2.0

type FlightsByPositionSearch200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages  int `json:"num_pages"`
	Positions []struct {
		// Altitude Aircraft altitude in hundreds of feet
		Altitude int `json:"altitude"`

		// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
		// altitude is being maintained.
		AltitudeChange FlightsByPositionSearch200ResponsePositionsAltitudeChange `json:"altitude_change"`

		// FaFlightId Unique identifier assigned by FlightAware to the flight with this
		// position. This field is only populated by the `/flights/search/positions`
		// (in other cases, the user will have already specified the fa_flight_id).
		FaFlightId *string `json:"fa_flight_id"`

		// Groundspeed Most recent groundspeed (knots)
		Groundspeed int `json:"groundspeed"`

		// Heading Aircraft heading in degrees (0-360)
		Heading *int `json:"heading"`

		// Latitude Most recent latitude position
		Latitude float32 `json:"latitude"`

		// Longitude Most recent longitude position
		Longitude float32 `json:"longitude"`

		// Timestamp Time that position was received
		Timestamp time.Time `json:"timestamp"`

		// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
		// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
		// S=space-based, V=virtual event
		UpdateType *FlightsByPositionSearch200ResponsePositionsUpdateType `json:"update_type"`
	} `json:"positions"`
}

FlightsByPositionSearch200Response defines model for FlightsByPositionSearch200Response.

type FlightsByPositionSearch200ResponsePositionsAltitudeChange added in v0.2.0

type FlightsByPositionSearch200ResponsePositionsAltitudeChange string

FlightsByPositionSearch200ResponsePositionsAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightsByPositionSearch200ResponsePositionsAltitudeChangeC     FlightsByPositionSearch200ResponsePositionsAltitudeChange = "C"
	FlightsByPositionSearch200ResponsePositionsAltitudeChangeD     FlightsByPositionSearch200ResponsePositionsAltitudeChange = "D"
	FlightsByPositionSearch200ResponsePositionsAltitudeChangeMinus FlightsByPositionSearch200ResponsePositionsAltitudeChange = "-"
)

Defines values for FlightsByPositionSearch200ResponsePositionsAltitudeChange.

type FlightsByPositionSearch200ResponsePositionsUpdateType added in v0.2.0

type FlightsByPositionSearch200ResponsePositionsUpdateType string

FlightsByPositionSearch200ResponsePositionsUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightsByPositionSearch200ResponsePositionsUpdateTypeA           FlightsByPositionSearch200ResponsePositionsUpdateType = "A"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeD           FlightsByPositionSearch200ResponsePositionsUpdateType = "D"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeLessThannil FlightsByPositionSearch200ResponsePositionsUpdateType = "<nil>"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeM           FlightsByPositionSearch200ResponsePositionsUpdateType = "M"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeO           FlightsByPositionSearch200ResponsePositionsUpdateType = "O"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeP           FlightsByPositionSearch200ResponsePositionsUpdateType = "P"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeS           FlightsByPositionSearch200ResponsePositionsUpdateType = "S"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeV           FlightsByPositionSearch200ResponsePositionsUpdateType = "V"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeX           FlightsByPositionSearch200ResponsePositionsUpdateType = "X"
	FlightsByPositionSearch200ResponsePositionsUpdateTypeZ           FlightsByPositionSearch200ResponsePositionsUpdateType = "Z"
)

Defines values for FlightsByPositionSearch200ResponsePositionsUpdateType.

type FlightsBySearch200Response added in v0.2.0

type FlightsBySearch200Response struct {
	Flights []struct {
		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// BoundingBox List of 4 coordinates representing the edges of a box that entirely
		// contains this flight's positions. The order of the coordinates are the
		// top, left, bottom, and right sides of the box.
		BoundingBox *[]float32 `json:"bounding_box"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FirstPositionTime Timestamp of when the first position for this flight was received.
		FirstPositionTime *time.Time `json:"first_position_time"`

		// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
		ForesightPredictionsAvailable bool `json:"foresight_predictions_available"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// IdentPrefix A one or two character identifier prefix code (Common values: G or GG
		// Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
		IdentPrefix *string `json:"ident_prefix"`

		// LastPosition Most recent position received for this flight.
		LastPosition *struct {
			// Altitude Aircraft altitude in hundreds of feet
			Altitude int `json:"altitude"`

			// AltitudeChange C when the aircraft is climbing, D when descending, and - when the
			// altitude is being maintained.
			AltitudeChange FlightsBySearch200ResponseFlightsLastPositionAltitudeChange `json:"altitude_change"`

			// FaFlightId Unique identifier assigned by FlightAware to the flight with this
			// position. This field is only populated by the `/flights/search/positions`
			// (in other cases, the user will have already specified the fa_flight_id).
			FaFlightId *string `json:"fa_flight_id"`

			// Groundspeed Most recent groundspeed (knots)
			Groundspeed int `json:"groundspeed"`

			// Heading Aircraft heading in degrees (0-360)
			Heading *int `json:"heading"`

			// Latitude Most recent latitude position
			Latitude float32 `json:"latitude"`

			// Longitude Most recent longitude position
			Longitude float32 `json:"longitude"`

			// Timestamp Time that position was received
			Timestamp time.Time `json:"timestamp"`

			// UpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration,
			// D=datalink, X=surface and near surface (ADS-B and ASDE-X),
			// S=space-based, V=virtual event
			UpdateType *FlightsBySearch200ResponseFlightsLastPositionUpdateType `json:"update_type"`
		} `json:"last_position"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
		PredictedIn *time.Time `json:"predicted_in"`

		// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
		PredictedInSource *FlightsBySearch200ResponseFlightsPredictedInSource `json:"predicted_in_source"`

		// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
		PredictedOff *time.Time `json:"predicted_off"`

		// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
		PredictedOffSource *FlightsBySearch200ResponseFlightsPredictedOffSource `json:"predicted_off_source"`

		// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
		PredictedOn *time.Time `json:"predicted_on"`

		// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
		PredictedOnSource *FlightsBySearch200ResponseFlightsPredictedOnSource `json:"predicted_on_source"`

		// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
		PredictedOut *time.Time `json:"predicted_out"`

		// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
		PredictedOutSource *FlightsBySearch200ResponseFlightsPredictedOutSource `json:"predicted_out_source"`

		// Registration Aircraft registration (tail number) of the aircraft, when known. This field
		// is not populated by the `/flights/search`, `flights/{id}/position` and `/foresight/flights/{id}/position`
		// endpoints.
		Registration *string `json:"registration"`

		// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
		Waypoints []float32 `json:"waypoints"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

FlightsBySearch200Response defines model for FlightsBySearch200Response.

type FlightsBySearch200ResponseFlightsLastPositionAltitudeChange added in v0.2.0

type FlightsBySearch200ResponseFlightsLastPositionAltitudeChange string

FlightsBySearch200ResponseFlightsLastPositionAltitudeChange C when the aircraft is climbing, D when descending, and - when the altitude is being maintained.

const (
	FlightsBySearch200ResponseFlightsLastPositionAltitudeChangeC     FlightsBySearch200ResponseFlightsLastPositionAltitudeChange = "C"
	FlightsBySearch200ResponseFlightsLastPositionAltitudeChangeD     FlightsBySearch200ResponseFlightsLastPositionAltitudeChange = "D"
	FlightsBySearch200ResponseFlightsLastPositionAltitudeChangeMinus FlightsBySearch200ResponseFlightsLastPositionAltitudeChange = "-"
)

Defines values for FlightsBySearch200ResponseFlightsLastPositionAltitudeChange.

type FlightsBySearch200ResponseFlightsLastPositionUpdateType added in v0.2.0

type FlightsBySearch200ResponseFlightsLastPositionUpdateType string

FlightsBySearch200ResponseFlightsLastPositionUpdateType P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event

const (
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeA           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "A"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeD           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "D"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeLessThannil FlightsBySearch200ResponseFlightsLastPositionUpdateType = "<nil>"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeM           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "M"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeO           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "O"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeP           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "P"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeS           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "S"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeV           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "V"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeX           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "X"
	FlightsBySearch200ResponseFlightsLastPositionUpdateTypeZ           FlightsBySearch200ResponseFlightsLastPositionUpdateType = "Z"
)

Defines values for FlightsBySearch200ResponseFlightsLastPositionUpdateType.

type FlightsBySearch200ResponseFlightsPredictedInSource added in v0.2.0

type FlightsBySearch200ResponseFlightsPredictedInSource string

FlightsBySearch200ResponseFlightsPredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.

const (
	FlightsBySearch200ResponseFlightsPredictedInSourceForesight         FlightsBySearch200ResponseFlightsPredictedInSource = "Foresight"
	FlightsBySearch200ResponseFlightsPredictedInSourceHistoricalAverage FlightsBySearch200ResponseFlightsPredictedInSource = "Historical Average"
	FlightsBySearch200ResponseFlightsPredictedInSourceLessThannil       FlightsBySearch200ResponseFlightsPredictedInSource = "<nil>"
)

Defines values for FlightsBySearch200ResponseFlightsPredictedInSource.

type FlightsBySearch200ResponseFlightsPredictedOffSource added in v0.2.0

type FlightsBySearch200ResponseFlightsPredictedOffSource string

FlightsBySearch200ResponseFlightsPredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.

const (
	FlightsBySearch200ResponseFlightsPredictedOffSourceForesight         FlightsBySearch200ResponseFlightsPredictedOffSource = "Foresight"
	FlightsBySearch200ResponseFlightsPredictedOffSourceHistoricalAverage FlightsBySearch200ResponseFlightsPredictedOffSource = "Historical Average"
	FlightsBySearch200ResponseFlightsPredictedOffSourceLessThannil       FlightsBySearch200ResponseFlightsPredictedOffSource = "<nil>"
)

Defines values for FlightsBySearch200ResponseFlightsPredictedOffSource.

type FlightsBySearch200ResponseFlightsPredictedOnSource added in v0.2.0

type FlightsBySearch200ResponseFlightsPredictedOnSource string

FlightsBySearch200ResponseFlightsPredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.

const (
	FlightsBySearch200ResponseFlightsPredictedOnSourceForesight         FlightsBySearch200ResponseFlightsPredictedOnSource = "Foresight"
	FlightsBySearch200ResponseFlightsPredictedOnSourceHistoricalAverage FlightsBySearch200ResponseFlightsPredictedOnSource = "Historical Average"
	FlightsBySearch200ResponseFlightsPredictedOnSourceLessThannil       FlightsBySearch200ResponseFlightsPredictedOnSource = "<nil>"
)

Defines values for FlightsBySearch200ResponseFlightsPredictedOnSource.

type FlightsBySearch200ResponseFlightsPredictedOutSource added in v0.2.0

type FlightsBySearch200ResponseFlightsPredictedOutSource string

FlightsBySearch200ResponseFlightsPredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.

const (
	FlightsBySearch200ResponseFlightsPredictedOutSourceForesight         FlightsBySearch200ResponseFlightsPredictedOutSource = "Foresight"
	FlightsBySearch200ResponseFlightsPredictedOutSourceHistoricalAverage FlightsBySearch200ResponseFlightsPredictedOutSource = "Historical Average"
	FlightsBySearch200ResponseFlightsPredictedOutSourceLessThannil       FlightsBySearch200ResponseFlightsPredictedOutSource = "<nil>"
)

Defines values for FlightsBySearch200ResponseFlightsPredictedOutSource.

type FlightsBySearch400Response added in v0.2.0

type FlightsBySearch400Response struct {
	// Detail More detailed description of the error, possibly including information
	// about specific invalid fields or remediation steps.
	Detail string `json:"detail"`

	// Reason Error type name directly from the backend.
	Reason string `json:"reason"`

	// Status The HTTP response code returned as part of the error.
	Status int `json:"status"`

	// Title Short summary of the type of error encountered.
	Title string `json:"title"`
}

FlightsBySearch400Response defines model for FlightsBySearch400Response.

type FlightsCanonical200Response added in v0.2.0

type FlightsCanonical200Response struct {
	Idents []struct {
		// Ident Canonical ident
		Ident string `json:"ident"`

		// IdentType Type of ident given in id
		IdentType FlightsCanonical200ResponseIdentsIdentType `json:"ident_type"`
	} `json:"idents"`
}

FlightsCanonical200Response defines model for FlightsCanonical200Response.

type FlightsCanonical200ResponseIdentsIdentType added in v0.2.0

type FlightsCanonical200ResponseIdentsIdentType string

FlightsCanonical200ResponseIdentsIdentType Type of ident given in id

const (
	FlightsCanonical200ResponseIdentsIdentTypeDesignator   FlightsCanonical200ResponseIdentsIdentType = "designator"
	FlightsCanonical200ResponseIdentsIdentTypeRegistration FlightsCanonical200ResponseIdentsIdentType = "registration"
)

Defines values for FlightsCanonical200ResponseIdentsIdentType.

type FlightsCountBySearch200Response added in v0.2.0

type FlightsCountBySearch200Response struct {
	Count int `json:"count"`
}

FlightsCountBySearch200Response defines model for FlightsCountBySearch200Response.

type GetAccountUsageParams

type GetAccountUsageParams struct {
	// Start Datetime or date to start gathering usage data from. If left blank,
	// will default to 1 year into the past. Has a maximum value of 1 year into
	// the past. If using date instead of datetime, then the time will default to 00:00:00Z.
	// Thus, the next day's date should be specified if one day of data is desired when
	// using date instead of datetime.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End Datetime or date to end gathering usage data from. If left blank,
	// will default to the current time. Has a maximum value of 1 year into the past
	// If using date instead of datetime, then the time will default to 00:00:00Z.
	// Thus, the next day's date should be specified if one day of data is desired when
	// using date instead of datetime.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// AllKeys Flag to determine which key(s) to get usage data for. If False, data for the key
	// that made the request will be retrieved. If True, data for all keys
	// associated with the account will be retrieved.
	AllKeys *bool `form:"all_keys,omitempty" json:"all_keys,omitempty"`
}

GetAccountUsageParams defines parameters for GetAccountUsage.

type GetAccountUsageResponse

type GetAccountUsageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AccountUsage200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAccountUsageResponse

func ParseGetAccountUsageResponse(rsp *http.Response) (*GetAccountUsageResponse, error)

ParseGetAccountUsageResponse parses an HTTP response from a GetAccountUsageWithResponse call

func (GetAccountUsageResponse) Status

func (r GetAccountUsageResponse) Status() string

Status returns HTTPResponse.Status

func (GetAccountUsageResponse) StatusCode

func (r GetAccountUsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAircraftBlockedResponse

type GetAircraftBlockedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AircraftBlocked200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAircraftBlockedResponse

func ParseGetAircraftBlockedResponse(rsp *http.Response) (*GetAircraftBlockedResponse, error)

ParseGetAircraftBlockedResponse parses an HTTP response from a GetAircraftBlockedWithResponse call

func (GetAircraftBlockedResponse) Status

Status returns HTTPResponse.Status

func (GetAircraftBlockedResponse) StatusCode

func (r GetAircraftBlockedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAircraftOwnerResponse

type GetAircraftOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AircraftOwner200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAircraftOwnerResponse

func ParseGetAircraftOwnerResponse(rsp *http.Response) (*GetAircraftOwnerResponse, error)

ParseGetAircraftOwnerResponse parses an HTTP response from a GetAircraftOwnerWithResponse call

func (GetAircraftOwnerResponse) Status

func (r GetAircraftOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (GetAircraftOwnerResponse) StatusCode

func (r GetAircraftOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportDelaysResponse

type GetAirportDelaysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportDelays200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportDelaysResponse

func ParseGetAirportDelaysResponse(rsp *http.Response) (*GetAirportDelaysResponse, error)

ParseGetAirportDelaysResponse parses an HTTP response from a GetAirportDelaysWithResponse call

func (GetAirportDelaysResponse) Status

func (r GetAirportDelaysResponse) Status() string

Status returns HTTPResponse.Status

func (GetAirportDelaysResponse) StatusCode

func (r GetAirportDelaysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsArrivedParams

type GetAirportFlightsArrivedParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetAirportFlightsArrivedParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportFlightsArrivedParams defines parameters for GetAirportFlightsArrived.

type GetAirportFlightsArrivedParamsType

type GetAirportFlightsArrivedParamsType string

GetAirportFlightsArrivedParamsType defines parameters for GetAirportFlightsArrived.

const (
	GetAirportFlightsArrivedParamsTypeAirline         GetAirportFlightsArrivedParamsType = "Airline"
	GetAirportFlightsArrivedParamsTypeGeneralAviation GetAirportFlightsArrivedParamsType = "General_Aviation"
)

Defines values for GetAirportFlightsArrivedParamsType.

type GetAirportFlightsArrivedResponse

type GetAirportFlightsArrivedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsArrived200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsArrivedResponse

func ParseGetAirportFlightsArrivedResponse(rsp *http.Response) (*GetAirportFlightsArrivedResponse, error)

ParseGetAirportFlightsArrivedResponse parses an HTTP response from a GetAirportFlightsArrivedWithResponse call

func (GetAirportFlightsArrivedResponse) Status

Status returns HTTPResponse.Status

func (GetAirportFlightsArrivedResponse) StatusCode

func (r GetAirportFlightsArrivedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsCountResponse

type GetAirportFlightsCountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsCount200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsCountResponse

func ParseGetAirportFlightsCountResponse(rsp *http.Response) (*GetAirportFlightsCountResponse, error)

ParseGetAirportFlightsCountResponse parses an HTTP response from a GetAirportFlightsCountWithResponse call

func (GetAirportFlightsCountResponse) Status

Status returns HTTPResponse.Status

func (GetAirportFlightsCountResponse) StatusCode

func (r GetAirportFlightsCountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsDepartedParams

type GetAirportFlightsDepartedParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetAirportFlightsDepartedParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportFlightsDepartedParams defines parameters for GetAirportFlightsDeparted.

type GetAirportFlightsDepartedParamsType

type GetAirportFlightsDepartedParamsType string

GetAirportFlightsDepartedParamsType defines parameters for GetAirportFlightsDeparted.

const (
	GetAirportFlightsDepartedParamsTypeAirline         GetAirportFlightsDepartedParamsType = "Airline"
	GetAirportFlightsDepartedParamsTypeGeneralAviation GetAirportFlightsDepartedParamsType = "General_Aviation"
)

Defines values for GetAirportFlightsDepartedParamsType.

type GetAirportFlightsDepartedResponse

type GetAirportFlightsDepartedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsDeparted200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsDepartedResponse

func ParseGetAirportFlightsDepartedResponse(rsp *http.Response) (*GetAirportFlightsDepartedResponse, error)

ParseGetAirportFlightsDepartedResponse parses an HTTP response from a GetAirportFlightsDepartedWithResponse call

func (GetAirportFlightsDepartedResponse) Status

Status returns HTTPResponse.Status

func (GetAirportFlightsDepartedResponse) StatusCode

func (r GetAirportFlightsDepartedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsParams

type GetAirportFlightsParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetAirportFlightsParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportFlightsParams defines parameters for GetAirportFlights.

type GetAirportFlightsParamsType

type GetAirportFlightsParamsType string

GetAirportFlightsParamsType defines parameters for GetAirportFlights.

const (
	GetAirportFlightsParamsTypeAirline         GetAirportFlightsParamsType = "Airline"
	GetAirportFlightsParamsTypeGeneralAviation GetAirportFlightsParamsType = "General_Aviation"
)

Defines values for GetAirportFlightsParamsType.

type GetAirportFlightsResponse

type GetAirportFlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlights200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsResponse

func ParseGetAirportFlightsResponse(rsp *http.Response) (*GetAirportFlightsResponse, error)

ParseGetAirportFlightsResponse parses an HTTP response from a GetAirportFlightsWithResponse call

func (GetAirportFlightsResponse) Status

func (r GetAirportFlightsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAirportFlightsResponse) StatusCode

func (r GetAirportFlightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsScheduledArrivalsParams

type GetAirportFlightsScheduledArrivalsParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetAirportFlightsScheduledArrivalsParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportFlightsScheduledArrivalsParams defines parameters for GetAirportFlightsScheduledArrivals.

type GetAirportFlightsScheduledArrivalsParamsType

type GetAirportFlightsScheduledArrivalsParamsType string

GetAirportFlightsScheduledArrivalsParamsType defines parameters for GetAirportFlightsScheduledArrivals.

const (
	GetAirportFlightsScheduledArrivalsParamsTypeAirline         GetAirportFlightsScheduledArrivalsParamsType = "Airline"
	GetAirportFlightsScheduledArrivalsParamsTypeGeneralAviation GetAirportFlightsScheduledArrivalsParamsType = "General_Aviation"
)

Defines values for GetAirportFlightsScheduledArrivalsParamsType.

type GetAirportFlightsScheduledArrivalsResponse

type GetAirportFlightsScheduledArrivalsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsScheduledArrivals200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsScheduledArrivalsResponse

func ParseGetAirportFlightsScheduledArrivalsResponse(rsp *http.Response) (*GetAirportFlightsScheduledArrivalsResponse, error)

ParseGetAirportFlightsScheduledArrivalsResponse parses an HTTP response from a GetAirportFlightsScheduledArrivalsWithResponse call

func (GetAirportFlightsScheduledArrivalsResponse) Status

Status returns HTTPResponse.Status

func (GetAirportFlightsScheduledArrivalsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAirportFlightsScheduledDeparturesParams

type GetAirportFlightsScheduledDeparturesParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetAirportFlightsScheduledDeparturesParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportFlightsScheduledDeparturesParams defines parameters for GetAirportFlightsScheduledDepartures.

type GetAirportFlightsScheduledDeparturesParamsType

type GetAirportFlightsScheduledDeparturesParamsType string

GetAirportFlightsScheduledDeparturesParamsType defines parameters for GetAirportFlightsScheduledDepartures.

const (
	GetAirportFlightsScheduledDeparturesParamsTypeAirline         GetAirportFlightsScheduledDeparturesParamsType = "Airline"
	GetAirportFlightsScheduledDeparturesParamsTypeGeneralAviation GetAirportFlightsScheduledDeparturesParamsType = "General_Aviation"
)

Defines values for GetAirportFlightsScheduledDeparturesParamsType.

type GetAirportFlightsScheduledDeparturesResponse

type GetAirportFlightsScheduledDeparturesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsScheduledDepartures200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportFlightsScheduledDeparturesResponse

func ParseGetAirportFlightsScheduledDeparturesResponse(rsp *http.Response) (*GetAirportFlightsScheduledDeparturesResponse, error)

ParseGetAirportFlightsScheduledDeparturesResponse parses an HTTP response from a GetAirportFlightsScheduledDeparturesWithResponse call

func (GetAirportFlightsScheduledDeparturesResponse) Status

Status returns HTTPResponse.Status

func (GetAirportFlightsScheduledDeparturesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAirportResponse

type GetAirportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportWithAlternatives
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportResponse

func ParseGetAirportResponse(rsp *http.Response) (*GetAirportResponse, error)

ParseGetAirportResponse parses an HTTP response from a GetAirportWithResponse call

func (GetAirportResponse) Status

func (r GetAirportResponse) Status() string

Status returns HTTPResponse.Status

func (GetAirportResponse) StatusCode

func (r GetAirportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportWeatherForecastParams

type GetAirportWeatherForecastParams struct {
	// Timestamp Timestamp from which to begin returning weather data in a 1 day range.
	// Because weather data is returned in reverse chronological order, all
	// returned weather reports will be from before this timestamp. If unspecified,
	// weather is returned starting from now up to or less than the user history limit,
	// normally 14 days.
	Timestamp *time.Time `form:"timestamp,omitempty" json:"timestamp,omitempty"`

	// ReturnNearbyWeather If the requested airport does not have a weather conditions report then
	// the weather for the nearest airport within 30 miles will be returned
	// instead.
	ReturnNearbyWeather *bool `form:"return_nearby_weather,omitempty" json:"return_nearby_weather,omitempty"`
}

GetAirportWeatherForecastParams defines parameters for GetAirportWeatherForecast.

type GetAirportWeatherForecastResponse

type GetAirportWeatherForecastResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportWeatherForecast200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetAirportWeatherForecastResponse

func ParseGetAirportWeatherForecastResponse(rsp *http.Response) (*GetAirportWeatherForecastResponse, error)

ParseGetAirportWeatherForecastResponse parses an HTTP response from a GetAirportWeatherForecastWithResponse call

func (GetAirportWeatherForecastResponse) Status

Status returns HTTPResponse.Status

func (GetAirportWeatherForecastResponse) StatusCode

func (r GetAirportWeatherForecastResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportWeatherObservationsParams

type GetAirportWeatherObservationsParams struct {
	// TemperatureUnits Units to use for temperature fields.
	TemperatureUnits *GetAirportWeatherObservationsParamsTemperatureUnits `form:"temperature_units,omitempty" json:"temperature_units,omitempty"`

	// ReturnNearbyWeather If the requested airport does not have a weather conditions report then
	// the weather for the nearest airport within 30 miles will be returned
	// instead.
	ReturnNearbyWeather *bool `form:"return_nearby_weather,omitempty" json:"return_nearby_weather,omitempty"`

	// Timestamp Timestamp from which to begin returning weather data in a 1 day range.
	// Because weather data is returned in reverse chronological order, all
	// returned weather reports will be from before this timestamp. If unspecified,
	// weather is returned starting from now up to or less than the user history limit,
	// normally 14 days.
	Timestamp *time.Time `form:"timestamp,omitempty" json:"timestamp,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportWeatherObservationsParams defines parameters for GetAirportWeatherObservations.

type GetAirportWeatherObservationsParamsTemperatureUnits

type GetAirportWeatherObservationsParamsTemperatureUnits string

GetAirportWeatherObservationsParamsTemperatureUnits defines parameters for GetAirportWeatherObservations.

Defines values for GetAirportWeatherObservationsParamsTemperatureUnits.

type GetAirportWeatherObservationsResponse

type GetAirportWeatherObservationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportWeatherObservations200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportWeatherObservationsResponse

func ParseGetAirportWeatherObservationsResponse(rsp *http.Response) (*GetAirportWeatherObservationsResponse, error)

ParseGetAirportWeatherObservationsResponse parses an HTTP response from a GetAirportWeatherObservationsWithResponse call

func (GetAirportWeatherObservationsResponse) Status

Status returns HTTPResponse.Status

func (GetAirportWeatherObservationsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetAirportsCanonicalParams

type GetAirportsCanonicalParams struct {
	// IdType Type of airport code provided in the id parameter
	IdType *GetAirportsCanonicalParamsIdType `form:"id_type,omitempty" json:"id_type,omitempty"`
}

GetAirportsCanonicalParams defines parameters for GetAirportsCanonical.

type GetAirportsCanonicalParamsIdType

type GetAirportsCanonicalParamsIdType string

GetAirportsCanonicalParamsIdType defines parameters for GetAirportsCanonical.

Defines values for GetAirportsCanonicalParamsIdType.

type GetAirportsCanonicalResponse

type GetAirportsCanonicalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportsCanonical200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportsCanonicalResponse

func ParseGetAirportsCanonicalResponse(rsp *http.Response) (*GetAirportsCanonicalResponse, error)

ParseGetAirportsCanonicalResponse parses an HTTP response from a GetAirportsCanonicalWithResponse call

func (GetAirportsCanonicalResponse) Status

Status returns HTTPResponse.Status

func (GetAirportsCanonicalResponse) StatusCode

func (r GetAirportsCanonicalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAirportsNearAirportParams

type GetAirportsNearAirportParams struct {
	// Radius The search radius to use for finding nearby airports (statue miles)
	Radius int `form:"radius" json:"radius"`

	// OnlyIap Return only nearby airports with Instrument Approaches (also limits
	// results to North American airports)
	OnlyIap *bool `form:"only_iap,omitempty" json:"only_iap,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAirportsNearAirportParams defines parameters for GetAirportsNearAirport.

type GetAirportsNearAirportResponse

type GetAirportsNearAirportResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportsNearAirport200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAirportsNearAirportResponse

func ParseGetAirportsNearAirportResponse(rsp *http.Response) (*GetAirportsNearAirportResponse, error)

ParseGetAirportsNearAirportResponse parses an HTTP response from a GetAirportsNearAirportWithResponse call

func (GetAirportsNearAirportResponse) Status

Status returns HTTPResponse.Status

func (GetAirportsNearAirportResponse) StatusCode

func (r GetAirportsNearAirportResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertResponse

type GetAlertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Alert200Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetAlertResponse

func ParseGetAlertResponse(rsp *http.Response) (*GetAlertResponse, error)

ParseGetAlertResponse parses an HTTP response from a GetAlertWithResponse call

func (GetAlertResponse) Status

func (r GetAlertResponse) Status() string

Status returns HTTPResponse.Status

func (GetAlertResponse) StatusCode

func (r GetAlertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAlertsEndpointResponse

type GetAlertsEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AlertsEndpoint200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAlertsEndpointResponse

func ParseGetAlertsEndpointResponse(rsp *http.Response) (*GetAlertsEndpointResponse, error)

ParseGetAlertsEndpointResponse parses an HTTP response from a GetAlertsEndpointWithResponse call

func (GetAlertsEndpointResponse) Status

func (r GetAlertsEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (GetAlertsEndpointResponse) StatusCode

func (r GetAlertsEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllAirportsParams

type GetAllAirportsParams struct {
	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAllAirportsParams defines parameters for GetAllAirports.

type GetAllAirportsResponse

type GetAllAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AllAirports200Response
}

func ParseGetAllAirportsResponse

func ParseGetAllAirportsResponse(rsp *http.Response) (*GetAllAirportsResponse, error)

ParseGetAllAirportsResponse parses an HTTP response from a GetAllAirportsWithResponse call

func (GetAllAirportsResponse) Status

func (r GetAllAirportsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllAirportsResponse) StatusCode

func (r GetAllAirportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllAlertsParams

type GetAllAlertsParams struct {
	// MaxPages Maximum number of pages to fetch. This is an upper limit and not
	// a guarantee of how many pages will be returned. Defaults to 0, meaning
	// no maximum is set. Set this parameter if your call is timing out
	// (most likely due to a high number of alerts).
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAllAlertsParams defines parameters for GetAllAlerts.

type GetAllAlertsResponse

type GetAllAlertsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AllAlerts200Response
}

func ParseGetAllAlertsResponse

func ParseGetAllAlertsResponse(rsp *http.Response) (*GetAllAlertsResponse, error)

ParseGetAllAlertsResponse parses an HTTP response from a GetAllAlertsWithResponse call

func (GetAllAlertsResponse) Status

func (r GetAllAlertsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllAlertsResponse) StatusCode

func (r GetAllAlertsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllDisruptionCountsParams

type GetAllDisruptionCountsParams struct {
	TimePeriod *string `form:"time_period,omitempty" json:"time_period,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAllDisruptionCountsParams defines parameters for GetAllDisruptionCounts.

type GetAllDisruptionCountsResponse

type GetAllDisruptionCountsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AllDisruptionCounts200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetAllDisruptionCountsResponse

func ParseGetAllDisruptionCountsResponse(rsp *http.Response) (*GetAllDisruptionCountsResponse, error)

ParseGetAllDisruptionCountsResponse parses an HTTP response from a GetAllDisruptionCountsWithResponse call

func (GetAllDisruptionCountsResponse) Status

Status returns HTTPResponse.Status

func (GetAllDisruptionCountsResponse) StatusCode

func (r GetAllDisruptionCountsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAllOperatorsParams

type GetAllOperatorsParams struct {
	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetAllOperatorsParams defines parameters for GetAllOperators.

type GetAllOperatorsResponse

type GetAllOperatorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AllOperators200Response
}

func ParseGetAllOperatorsResponse

func ParseGetAllOperatorsResponse(rsp *http.Response) (*GetAllOperatorsResponse, error)

ParseGetAllOperatorsResponse parses an HTTP response from a GetAllOperatorsWithResponse call

func (GetAllOperatorsResponse) Status

func (r GetAllOperatorsResponse) Status() string

Status returns HTTPResponse.Status

func (GetAllOperatorsResponse) StatusCode

func (r GetAllOperatorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDelaysForAllAirportsParams

type GetDelaysForAllAirportsParams struct {
	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetDelaysForAllAirportsParams defines parameters for GetDelaysForAllAirports.

type GetDelaysForAllAirportsResponse

type GetDelaysForAllAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DelaysForAllAirports200Response
}

func ParseGetDelaysForAllAirportsResponse

func ParseGetDelaysForAllAirportsResponse(rsp *http.Response) (*GetDelaysForAllAirportsResponse, error)

ParseGetDelaysForAllAirportsResponse parses an HTTP response from a GetDelaysForAllAirportsWithResponse call

func (GetDelaysForAllAirportsResponse) Status

Status returns HTTPResponse.Status

func (GetDelaysForAllAirportsResponse) StatusCode

func (r GetDelaysForAllAirportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDisruptionCountsParams

type GetDisruptionCountsParams struct {
	TimePeriod *string `form:"time_period,omitempty" json:"time_period,omitempty"`
}

GetDisruptionCountsParams defines parameters for GetDisruptionCounts.

type GetDisruptionCountsResponse

type GetDisruptionCountsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DisruptionCounts200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetDisruptionCountsResponse

func ParseGetDisruptionCountsResponse(rsp *http.Response) (*GetDisruptionCountsResponse, error)

ParseGetDisruptionCountsResponse parses an HTTP response from a GetDisruptionCountsWithResponse call

func (GetDisruptionCountsResponse) Status

Status returns HTTPResponse.Status

func (GetDisruptionCountsResponse) StatusCode

func (r GetDisruptionCountsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightMapParams

type GetFlightMapParams struct {
	// Height Height of requested image (pixels)
	Height *int `form:"height,omitempty" json:"height,omitempty"`

	// Width Width of requested image (pixels)
	Width *int `form:"width,omitempty" json:"width,omitempty"`

	// LayerOn List of map layers to enable
	LayerOn *[]GetFlightMapParamsLayerOn `form:"layer_on,omitempty" json:"layer_on,omitempty"`

	// LayerOff List of map layers to disable
	LayerOff *[]GetFlightMapParamsLayerOff `form:"layer_off,omitempty" json:"layer_off,omitempty"`

	// ShowDataBlock Whether a textual caption containing the ident, type, heading,
	// altitude, origin, and destination should be displayed by the flight's
	// position.
	ShowDataBlock *bool `form:"show_data_block,omitempty" json:"show_data_block,omitempty"`

	// AirportsExpandView Whether to force zoom area to ensure origin/destination airports are
	// visible. Enabling this flag forcefully enables the show_airports flag
	// as well.
	AirportsExpandView *bool `form:"airports_expand_view,omitempty" json:"airports_expand_view,omitempty"`

	// ShowAirports Whether to show the origin/destination airports for the flight as
	// labeled points on the map.
	ShowAirports *bool `form:"show_airports,omitempty" json:"show_airports,omitempty"`

	// BoundingBox Manually specify the zoom area of the map using custom bounds. Should
	// be a list of 4 coordinates representing the top, right, bottom, and
	// left sides of the area (in that order).
	BoundingBox *[]float32 `form:"bounding_box,omitempty" json:"bounding_box,omitempty"`
}

GetFlightMapParams defines parameters for GetFlightMap.

type GetFlightMapParamsLayerOff

type GetFlightMapParamsLayerOff string

GetFlightMapParamsLayerOff defines parameters for GetFlightMap.

const (
	GetFlightMapParamsLayerOffAirports                  GetFlightMapParamsLayerOff = "airports"
	GetFlightMapParamsLayerOffAsiaCountryBoundaries     GetFlightMapParamsLayerOff = "asia country boundaries"
	GetFlightMapParamsLayerOffCountryBoundaries         GetFlightMapParamsLayerOff = "country boundaries"
	GetFlightMapParamsLayerOffEuropeanCountryBoundaries GetFlightMapParamsLayerOff = "european country boundaries"
	GetFlightMapParamsLayerOffFlights                   GetFlightMapParamsLayerOff = "flights"
	GetFlightMapParamsLayerOffMajorAirports             GetFlightMapParamsLayerOff = "major airports"
	GetFlightMapParamsLayerOffRadar                     GetFlightMapParamsLayerOff = "radar"
	GetFlightMapParamsLayerOffTrack                     GetFlightMapParamsLayerOff = "track"
	GetFlightMapParamsLayerOffUSCities                  GetFlightMapParamsLayerOff = "US Cities"
	GetFlightMapParamsLayerOffUSMajorRoads              GetFlightMapParamsLayerOff = "US major roads"
	GetFlightMapParamsLayerOffUSStateBoundaries         GetFlightMapParamsLayerOff = "US state boundaries"
	GetFlightMapParamsLayerOffWater                     GetFlightMapParamsLayerOff = "water"
)

Defines values for GetFlightMapParamsLayerOff.

type GetFlightMapParamsLayerOn

type GetFlightMapParamsLayerOn string

GetFlightMapParamsLayerOn defines parameters for GetFlightMap.

const (
	GetFlightMapParamsLayerOnAirports                  GetFlightMapParamsLayerOn = "airports"
	GetFlightMapParamsLayerOnAsiaCountryBoundaries     GetFlightMapParamsLayerOn = "asia country boundaries"
	GetFlightMapParamsLayerOnCountryBoundaries         GetFlightMapParamsLayerOn = "country boundaries"
	GetFlightMapParamsLayerOnEuropeanCountryBoundaries GetFlightMapParamsLayerOn = "european country boundaries"
	GetFlightMapParamsLayerOnFlights                   GetFlightMapParamsLayerOn = "flights"
	GetFlightMapParamsLayerOnMajorAirports             GetFlightMapParamsLayerOn = "major airports"
	GetFlightMapParamsLayerOnRadar                     GetFlightMapParamsLayerOn = "radar"
	GetFlightMapParamsLayerOnTrack                     GetFlightMapParamsLayerOn = "track"
	GetFlightMapParamsLayerOnUSCities                  GetFlightMapParamsLayerOn = "US Cities"
	GetFlightMapParamsLayerOnUSMajorRoads              GetFlightMapParamsLayerOn = "US major roads"
	GetFlightMapParamsLayerOnUSStateBoundaries         GetFlightMapParamsLayerOn = "US state boundaries"
	GetFlightMapParamsLayerOnWater                     GetFlightMapParamsLayerOn = "water"
)

Defines values for GetFlightMapParamsLayerOn.

type GetFlightMapResponse

type GetFlightMapResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightMap200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightMapResponse

func ParseGetFlightMapResponse(rsp *http.Response) (*GetFlightMapResponse, error)

ParseGetFlightMapResponse parses an HTTP response from a GetFlightMapWithResponse call

func (GetFlightMapResponse) Status

func (r GetFlightMapResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightMapResponse) StatusCode

func (r GetFlightMapResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightParams

type GetFlightParams struct {
	// IdentType Type of ident provided in the ident parameter. By default, the passed
	// ident is interpreted as a registration if possible. This parameter can
	// force the ident to be interpreted as a designator instead.
	IdentType *GetFlightParamsIdentType `form:"ident_type,omitempty" json:"ident_type,omitempty"`

	// Start The starting date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must be no further than 10 days in the
	// past and 2 days in the future. If not specified, will default to
	// departures starting approximately 11 days in the past. If using date
	// instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must be no further than 10 days in the
	// past and 2 days in the future. If not specified, will default to
	// departures starting approximately 2 days in the future. If using date
	// instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightParams defines parameters for GetFlight.

type GetFlightParamsIdentType

type GetFlightParamsIdentType string

GetFlightParamsIdentType defines parameters for GetFlight.

const (
	GetFlightParamsIdentTypeDesignator   GetFlightParamsIdentType = "designator"
	GetFlightParamsIdentTypeFaFlightId   GetFlightParamsIdentType = "fa_flight_id"
	GetFlightParamsIdentTypeRegistration GetFlightParamsIdentType = "registration"
)

Defines values for GetFlightParamsIdentType.

type GetFlightPositionResponse

type GetFlightPositionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightPosition200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightPositionResponse

func ParseGetFlightPositionResponse(rsp *http.Response) (*GetFlightPositionResponse, error)

ParseGetFlightPositionResponse parses an HTTP response from a GetFlightPositionWithResponse call

func (GetFlightPositionResponse) Status

func (r GetFlightPositionResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightPositionResponse) StatusCode

func (r GetFlightPositionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightPositionWithForesightResponse

type GetFlightPositionWithForesightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightPositionWithForesight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightPositionWithForesightResponse

func ParseGetFlightPositionWithForesightResponse(rsp *http.Response) (*GetFlightPositionWithForesightResponse, error)

ParseGetFlightPositionWithForesightResponse parses an HTTP response from a GetFlightPositionWithForesightWithResponse call

func (GetFlightPositionWithForesightResponse) Status

Status returns HTTPResponse.Status

func (GetFlightPositionWithForesightResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetFlightResponse

type GetFlightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Flight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightResponse

func ParseGetFlightResponse(rsp *http.Response) (*GetFlightResponse, error)

ParseGetFlightResponse parses an HTTP response from a GetFlightWithResponse call

func (GetFlightResponse) Status

func (r GetFlightResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightResponse) StatusCode

func (r GetFlightResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightRouteResponse

type GetFlightRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightRoute200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetFlightRouteResponse

func ParseGetFlightRouteResponse(rsp *http.Response) (*GetFlightRouteResponse, error)

ParseGetFlightRouteResponse parses an HTTP response from a GetFlightRouteWithResponse call

func (GetFlightRouteResponse) Status

func (r GetFlightRouteResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightRouteResponse) StatusCode

func (r GetFlightRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightTrackParams

type GetFlightTrackParams struct {
	// IncludeEstimatedPositions Whether to include estimated positions in the flight track.
	IncludeEstimatedPositions *bool `form:"include_estimated_positions,omitempty" json:"include_estimated_positions,omitempty"`

	// IncludeSurfacePositions Whether to include surface positions in the flight track
	// and actual_distance computation.
	IncludeSurfacePositions *bool `form:"include_surface_positions,omitempty" json:"include_surface_positions,omitempty"`
}

GetFlightTrackParams defines parameters for GetFlightTrack.

type GetFlightTrackResponse

type GetFlightTrackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightTrack200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetFlightTrackResponse

func ParseGetFlightTrackResponse(rsp *http.Response) (*GetFlightTrackResponse, error)

ParseGetFlightTrackResponse parses an HTTP response from a GetFlightTrackWithResponse call

func (GetFlightTrackResponse) Status

func (r GetFlightTrackResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightTrackResponse) StatusCode

func (r GetFlightTrackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightTypeResponse

type GetFlightTypeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightType200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightTypeResponse

func ParseGetFlightTypeResponse(rsp *http.Response) (*GetFlightTypeResponse, error)

ParseGetFlightTypeResponse parses an HTTP response from a GetFlightTypeWithResponse call

func (GetFlightTypeResponse) Status

func (r GetFlightTypeResponse) Status() string

Status returns HTTPResponse.Status

func (GetFlightTypeResponse) StatusCode

func (r GetFlightTypeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightWithForesightParams

type GetFlightWithForesightParams struct {
	// IdentType Type of ident provided in the ident parameter. By default, the passed
	// ident is interpreted as a registration if possible. This parameter can
	// force the ident to be interpreted as a designator instead.
	IdentType *GetFlightWithForesightParamsIdentType `form:"ident_type,omitempty" json:"ident_type,omitempty"`

	// Start The starting date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must be no further than 10 days in the
	// past and 2 days in the future. If not specified, will default to
	// departures starting approximately 11 days in the past. If using date
	// instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must be no further than 10 days in the
	// past and 2 days in the future. If not specified, will default to
	// departures starting approximately 2 days in the future. If using date
	// instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightWithForesightParams defines parameters for GetFlightWithForesight.

type GetFlightWithForesightParamsIdentType

type GetFlightWithForesightParamsIdentType string

GetFlightWithForesightParamsIdentType defines parameters for GetFlightWithForesight.

const (
	GetFlightWithForesightParamsIdentTypeDesignator   GetFlightWithForesightParamsIdentType = "designator"
	GetFlightWithForesightParamsIdentTypeFaFlightId   GetFlightWithForesightParamsIdentType = "fa_flight_id"
	GetFlightWithForesightParamsIdentTypeRegistration GetFlightWithForesightParamsIdentType = "registration"
)

Defines values for GetFlightWithForesightParamsIdentType.

type GetFlightWithForesightResponse

type GetFlightWithForesightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightWithForesight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightWithForesightResponse

func ParseGetFlightWithForesightResponse(rsp *http.Response) (*GetFlightWithForesightResponse, error)

ParseGetFlightWithForesightResponse parses an HTTP response from a GetFlightWithForesightWithResponse call

func (GetFlightWithForesightResponse) Status

Status returns HTTPResponse.Status

func (GetFlightWithForesightResponse) StatusCode

func (r GetFlightWithForesightResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsBetweenAirportsParams

type GetFlightsBetweenAirportsParams struct {
	// Type Type of flights to return.
	Type *GetFlightsBetweenAirportsParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Connection Whether flights should be filtered based on their connection status. If setting
	// start/end date parameters then connection must be set to nonstop, and will
	// default to nonstop if left blank. If start/end are not specified then leaving
	// this blank will result in a mix of nonstop and one-stop flights being returned,
	// with a preference for nonstop flights. One-stop flights are identified with a
	// custom heuristic, which may be incomplete.
	Connection *GetFlightsBetweenAirportsParamsConnection `form:"connection,omitempty" json:"connection,omitempty"`

	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is exclusive. Specified end date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightsBetweenAirportsParams defines parameters for GetFlightsBetweenAirports.

type GetFlightsBetweenAirportsParamsConnection

type GetFlightsBetweenAirportsParamsConnection string

GetFlightsBetweenAirportsParamsConnection defines parameters for GetFlightsBetweenAirports.

Defines values for GetFlightsBetweenAirportsParamsConnection.

type GetFlightsBetweenAirportsParamsType

type GetFlightsBetweenAirportsParamsType string

GetFlightsBetweenAirportsParamsType defines parameters for GetFlightsBetweenAirports.

const (
	GetFlightsBetweenAirportsParamsTypeAirline         GetFlightsBetweenAirportsParamsType = "Airline"
	GetFlightsBetweenAirportsParamsTypeGeneralAviation GetFlightsBetweenAirportsParamsType = "General_Aviation"
)

Defines values for GetFlightsBetweenAirportsParamsType.

type GetFlightsBetweenAirportsResponse

type GetFlightsBetweenAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsBetweenAirports200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsBetweenAirportsResponse

func ParseGetFlightsBetweenAirportsResponse(rsp *http.Response) (*GetFlightsBetweenAirportsResponse, error)

ParseGetFlightsBetweenAirportsResponse parses an HTTP response from a GetFlightsBetweenAirportsWithResponse call

func (GetFlightsBetweenAirportsResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsBetweenAirportsResponse) StatusCode

func (r GetFlightsBetweenAirportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsByAdvancedSearchParams

type GetFlightsByAdvancedSearchParams struct {
	// Query Query to search for airborne or recently arrived flights. It should not
	// exceed 1000 bytes in length. Search criteria is only applied to the
	// most recent position for a flight. This function only searches flights
	// within approximately the last 24 hours. The supported operators include
	// (note that operators take different numbers of arguments):
	//
	// * false - results must have the specified boolean key set to a value of false. Example: {false arrived}
	// * true - results must have the specified boolean key set to a value of true. Example: {true lifeguard}
	// * null - results must have the specified key set to a null value. Example: {null waypoints}
	// * notnull - results must have the specified key not set to a null value. Example: {notnull aircraftType}
	// * = - results must have a key that exactly matches the specified value. Example: {= aircraftType C172}
	// * != - results must have a key that must not match the specified value. Example: {!= prefix H}
	// * < - results must have a key that is lexicographically less-than a specified value. Example: {< arrivalTime 1276811040}
	// * \> - results must have a key that is lexicographically greater-than a specified value. Example: {> speed 500}
	// * <= - results must have a key that is lexicographically less-than-or-equal-to a specified value. Example: {<= alt 8000}
	// * \>= - results must have a key that is lexicographically greater-than-or-equal-to a specified value.
	// * match - results must have a key that matches against a case-insensitive wildcard pattern. Example: {match ident AAL*}
	// * notmatch - results must have a key that does not match against a case-insensitive wildcard pattern. Example: {notmatch aircraftType B76*}
	// * range - results must have a key that is numerically between the two specified values. Example: {range alt 8000 20000}
	// * in - results must have a key that exactly matches one of the specified values. Example: {in orig {KLAX KBUR KSNA KLGB}}
	// * orig_or_dest - results must have either the origin or destination key exactly match one of the specified values. Example: {orig_or_dest {KLAX KBUR KSNA KLGB}}
	// * airline - results will only include airline flight if the argument is 1, or will only include GA flights if the argument is 0. Example: {airline 1}
	// * aircraftType - results must have an aircraftType key that matches one of the specified case-insensitive wildcard patterns. Example: {aircraftType {B76* B77*}}
	// * ident - results must have an ident key that matches one of the specified case-insensitive wildcard patterns. Example: {ident {N123* N456* AAL* UAL*}}
	// * ident_or_reg - results must have an ident key or was known to be operated by an aircraft registration that matches one of the specified case-insensitive wildcard patterns. Example: {ident_or_reg {N123* N456* AAL* UAL*}}
	//
	// The supported key names include (note that not all of these key names are returned in the result structure, and some have slightly different names):
	//
	// * actualDepartureTime - Actual time of departure, or null if not departed yet. UNIX epoch timestamp seconds since 1970
	// * aircraftType - aircraft type ID (for example: B763)
	// * alt - altitude at last reported position (hundreds of feet or Flight Level)
	// * altChange - altitude change indication (for example: "C" if climbing, "D" if descending, and empty if it is level)
	// * arrivalTime - Actual time of arrival, or null if not arrived yet. UNIX epoch timestamp seconds since 1970
	// * arrived - true if the flight has arrived at its destination.
	// * cancelled - true if the flight has been cancelled. The meaning of cancellation is that the flight is no longer being tracked by FlightAware. There are a number of reasons a flight may be cancelled including cancellation by the airline, but that will not always be the case.
	// * cdt - Controlled Departure Time, set if there is a ground hold on the flight. UNIX epoch timestamp seconds since 1970
	// * clock - Time of last received position. UNIX epoch timestamp seconds since 1970
	// * cta - Controlled Time of Arrival, set if there is a ground hold on the flight. UNIX epoch timestamp seconds since 1970
	// * dest - ICAO airport code of destination (for example: KLAX)
	// * edt - Estimated Departure Time. Epoch timestamp seconds since 1970
	// * eta - Estimated Time of Arrival. Epoch timestamp seconds since 1970
	// * fdt - Field Departure Time. UNIX epoch timestamp seconds since 1970
	// * firstPositionTime - Time when first reported position was received, or 0 if no position has been received yet. Epoch timestamp seconds since 1970
	// * fixes - intersections and/or VORs along the route (for example: SLS AMERO ARTOM VODIR NOTOS ULAPA ACA NUXCO OLULA PERAS ALIPO UPN GDL KEDMA BRISA CUL PERTI CEN PPE ALTAR ASUTA JLI RONLD LAADY WYVIL OLDEE RAL PDZ ARNES BASET WELLZ CIVET)
	// * fp - unique identifier assigned by FlightAware for this flight, aka fa_flight_id.
	// * gs - ground speed at last reported position, in kts.
	// * heading - direction of travel at last reported position.
	// * hiLat - highest latitude travelled by flight.
	// * hiLon - highest longitude travelled by flight.
	// * ident - flight identifier or registration of aircraft.
	// * lastPositionTime - Time when last reported position was received, or 0 if no position has been received yet. Epoch timestamp seconds since 1970.
	// * lat - latitude of last reported position.
	// * lifeguard - true if a "lifeguard" rescue flight.
	// * lon - longitude of last reported position.
	// * lowLat - lowest latitude travelled by flight.
	// * lowLon - lowest longitude travelled by flight.
	// * ogta - Original Time of Arrival. UNIX epoch timestamp seconds since 1970
	// * ogtd - Original Time of Departure. UNIX epoch timestamp seconds since 1970
	// * orig - ICAO airport code of origin (for example: KIAH)
	// * physClass - physical class (for example: J is jet)
	// * prefix - A one or two character identifier prefix code (common values: G or GG Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
	// * speed - ground speed, in kts.
	// * status - Single letter code for current flight status, can be S Scheduled, F Filed, A Active, Z Completed, or X Cancelled.
	// * updateType - data source of last position (P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event).
	// * waypoints - all of the intersections and VORs comprising the route
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightsByAdvancedSearchParams defines parameters for GetFlightsByAdvancedSearch.

type GetFlightsByAdvancedSearchResponse

type GetFlightsByAdvancedSearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsBySearch200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsByAdvancedSearchResponse

func ParseGetFlightsByAdvancedSearchResponse(rsp *http.Response) (*GetFlightsByAdvancedSearchResponse, error)

ParseGetFlightsByAdvancedSearchResponse parses an HTTP response from a GetFlightsByAdvancedSearchWithResponse call

func (GetFlightsByAdvancedSearchResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsByAdvancedSearchResponse) StatusCode

func (r GetFlightsByAdvancedSearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsByAdvancedSearchWithForesightParams

type GetFlightsByAdvancedSearchWithForesightParams struct {
	// Query Query to search for airborne or recently arrived flights. It should not
	// exceed 1000 bytes in length. Search criteria is only applied to the
	// most recent position for a flight. This function only searches flights
	// within approximately the last 24 hours. The supported operators include
	// (note that operators take different numbers of arguments):
	//
	// * false - results must have the specified boolean key set to a value of false. Example: {false arrived}
	// * true - results must have the specified boolean key set to a value of true. Example: {true lifeguard}
	// * null - results must have the specified key set to a null value. Example: {null waypoints}
	// * notnull - results must have the specified key not set to a null value. Example: {notnull aircraftType}
	// * = - results must have a key that exactly matches the specified value. Example: {= aircraftType C172}
	// * != - results must have a key that must not match the specified value. Example: {!= prefix H}
	// * < - results must have a key that is lexicographically less-than a specified value. Example: {< arrivalTime 1276811040}
	// * \> - results must have a key that is lexicographically greater-than a specified value. Example: {> speed 500}
	// * <= - results must have a key that is lexicographically less-than-or-equal-to a specified value. Example: {<= alt 8000}
	// * \>= - results must have a key that is lexicographically greater-than-or-equal-to a specified value.
	// * match - results must have a key that matches against a case-insensitive wildcard pattern. Example: {match ident AAL*}
	// * notmatch - results must have a key that does not match against a case-insensitive wildcard pattern. Example: {notmatch aircraftType B76*}
	// * range - results must have a key that is numerically between the two specified values. Example: {range alt 8000 20000}
	// * in - results must have a key that exactly matches one of the specified values. Example: {in orig {KLAX KBUR KSNA KLGB}}
	// * orig_or_dest - results must have either the origin or destination key exactly match one of the specified values. Example: {orig_or_dest {KLAX KBUR KSNA KLGB}}
	// * airline - results will only include airline flight if the argument is 1, or will only include GA flights if the argument is 0. Example: {airline 1}
	// * aircraftType - results must have an aircraftType key that matches one of the specified case-insensitive wildcard patterns. Example: {aircraftType {B76* B77*}}
	// * ident - results must have an ident key that matches one of the specified case-insensitive wildcard patterns. Example: {ident {N123* N456* AAL* UAL*}}
	// * ident_or_reg - results must have an ident key or was known to be operated by an aircraft registration that matches one of the specified case-insensitive wildcard patterns. Example: {ident_or_reg {N123* N456* AAL* UAL*}}
	//
	// The supported key names include (note that not all of these key names are returned in the result structure, and some have slightly different names):
	//
	// * actualDepartureTime - Actual time of departure, or null if not departed yet. UNIX epoch timestamp seconds since 1970
	// * aircraftType - aircraft type ID (for example: B763)
	// * alt - altitude at last reported position (hundreds of feet or Flight Level)
	// * altChange - altitude change indication (for example: "C" if climbing, "D" if descending, and empty if it is level)
	// * arrivalTime - Actual time of arrival, or null if not arrived yet. UNIX epoch timestamp seconds since 1970
	// * arrived - true if the flight has arrived at its destination.
	// * cancelled - true if the flight has been cancelled. The meaning of cancellation is that the flight is no longer being tracked by FlightAware. There are a number of reasons a flight may be cancelled including cancellation by the airline, but that will not always be the case.
	// * cdt - Controlled Departure Time, set if there is a ground hold on the flight. UNIX epoch timestamp seconds since 1970
	// * clock - Time of last received position. UNIX epoch timestamp seconds since 1970
	// * cta - Controlled Time of Arrival, set if there is a ground hold on the flight. UNIX epoch timestamp seconds since 1970
	// * dest - ICAO airport code of destination (for example: KLAX)
	// * edt - Estimated Departure Time. Epoch timestamp seconds since 1970
	// * eta - Estimated Time of Arrival. Epoch timestamp seconds since 1970
	// * fdt - Field Departure Time. UNIX epoch timestamp seconds since 1970
	// * firstPositionTime - Time when first reported position was received, or 0 if no position has been received yet. Epoch timestamp seconds since 1970
	// * fixes - intersections and/or VORs along the route (for example: SLS AMERO ARTOM VODIR NOTOS ULAPA ACA NUXCO OLULA PERAS ALIPO UPN GDL KEDMA BRISA CUL PERTI CEN PPE ALTAR ASUTA JLI RONLD LAADY WYVIL OLDEE RAL PDZ ARNES BASET WELLZ CIVET)
	// * fp - unique identifier assigned by FlightAware for this flight, aka fa_flight_id.
	// * gs - ground speed at last reported position, in kts.
	// * heading - direction of travel at last reported position.
	// * hiLat - highest latitude travelled by flight.
	// * hiLon - highest longitude travelled by flight.
	// * ident - flight identifier or registration of aircraft.
	// * lastPositionTime - Time when last reported position was received, or 0 if no position has been received yet. Epoch timestamp seconds since 1970.
	// * lat - latitude of last reported position.
	// * lifeguard - true if a "lifeguard" rescue flight.
	// * lon - longitude of last reported position.
	// * lowLat - lowest latitude travelled by flight.
	// * lowLon - lowest longitude travelled by flight.
	// * ogta - Original Time of Arrival. UNIX epoch timestamp seconds since 1970
	// * ogtd - Original Time of Departure. UNIX epoch timestamp seconds since 1970
	// * orig - ICAO airport code of origin (for example: KIAH)
	// * physClass - physical class (for example: J is jet)
	// * prefix - A one or two character identifier prefix code (common values: G or GG Medevac, L Lifeguard, A Air Taxi, H Heavy, M Medium).
	// * speed - ground speed, in kts.
	// * status - Single letter code for current flight status, can be S Scheduled, F Filed, A Active, Z Completed, or X Cancelled.
	// * updateType - data source of last position (P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event).
	// * waypoints - all of the intersections and VORs comprising the route
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightsByAdvancedSearchWithForesightParams defines parameters for GetFlightsByAdvancedSearchWithForesight.

type GetFlightsByAdvancedSearchWithForesightResponse

type GetFlightsByAdvancedSearchWithForesightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsByAdvancedSearchWithForesight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsByAdvancedSearchWithForesightResponse

func ParseGetFlightsByAdvancedSearchWithForesightResponse(rsp *http.Response) (*GetFlightsByAdvancedSearchWithForesightResponse, error)

ParseGetFlightsByAdvancedSearchWithForesightResponse parses an HTTP response from a GetFlightsByAdvancedSearchWithForesightWithResponse call

func (GetFlightsByAdvancedSearchWithForesightResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsByAdvancedSearchWithForesightResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetFlightsByPositionSearchParams

type GetFlightsByPositionSearchParams struct {
	// Query Query to search for flight positions. It should not exceed 1000 bytes
	// in length. Search criteria is applied against all positions of a
	// flight. This function only searches flights within approximately the
	// last 24 hours. The supported operators include (note that operators
	// take different numbers of arguments):
	//
	// * false - results must have the specified boolean key set to a value of false. Example: {false preferred}
	// * true - results must have the specified boolean key set to a value of true. Example: {true preferred}
	// * null - results must have the specified key set to a null value. Example: {null waypoints}
	// * notnull - results must have the specified key not set to a null value. Example: {notnull aircraftType}
	// * = - results must have a key that exactly matches the specified value. Example: {= fp C172}
	// * != - results must have a key that must not match the specified value. Example: {!= prefix H}
	// * < - results must have a key that is lexicographically less-than a specified value. Example: {< arrivalTime 1276811040}
	// * \> - results must have a key that is lexicographically greater-than a specified value. Example: {> speed 500}
	// * <= - results must have a key that is lexicographically less-than-or-equal-to a specified value. Example: {<= alt 8000}
	// * \>= - results must have a key that is lexicographically greater-than-or-equal-to a specified value.
	// * match - results must have a key that matches against a case-insensitive wildcard pattern. Example: {match ident AAL*}
	// * notmatch - results must have a key that does not match against a case-insensitive wildcard pattern. Example: {notmatch aircraftType B76*}
	// * range - results must have a key that is numerically between the two specified values. Example: {range alt 8000 20000}
	// * in - results must have a key that exactly matches one of the specified values. Example: {in orig {KLAX KBUR KSNA KLGB}}
	//
	// The supported key names include (note that not all of these key names are returned in the result structure, and some have slightly different names):
	//
	// * alt - Altitude, measured in hundreds of feet or Flight Level.
	// * altChange - a one-character code indicating the change in altitude.
	// * altMax - Altitude, measured in hundreds of feet or Flight Level.
	// * cid - a three-character cid code
	// * cidfac - a four-character cidfac code
	// * clock - UNIX epoch timestamp seconds since 1970
	// * fp - unique identifier assigned by FlightAware for this flight, aka fa_flight_id.
	// * gs - ground speed, measured in kts.
	// * lat - latitude of the reported position.
	// * lon - longitude of the reported position
	// * preferred - boolean indicator of position quality
	// * recvd - UNIX epoch timestamp seconds since 1970
	// * updateType - source of the last reported position (P=projected, O=oceanic, Z=radar, A=ADS-B, M=multilateration, D=datalink, X=surface and near surface (ADS-B and ASDE-X), S=space-based, V=virtual event)
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// UniqueFlights Whether to return only a single position per unique fa_flight_id.
	UniqueFlights *bool `form:"unique_flights,omitempty" json:"unique_flights,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightsByPositionSearchParams defines parameters for GetFlightsByPositionSearch.

type GetFlightsByPositionSearchResponse

type GetFlightsByPositionSearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsByPositionSearch200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsByPositionSearchResponse

func ParseGetFlightsByPositionSearchResponse(rsp *http.Response) (*GetFlightsByPositionSearchResponse, error)

ParseGetFlightsByPositionSearchResponse parses an HTTP response from a GetFlightsByPositionSearchWithResponse call

func (GetFlightsByPositionSearchResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsByPositionSearchResponse) StatusCode

func (r GetFlightsByPositionSearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsBySearchParams

type GetFlightsBySearchParams struct {
	// Query Query to search for flights with a simplified syntax (compared to
	// /flights/search/advanced). It should not exceed 1000 bytes in length.
	// Query syntax allows filtering by latitude/longitude box, aircraft ident
	// with wildcards, type with wildcards, prefix, origin airport,
	// destination airport, origin or destination airport, groundspeed, and
	// altitude. It takes search terms in a single string comprising "-key
	// value" pairs. Codeshares and alternate idents are NOT searched when
	// using the -idents clause.
	//
	// Keys include:
	// * `-prefix STRING`
	// * `-type STRING`
	// * `-idents STRING`
	// * `-identOrReg STRING`
	// * `-airline STRING`
	// * `-destination STRING`
	// * `-origin STRING`
	// * `-originOrDestination STRING`
	// * `-aboveAltitude INTEGER`
	// * `-belowAltitude INTEGER`
	// * `-aboveGroundspeed INTEGER`
	// * `-belowGroundspeed INTEGER`
	// * `-latlong "MINLAT MINLON MAXLAT MAXLON"`
	// * `-filter {ga|airline}`
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetFlightsBySearchParams defines parameters for GetFlightsBySearch.

type GetFlightsBySearchResponse

type GetFlightsBySearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsBySearch200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsBySearchResponse

func ParseGetFlightsBySearchResponse(rsp *http.Response) (*GetFlightsBySearchResponse, error)

ParseGetFlightsBySearchResponse parses an HTTP response from a GetFlightsBySearchWithResponse call

func (GetFlightsBySearchResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsBySearchResponse) StatusCode

func (r GetFlightsBySearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsCanonicalParams

type GetFlightsCanonicalParams struct {
	// IdentType Type of ident provided in the ident parameter
	IdentType *GetFlightsCanonicalParamsIdentType `form:"ident_type,omitempty" json:"ident_type,omitempty"`

	// CountryCode An ISO 3166-1 alpha-2 country code.
	CountryCode *string `form:"country_code,omitempty" json:"country_code,omitempty"`
}

GetFlightsCanonicalParams defines parameters for GetFlightsCanonical.

type GetFlightsCanonicalParamsIdentType

type GetFlightsCanonicalParamsIdentType string

GetFlightsCanonicalParamsIdentType defines parameters for GetFlightsCanonical.

const (
	GetFlightsCanonicalParamsIdentTypeDesignator   GetFlightsCanonicalParamsIdentType = "designator"
	GetFlightsCanonicalParamsIdentTypeRegistration GetFlightsCanonicalParamsIdentType = "registration"
)

Defines values for GetFlightsCanonicalParamsIdentType.

type GetFlightsCanonicalResponse

type GetFlightsCanonicalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsCanonical200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetFlightsCanonicalResponse

func ParseGetFlightsCanonicalResponse(rsp *http.Response) (*GetFlightsCanonicalResponse, error)

ParseGetFlightsCanonicalResponse parses an HTTP response from a GetFlightsCanonicalWithResponse call

func (GetFlightsCanonicalResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsCanonicalResponse) StatusCode

func (r GetFlightsCanonicalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetFlightsCountBySearchParams

type GetFlightsCountBySearchParams struct {
	// Query Query to search for flights with a simplified syntax (compared to
	// /flights/search/advanced). It should not exceed 1000 bytes in length.
	// Query syntax allows filtering by latitude/longitude box, aircraft ident
	// with wildcards, type with wildcards, prefix, origin airport,
	// destination airport, origin or destination airport, groundspeed, and
	// altitude. It takes search terms in a single string comprising "-key
	// value" pairs. Codeshares and alternate idents are NOT searched when
	// using the -idents clause.
	//
	// Keys include:
	// * `-prefix STRING`
	// * `-type STRING`
	// * `-idents STRING`
	// * `-identOrReg STRING`
	// * `-airline STRING`
	// * `-destination STRING`
	// * `-origin STRING`
	// * `-originOrDestination STRING`
	// * `-aboveAltitude INTEGER`
	// * `-belowAltitude INTEGER`
	// * `-aboveGroundspeed INTEGER`
	// * `-belowGroundspeed INTEGER`
	// * `-latlong "MINLAT MINLON MAXLAT MAXLON"`
	Query *string `form:"query,omitempty" json:"query,omitempty"`
}

GetFlightsCountBySearchParams defines parameters for GetFlightsCountBySearch.

type GetFlightsCountBySearchResponse

type GetFlightsCountBySearchResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightsCountBySearch200Response
}

func ParseGetFlightsCountBySearchResponse

func ParseGetFlightsCountBySearchResponse(rsp *http.Response) (*GetFlightsCountBySearchResponse, error)

ParseGetFlightsCountBySearchResponse parses an HTTP response from a GetFlightsCountBySearchWithResponse call

func (GetFlightsCountBySearchResponse) Status

Status returns HTTPResponse.Status

func (GetFlightsCountBySearchResponse) StatusCode

func (r GetFlightsCountBySearchResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHistoryAircraftLastFlightResponse

type GetHistoryAircraftLastFlightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HistoryAircraftLastFlight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryAircraftLastFlightResponse

func ParseGetHistoryAircraftLastFlightResponse(rsp *http.Response) (*GetHistoryAircraftLastFlightResponse, error)

ParseGetHistoryAircraftLastFlightResponse parses an HTTP response from a GetHistoryAircraftLastFlightWithResponse call

func (GetHistoryAircraftLastFlightResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryAircraftLastFlightResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHistoryAirportsFlightsArrivedParams

type GetHistoryAirportsFlightsArrivedParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetHistoryAirportsFlightsArrivedParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results, comparing against flight's
	// `scheduled_on` field (which represents the flight’s planned ON the
	// ground time). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must occur on or after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	Start string `form:"start" json:"start"`

	// End The ending date range for flight results, comparing against flight's
	// `scheduled_on` field (which represents the flight’s planned ON the
	// ground time), The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must occur after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	End string `form:"end" json:"end"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryAirportsFlightsArrivedParams defines parameters for GetHistoryAirportsFlightsArrived.

type GetHistoryAirportsFlightsArrivedParamsType

type GetHistoryAirportsFlightsArrivedParamsType string

GetHistoryAirportsFlightsArrivedParamsType defines parameters for GetHistoryAirportsFlightsArrived.

const (
	GetHistoryAirportsFlightsArrivedParamsTypeAirline         GetHistoryAirportsFlightsArrivedParamsType = "Airline"
	GetHistoryAirportsFlightsArrivedParamsTypeGeneralAviation GetHistoryAirportsFlightsArrivedParamsType = "General_Aviation"
)

Defines values for GetHistoryAirportsFlightsArrivedParamsType.

type GetHistoryAirportsFlightsArrivedResponse

type GetHistoryAirportsFlightsArrivedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsArrived200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryAirportsFlightsArrivedResponse

func ParseGetHistoryAirportsFlightsArrivedResponse(rsp *http.Response) (*GetHistoryAirportsFlightsArrivedResponse, error)

ParseGetHistoryAirportsFlightsArrivedResponse parses an HTTP response from a GetHistoryAirportsFlightsArrivedWithResponse call

func (GetHistoryAirportsFlightsArrivedResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryAirportsFlightsArrivedResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHistoryAirportsFlightsDepartedParams

type GetHistoryAirportsFlightsDepartedParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetHistoryAirportsFlightsDepartedParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must occur on or after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	Start string `form:"start" json:"start"`

	// End The ending date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time) The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must occur after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	End string `form:"end" json:"end"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryAirportsFlightsDepartedParams defines parameters for GetHistoryAirportsFlightsDeparted.

type GetHistoryAirportsFlightsDepartedParamsType

type GetHistoryAirportsFlightsDepartedParamsType string

GetHistoryAirportsFlightsDepartedParamsType defines parameters for GetHistoryAirportsFlightsDeparted.

const (
	GetHistoryAirportsFlightsDepartedParamsTypeAirline         GetHistoryAirportsFlightsDepartedParamsType = "Airline"
	GetHistoryAirportsFlightsDepartedParamsTypeGeneralAviation GetHistoryAirportsFlightsDepartedParamsType = "General_Aviation"
)

Defines values for GetHistoryAirportsFlightsDepartedParamsType.

type GetHistoryAirportsFlightsDepartedResponse

type GetHistoryAirportsFlightsDepartedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *AirportFlightsDeparted200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryAirportsFlightsDepartedResponse

func ParseGetHistoryAirportsFlightsDepartedResponse(rsp *http.Response) (*GetHistoryAirportsFlightsDepartedResponse, error)

ParseGetHistoryAirportsFlightsDepartedResponse parses an HTTP response from a GetHistoryAirportsFlightsDepartedWithResponse call

func (GetHistoryAirportsFlightsDepartedResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryAirportsFlightsDepartedResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHistoryFlightMapParams

type GetHistoryFlightMapParams struct {
	// Height Height of requested image (pixels)
	Height *int `form:"height,omitempty" json:"height,omitempty"`

	// Width Width of requested image (pixels)
	Width *int `form:"width,omitempty" json:"width,omitempty"`

	// LayerOn List of map layers to enable
	LayerOn *[]GetHistoryFlightMapParamsLayerOn `form:"layer_on,omitempty" json:"layer_on,omitempty"`

	// LayerOff List of map layers to disable
	LayerOff *[]GetHistoryFlightMapParamsLayerOff `form:"layer_off,omitempty" json:"layer_off,omitempty"`

	// ShowDataBlock Whether a textual caption containing the ident, type, heading,
	// altitude, origin, and destination should be displayed by the flight's
	// position.
	ShowDataBlock *bool `form:"show_data_block,omitempty" json:"show_data_block,omitempty"`

	// AirportsExpandView Whether to force zoom area to ensure origin/destination airports are
	// visible. Enabling this flag forcefully enables the show_airports flag
	// as well.
	AirportsExpandView *bool `form:"airports_expand_view,omitempty" json:"airports_expand_view,omitempty"`

	// ShowAirports Whether to show the origin/destination airports for the flight as
	// labeled points on the map.
	ShowAirports *bool `form:"show_airports,omitempty" json:"show_airports,omitempty"`

	// BoundingBox Manually specify the zoom area of the map using custom bounds. Should
	// be a list of 4 coordinates representing the top, right, bottom, and
	// left sides of the area (in that order).
	BoundingBox *[]float32 `form:"bounding_box,omitempty" json:"bounding_box,omitempty"`
}

GetHistoryFlightMapParams defines parameters for GetHistoryFlightMap.

type GetHistoryFlightMapParamsLayerOff

type GetHistoryFlightMapParamsLayerOff string

GetHistoryFlightMapParamsLayerOff defines parameters for GetHistoryFlightMap.

const (
	GetHistoryFlightMapParamsLayerOffAirports                  GetHistoryFlightMapParamsLayerOff = "airports"
	GetHistoryFlightMapParamsLayerOffAsiaCountryBoundaries     GetHistoryFlightMapParamsLayerOff = "asia country boundaries"
	GetHistoryFlightMapParamsLayerOffCountryBoundaries         GetHistoryFlightMapParamsLayerOff = "country boundaries"
	GetHistoryFlightMapParamsLayerOffEuropeanCountryBoundaries GetHistoryFlightMapParamsLayerOff = "european country boundaries"
	GetHistoryFlightMapParamsLayerOffFlights                   GetHistoryFlightMapParamsLayerOff = "flights"
	GetHistoryFlightMapParamsLayerOffMajorAirports             GetHistoryFlightMapParamsLayerOff = "major airports"
	GetHistoryFlightMapParamsLayerOffRadar                     GetHistoryFlightMapParamsLayerOff = "radar"
	GetHistoryFlightMapParamsLayerOffTrack                     GetHistoryFlightMapParamsLayerOff = "track"
	GetHistoryFlightMapParamsLayerOffUSCities                  GetHistoryFlightMapParamsLayerOff = "US Cities"
	GetHistoryFlightMapParamsLayerOffUSMajorRoads              GetHistoryFlightMapParamsLayerOff = "US major roads"
	GetHistoryFlightMapParamsLayerOffUSStateBoundaries         GetHistoryFlightMapParamsLayerOff = "US state boundaries"
	GetHistoryFlightMapParamsLayerOffWater                     GetHistoryFlightMapParamsLayerOff = "water"
)

Defines values for GetHistoryFlightMapParamsLayerOff.

type GetHistoryFlightMapParamsLayerOn

type GetHistoryFlightMapParamsLayerOn string

GetHistoryFlightMapParamsLayerOn defines parameters for GetHistoryFlightMap.

const (
	GetHistoryFlightMapParamsLayerOnAirports                  GetHistoryFlightMapParamsLayerOn = "airports"
	GetHistoryFlightMapParamsLayerOnAsiaCountryBoundaries     GetHistoryFlightMapParamsLayerOn = "asia country boundaries"
	GetHistoryFlightMapParamsLayerOnCountryBoundaries         GetHistoryFlightMapParamsLayerOn = "country boundaries"
	GetHistoryFlightMapParamsLayerOnEuropeanCountryBoundaries GetHistoryFlightMapParamsLayerOn = "european country boundaries"
	GetHistoryFlightMapParamsLayerOnFlights                   GetHistoryFlightMapParamsLayerOn = "flights"
	GetHistoryFlightMapParamsLayerOnMajorAirports             GetHistoryFlightMapParamsLayerOn = "major airports"
	GetHistoryFlightMapParamsLayerOnRadar                     GetHistoryFlightMapParamsLayerOn = "radar"
	GetHistoryFlightMapParamsLayerOnTrack                     GetHistoryFlightMapParamsLayerOn = "track"
	GetHistoryFlightMapParamsLayerOnUSCities                  GetHistoryFlightMapParamsLayerOn = "US Cities"
	GetHistoryFlightMapParamsLayerOnUSMajorRoads              GetHistoryFlightMapParamsLayerOn = "US major roads"
	GetHistoryFlightMapParamsLayerOnUSStateBoundaries         GetHistoryFlightMapParamsLayerOn = "US state boundaries"
	GetHistoryFlightMapParamsLayerOnWater                     GetHistoryFlightMapParamsLayerOn = "water"
)

Defines values for GetHistoryFlightMapParamsLayerOn.

type GetHistoryFlightMapResponse

type GetHistoryFlightMapResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightMap200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryFlightMapResponse

func ParseGetHistoryFlightMapResponse(rsp *http.Response) (*GetHistoryFlightMapResponse, error)

ParseGetHistoryFlightMapResponse parses an HTTP response from a GetHistoryFlightMapWithResponse call

func (GetHistoryFlightMapResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryFlightMapResponse) StatusCode

func (r GetHistoryFlightMapResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHistoryFlightParams

type GetHistoryFlightParams struct {
	// IdentType Type of ident provided in the ident parameter. By default, the passed
	// ident is interpreted as a registration if possible. This parameter can
	// force the ident to be interpreted as a designator instead.
	IdentType *GetHistoryFlightParamsIdentType `form:"ident_type,omitempty" json:"ident_type,omitempty"`

	// Start The starting date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must occur on or after 2011-01-01 00:00:00 UTC
	// and cannot be in the future. If using date instead of datetime, the
	// time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results, comparing against flights'
	// `scheduled_out` field (or `scheduled_off` if `scheduled_out` is
	// missing). The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must occur after 2011-01-01 00:00:00 UTC
	// and cannot be in the future. If using date instead of datetime, the
	// time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryFlightParams defines parameters for GetHistoryFlight.

type GetHistoryFlightParamsIdentType

type GetHistoryFlightParamsIdentType string

GetHistoryFlightParamsIdentType defines parameters for GetHistoryFlight.

const (
	Designator   GetHistoryFlightParamsIdentType = "designator"
	FaFlightId   GetHistoryFlightParamsIdentType = "fa_flight_id"
	Registration GetHistoryFlightParamsIdentType = "registration"
)

Defines values for GetHistoryFlightParamsIdentType.

type GetHistoryFlightResponse

type GetHistoryFlightResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Flight200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryFlightResponse

func ParseGetHistoryFlightResponse(rsp *http.Response) (*GetHistoryFlightResponse, error)

ParseGetHistoryFlightResponse parses an HTTP response from a GetHistoryFlightWithResponse call

func (GetHistoryFlightResponse) Status

func (r GetHistoryFlightResponse) Status() string

Status returns HTTPResponse.Status

func (GetHistoryFlightResponse) StatusCode

func (r GetHistoryFlightResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHistoryFlightRouteResponse

type GetHistoryFlightRouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightRoute200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryFlightRouteResponse

func ParseGetHistoryFlightRouteResponse(rsp *http.Response) (*GetHistoryFlightRouteResponse, error)

ParseGetHistoryFlightRouteResponse parses an HTTP response from a GetHistoryFlightRouteWithResponse call

func (GetHistoryFlightRouteResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryFlightRouteResponse) StatusCode

func (r GetHistoryFlightRouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHistoryFlightTrackParams

type GetHistoryFlightTrackParams struct {
	// IncludeEstimatedPositions Whether to include estimated positions in the flight track.
	IncludeEstimatedPositions *bool `form:"include_estimated_positions,omitempty" json:"include_estimated_positions,omitempty"`

	// IncludeSurfacePositions Whether to include surface positions in the flight track and
	// actual_distance computation.
	IncludeSurfacePositions *bool `form:"include_surface_positions,omitempty" json:"include_surface_positions,omitempty"`
}

GetHistoryFlightTrackParams defines parameters for GetHistoryFlightTrack.

type GetHistoryFlightTrackResponse

type GetHistoryFlightTrackResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *FlightTrack200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryFlightTrackResponse

func ParseGetHistoryFlightTrackResponse(rsp *http.Response) (*GetHistoryFlightTrackResponse, error)

ParseGetHistoryFlightTrackResponse parses an HTTP response from a GetHistoryFlightTrackWithResponse call

func (GetHistoryFlightTrackResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryFlightTrackResponse) StatusCode

func (r GetHistoryFlightTrackResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHistoryFlightsBetweenAirportsParams

type GetHistoryFlightsBetweenAirportsParams struct {
	// Airline Airline to filter flights by. Do not provide airline if type is provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// Type Type of flights to return. Do not provide type if airline is provided.
	Type *GetHistoryFlightsBetweenAirportsParamsType `form:"type,omitempty" json:"type,omitempty"`

	// Start The starting date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must occur on or after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	Start string `form:"start" json:"start"`

	// End The ending date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time) The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must occur after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	End string `form:"end" json:"end"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryFlightsBetweenAirportsParams defines parameters for GetHistoryFlightsBetweenAirports.

type GetHistoryFlightsBetweenAirportsParamsType

type GetHistoryFlightsBetweenAirportsParamsType string

GetHistoryFlightsBetweenAirportsParamsType defines parameters for GetHistoryFlightsBetweenAirports.

const (
	GetHistoryFlightsBetweenAirportsParamsTypeAirline         GetHistoryFlightsBetweenAirportsParamsType = "Airline"
	GetHistoryFlightsBetweenAirportsParamsTypeGeneralAviation GetHistoryFlightsBetweenAirportsParamsType = "General_Aviation"
)

Defines values for GetHistoryFlightsBetweenAirportsParamsType.

type GetHistoryFlightsBetweenAirportsResponse

type GetHistoryFlightsBetweenAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HistoryFlightsBetweenAirports200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryFlightsBetweenAirportsResponse

func ParseGetHistoryFlightsBetweenAirportsResponse(rsp *http.Response) (*GetHistoryFlightsBetweenAirportsResponse, error)

ParseGetHistoryFlightsBetweenAirportsResponse parses an HTTP response from a GetHistoryFlightsBetweenAirportsWithResponse call

func (GetHistoryFlightsBetweenAirportsResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryFlightsBetweenAirportsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHistoryOperatorsFlightsParams

type GetHistoryOperatorsFlightsParams struct {
	// Start The starting date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time). The format is ISO8601 date or datetime, and the bound is
	// inclusive. Specified start date must occur on or after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	Start string `form:"start" json:"start"`

	// End The ending date range for flight results, comparing against flight's
	// `scheduled_off` field (which represents the flight’s planned OFF the
	// ground time) The format is ISO8601 date or datetime, and the bound is
	// exclusive. Specified end date must occur after 2011-01-01 00:00:00 UTC
	// and the most recent it can be is 15 days ago from today. If using date instead of datetime,
	// the time will default to 00:00:00Z.
	End string `form:"end" json:"end"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetHistoryOperatorsFlightsParams defines parameters for GetHistoryOperatorsFlights.

type GetHistoryOperatorsFlightsResponse

type GetHistoryOperatorsFlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *HistoryFlightsBetweenAirports200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetHistoryOperatorsFlightsResponse

func ParseGetHistoryOperatorsFlightsResponse(rsp *http.Response) (*GetHistoryOperatorsFlightsResponse, error)

ParseGetHistoryOperatorsFlightsResponse parses an HTTP response from a GetHistoryOperatorsFlightsWithResponse call

func (GetHistoryOperatorsFlightsResponse) Status

Status returns HTTPResponse.Status

func (GetHistoryOperatorsFlightsResponse) StatusCode

func (r GetHistoryOperatorsFlightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetNearbyAirportsParams

type GetNearbyAirportsParams struct {
	// Latitude The latitude of the point used to search for nearby airports
	Latitude float32 `form:"latitude" json:"latitude"`

	// Longitude The longitude of the point used to search for nearby airports
	Longitude float32 `form:"longitude" json:"longitude"`

	// Radius The search radius to use for finding nearby airports (statue miles)
	Radius int `form:"radius" json:"radius"`

	// OnlyIap Return only nearby airports with Instrument Approaches (also limits
	// results to North American airports)
	OnlyIap *bool `form:"only_iap,omitempty" json:"only_iap,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetNearbyAirportsParams defines parameters for GetNearbyAirports.

type GetNearbyAirportsResponse

type GetNearbyAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *NearbyAirports200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetNearbyAirportsResponse

func ParseGetNearbyAirportsResponse(rsp *http.Response) (*GetNearbyAirportsResponse, error)

ParseGetNearbyAirportsResponse parses an HTTP response from a GetNearbyAirportsWithResponse call

func (GetNearbyAirportsResponse) Status

func (r GetNearbyAirportsResponse) Status() string

Status returns HTTPResponse.Status

func (GetNearbyAirportsResponse) StatusCode

func (r GetNearbyAirportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorFlightsArrivedParams

type GetOperatorFlightsArrivedParams struct {
	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date or
	// datetime, and the bound is exclusive. Specified end date must be no
	// further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetOperatorFlightsArrivedParams defines parameters for GetOperatorFlightsArrived.

type GetOperatorFlightsArrivedResponse

type GetOperatorFlightsArrivedResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorFlightsArrived200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorFlightsArrivedResponse

func ParseGetOperatorFlightsArrivedResponse(rsp *http.Response) (*GetOperatorFlightsArrivedResponse, error)

ParseGetOperatorFlightsArrivedResponse parses an HTTP response from a GetOperatorFlightsArrivedWithResponse call

func (GetOperatorFlightsArrivedResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorFlightsArrivedResponse) StatusCode

func (r GetOperatorFlightsArrivedResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorFlightsCountResponse

type GetOperatorFlightsCountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorFlightsCount200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorFlightsCountResponse

func ParseGetOperatorFlightsCountResponse(rsp *http.Response) (*GetOperatorFlightsCountResponse, error)

ParseGetOperatorFlightsCountResponse parses an HTTP response from a GetOperatorFlightsCountWithResponse call

func (GetOperatorFlightsCountResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorFlightsCountResponse) StatusCode

func (r GetOperatorFlightsCountResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorFlightsEnrouteParams

type GetOperatorFlightsEnrouteParams struct {
	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date or
	// datetime, and the bound is exclusive. Specified end date must be no
	// further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetOperatorFlightsEnrouteParams defines parameters for GetOperatorFlightsEnroute.

type GetOperatorFlightsEnrouteResponse

type GetOperatorFlightsEnrouteResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorFlightsEnroute200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorFlightsEnrouteResponse

func ParseGetOperatorFlightsEnrouteResponse(rsp *http.Response) (*GetOperatorFlightsEnrouteResponse, error)

ParseGetOperatorFlightsEnrouteResponse parses an HTTP response from a GetOperatorFlightsEnrouteWithResponse call

func (GetOperatorFlightsEnrouteResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorFlightsEnrouteResponse) StatusCode

func (r GetOperatorFlightsEnrouteResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorFlightsParams

type GetOperatorFlightsParams struct {
	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date or
	// datetime, and the bound is exclusive. Specified end date must be no
	// further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetOperatorFlightsParams defines parameters for GetOperatorFlights.

type GetOperatorFlightsResponse

type GetOperatorFlightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorFlights200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorFlightsResponse

func ParseGetOperatorFlightsResponse(rsp *http.Response) (*GetOperatorFlightsResponse, error)

ParseGetOperatorFlightsResponse parses an HTTP response from a GetOperatorFlightsWithResponse call

func (GetOperatorFlightsResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorFlightsResponse) StatusCode

func (r GetOperatorFlightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorFlightsScheduledParams

type GetOperatorFlightsScheduledParams struct {
	// Start The starting date range for flight results. The format is ISO8601 date
	// or datetime, and the bound is inclusive. Specified start date must be
	// no further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	Start *string `form:"start,omitempty" json:"start,omitempty"`

	// End The ending date range for flight results. The format is ISO8601 date or
	// datetime, and the bound is exclusive. Specified end date must be no
	// further than 10 days in the past and 2 days in the future. If using
	// date instead of datetime, the time will default to 00:00:00Z.
	End *string `form:"end,omitempty" json:"end,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetOperatorFlightsScheduledParams defines parameters for GetOperatorFlightsScheduled.

type GetOperatorFlightsScheduledResponse

type GetOperatorFlightsScheduledResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorFlightsScheduled200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorFlightsScheduledResponse

func ParseGetOperatorFlightsScheduledResponse(rsp *http.Response) (*GetOperatorFlightsScheduledResponse, error)

ParseGetOperatorFlightsScheduledResponse parses an HTTP response from a GetOperatorFlightsScheduledWithResponse call

func (GetOperatorFlightsScheduledResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorFlightsScheduledResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetOperatorResponse

type GetOperatorResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorWithAlternatives
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorResponse

func ParseGetOperatorResponse(rsp *http.Response) (*GetOperatorResponse, error)

ParseGetOperatorResponse parses an HTTP response from a GetOperatorWithResponse call

func (GetOperatorResponse) Status

func (r GetOperatorResponse) Status() string

Status returns HTTPResponse.Status

func (GetOperatorResponse) StatusCode

func (r GetOperatorResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOperatorsCanonicalParams

type GetOperatorsCanonicalParams struct {
	// CountryCode An ISO 3166-1 alpha-2 country code.
	CountryCode *string `form:"country_code,omitempty" json:"country_code,omitempty"`
}

GetOperatorsCanonicalParams defines parameters for GetOperatorsCanonical.

type GetOperatorsCanonicalResponse

type GetOperatorsCanonicalResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *OperatorsCanonical200Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseGetOperatorsCanonicalResponse

func ParseGetOperatorsCanonicalResponse(rsp *http.Response) (*GetOperatorsCanonicalResponse, error)

ParseGetOperatorsCanonicalResponse parses an HTTP response from a GetOperatorsCanonicalWithResponse call

func (GetOperatorsCanonicalResponse) Status

Status returns HTTPResponse.Status

func (GetOperatorsCanonicalResponse) StatusCode

func (r GetOperatorsCanonicalResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRoutesBetweenAirportsParams

type GetRoutesBetweenAirportsParams struct {
	// SortBy Field to sort results by. "count" will sort results by the route
	// filing count (descending). "last_departure_time" will sort results by
	// the latest scheduled departure time for that route (descending).
	SortBy *GetRoutesBetweenAirportsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`

	// MaxFileAge Maximum filed plan age of flights to consider. Can be a value less
	// than or equal to 14 days (2 weeks) OR 1 month OR 1 year.
	MaxFileAge *string `form:"max_file_age,omitempty" json:"max_file_age,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetRoutesBetweenAirportsParams defines parameters for GetRoutesBetweenAirports.

type GetRoutesBetweenAirportsParamsSortBy

type GetRoutesBetweenAirportsParamsSortBy string

GetRoutesBetweenAirportsParamsSortBy defines parameters for GetRoutesBetweenAirports.

const (
	Count             GetRoutesBetweenAirportsParamsSortBy = "count"
	LastDepartureTime GetRoutesBetweenAirportsParamsSortBy = "last_departure_time"
)

Defines values for GetRoutesBetweenAirportsParamsSortBy.

type GetRoutesBetweenAirportsResponse

type GetRoutesBetweenAirportsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RoutesBetweenAirports200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetRoutesBetweenAirportsResponse

func ParseGetRoutesBetweenAirportsResponse(rsp *http.Response) (*GetRoutesBetweenAirportsResponse, error)

ParseGetRoutesBetweenAirportsResponse parses an HTTP response from a GetRoutesBetweenAirportsWithResponse call

func (GetRoutesBetweenAirportsResponse) Status

Status returns HTTPResponse.Status

func (GetRoutesBetweenAirportsResponse) StatusCode

func (r GetRoutesBetweenAirportsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSchedulesByDateParams

type GetSchedulesByDateParams struct {
	// Origin Only return flights with this origin airport. ICAO or IATA airport codes
	// can be provided.
	Origin *string `form:"origin,omitempty" json:"origin,omitempty"`

	// Destination Only return flights with this destination airport. ICAO or IATA airport codes
	// can be provided.
	Destination *string `form:"destination,omitempty" json:"destination,omitempty"`

	// Airline Only return flights flown by this carrier. ICAO or IATA carrier codes
	// can be provided.
	Airline *string `form:"airline,omitempty" json:"airline,omitempty"`

	// FlightNumber Only return flights with this flight number.
	FlightNumber *int32 `form:"flight_number,omitempty" json:"flight_number,omitempty"`

	// IncludeCodeshares Flag indicating whether ticketing codeshares should be returned as well.
	IncludeCodeshares *bool `form:"include_codeshares,omitempty" json:"include_codeshares,omitempty"`

	// IncludeRegional Flag indicating whether regional codeshares should be returned as well.
	IncludeRegional *bool `form:"include_regional,omitempty" json:"include_regional,omitempty"`

	// MaxPages Maximum number of pages to fetch. This is an upper limit and not a guarantee of how many pages will be returned.
	MaxPages *int `form:"max_pages,omitempty" json:"max_pages,omitempty"`

	// Cursor Opaque value used to get the next batch of data from a paged collection.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}

GetSchedulesByDateParams defines parameters for GetSchedulesByDate.

type GetSchedulesByDateResponse

type GetSchedulesByDateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SchedulesByDate200Response
	JSON400      *FlightsBySearch400Response
}

func ParseGetSchedulesByDateResponse

func ParseGetSchedulesByDateResponse(rsp *http.Response) (*GetSchedulesByDateResponse, error)

ParseGetSchedulesByDateResponse parses an HTTP response from a GetSchedulesByDateWithResponse call

func (GetSchedulesByDateResponse) Status

Status returns HTTPResponse.Status

func (GetSchedulesByDateResponse) StatusCode

func (r GetSchedulesByDateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HistoryAircraftLastFlight200Response added in v0.2.0

type HistoryAircraftLastFlight200Response struct {
	Flights []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type HistoryAircraftLastFlight200ResponseFlightsType `json:"type"`
	} `json:"flights"`
}

HistoryAircraftLastFlight200Response defines model for HistoryAircraftLastFlight200Response.

type HistoryAircraftLastFlight200ResponseFlightsType added in v0.2.0

type HistoryAircraftLastFlight200ResponseFlightsType string

HistoryAircraftLastFlight200ResponseFlightsType Whether this is a commercial or general aviation flight.

const (
	HistoryAircraftLastFlight200ResponseFlightsTypeAirline         HistoryAircraftLastFlight200ResponseFlightsType = "Airline"
	HistoryAircraftLastFlight200ResponseFlightsTypeGeneralAviation HistoryAircraftLastFlight200ResponseFlightsType = "General_Aviation"
)

Defines values for HistoryAircraftLastFlight200ResponseFlightsType.

type HistoryFlightsBetweenAirports200Response added in v0.2.0

type HistoryFlightsBetweenAirports200Response struct {
	Flights []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type HistoryFlightsBetweenAirports200ResponseFlightsType `json:"type"`
	} `json:"flights"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

HistoryFlightsBetweenAirports200Response defines model for HistoryFlightsBetweenAirports200Response.

type HistoryFlightsBetweenAirports200ResponseFlightsType added in v0.2.0

type HistoryFlightsBetweenAirports200ResponseFlightsType string

HistoryFlightsBetweenAirports200ResponseFlightsType Whether this is a commercial or general aviation flight.

const (
	HistoryFlightsBetweenAirports200ResponseFlightsTypeAirline         HistoryFlightsBetweenAirports200ResponseFlightsType = "Airline"
	HistoryFlightsBetweenAirports200ResponseFlightsTypeGeneralAviation HistoryFlightsBetweenAirports200ResponseFlightsType = "General_Aviation"
)

Defines values for HistoryFlightsBetweenAirports200ResponseFlightsType.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type NearbyAirports200Response added in v0.2.0

type NearbyAirports200Response struct {
	Airports []struct {
		// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
		AirportCode string `json:"airport_code"`

		// AirportFlightsUrl The URL to flights for this airport
		AirportFlightsUrl string `json:"airport_flights_url"`

		// AlternateIdent IATA or LID identifier for the airport. (Deprecated, use code_iata for the IATA identifier or code_lid for the LID identifier instead.)
		// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
		AlternateIdent *string `json:"alternate_ident"`

		// City Closest city to the airport
		City string `json:"city"`

		// CodeIata IATA identifier for the airport if known
		CodeIata *string `json:"code_iata"`

		// CodeIcao ICAO identifier for the airport if known
		CodeIcao *string `json:"code_icao"`

		// CodeLid LID identifier for the airport if known
		CodeLid *string `json:"code_lid"`

		// CountryCode 2-letter code of country where the airport resides (ISO 3166-1 alpha-2)
		CountryCode string `json:"country_code"`

		// Direction Cardinal direction from specified location to airport
		Direction NearbyAirports200ResponseAirportsDirection `json:"direction"`

		// Distance Distance of airport from the specified location (statute miles)
		Distance int `json:"distance"`

		// Elevation Height above Mean Sea Level (MSL)
		Elevation float32 `json:"elevation"`

		// Heading Direction from specified location to airport (degrees)
		Heading int `json:"heading"`

		// Latitude Airport's latitude, generally the center point of the airport
		Latitude float32 `json:"latitude"`

		// Longitude Airport's longitude, generally the center point of the airport
		Longitude float32 `json:"longitude"`

		// Name Common name for the airport
		Name string `json:"name"`

		// State State/province where the airport resides if applicable. For US states
		// this will be their 2-letter code; for provinces or other entities, it
		// will be the full name.
		State string `json:"state"`

		// Timezone Applicable timezone for the airport, in the TZ database format
		Timezone string `json:"timezone"`

		// Type Type of airport
		Type *NearbyAirports200ResponseAirportsType `json:"type"`

		// WikiUrl Link to the wikipedia page for the airport
		WikiUrl *string `json:"wiki_url"`
	} `json:"airports"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

NearbyAirports200Response defines model for NearbyAirports200Response.

type NearbyAirports200ResponseAirportsDirection added in v0.2.0

type NearbyAirports200ResponseAirportsDirection string

NearbyAirports200ResponseAirportsDirection Cardinal direction from specified location to airport

type NearbyAirports200ResponseAirportsType added in v0.2.0

type NearbyAirports200ResponseAirportsType string

NearbyAirports200ResponseAirportsType Type of airport

const (
	NearbyAirports200ResponseAirportsTypeAirport      NearbyAirports200ResponseAirportsType = "Airport"
	NearbyAirports200ResponseAirportsTypeBalloonport  NearbyAirports200ResponseAirportsType = "Balloonport"
	NearbyAirports200ResponseAirportsTypeGliderport   NearbyAirports200ResponseAirportsType = "Gliderport"
	NearbyAirports200ResponseAirportsTypeHeliport     NearbyAirports200ResponseAirportsType = "Heliport"
	NearbyAirports200ResponseAirportsTypeLessThannil  NearbyAirports200ResponseAirportsType = "<nil>"
	NearbyAirports200ResponseAirportsTypeSeaplaneBase NearbyAirports200ResponseAirportsType = "Seaplane Base"
	NearbyAirports200ResponseAirportsTypeStolport     NearbyAirports200ResponseAirportsType = "Stolport"
	NearbyAirports200ResponseAirportsTypeUltralight   NearbyAirports200ResponseAirportsType = "Ultralight"
)

Defines values for NearbyAirports200ResponseAirportsType.

type Operator added in v0.2.0

type Operator struct {
	// Callsign The operator's ICAO telephony name (callsign) used with air traffic
	// control.
	Callsign *string `json:"callsign"`

	// Country Country where operator is headquartered.
	Country *string `json:"country"`

	// Iata The operator's IATA code.
	Iata *string `json:"iata"`

	// Icao The operator's ICAO code.
	Icao *string `json:"icao"`

	// Location Potentially a more specific location where the operator is based. May
	// specify city, state, province, etc.
	Location *string `json:"location"`

	// Name The operator's name. Typically the legal business name.
	Name string `json:"name"`

	// Phone Public phone number for the operator.
	Phone *string `json:"phone"`

	// Shortname Shorter version of the operator's name. Typically the "doing business as"
	// name, when different than "name."
	Shortname *string `json:"shortname"`

	// Url URL of operator's website.
	Url *string `json:"url"`

	// WikiUrl URL of operator's Wikipedia page.
	WikiUrl *string `json:"wiki_url"`
}

Operator defines model for Operator.

type OperatorFlights200Response added in v0.2.0

type OperatorFlights200Response struct {
	Arrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlights200ResponseArrivalsType `json:"type"`
	} `json:"arrivals"`
	Enroute []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlights200ResponseEnrouteType `json:"type"`
	} `json:"enroute"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages  int `json:"num_pages"`
	Scheduled []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlights200ResponseScheduledType `json:"type"`
	} `json:"scheduled"`
}

OperatorFlights200Response defines model for OperatorFlights200Response.

type OperatorFlights200ResponseArrivalsType added in v0.2.0

type OperatorFlights200ResponseArrivalsType string

OperatorFlights200ResponseArrivalsType Whether this is a commercial or general aviation flight.

const (
	OperatorFlights200ResponseArrivalsTypeAirline         OperatorFlights200ResponseArrivalsType = "Airline"
	OperatorFlights200ResponseArrivalsTypeGeneralAviation OperatorFlights200ResponseArrivalsType = "General_Aviation"
)

Defines values for OperatorFlights200ResponseArrivalsType.

type OperatorFlights200ResponseEnrouteType added in v0.2.0

type OperatorFlights200ResponseEnrouteType string

OperatorFlights200ResponseEnrouteType Whether this is a commercial or general aviation flight.

const (
	OperatorFlights200ResponseEnrouteTypeAirline         OperatorFlights200ResponseEnrouteType = "Airline"
	OperatorFlights200ResponseEnrouteTypeGeneralAviation OperatorFlights200ResponseEnrouteType = "General_Aviation"
)

Defines values for OperatorFlights200ResponseEnrouteType.

type OperatorFlights200ResponseScheduledType added in v0.2.0

type OperatorFlights200ResponseScheduledType string

OperatorFlights200ResponseScheduledType Whether this is a commercial or general aviation flight.

const (
	OperatorFlights200ResponseScheduledTypeAirline         OperatorFlights200ResponseScheduledType = "Airline"
	OperatorFlights200ResponseScheduledTypeGeneralAviation OperatorFlights200ResponseScheduledType = "General_Aviation"
)

Defines values for OperatorFlights200ResponseScheduledType.

type OperatorFlightsArrived200Response added in v0.2.0

type OperatorFlightsArrived200Response struct {
	Arrivals []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlightsArrived200ResponseArrivalsType `json:"type"`
	} `json:"arrivals"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

OperatorFlightsArrived200Response defines model for OperatorFlightsArrived200Response.

type OperatorFlightsArrived200ResponseArrivalsType added in v0.2.0

type OperatorFlightsArrived200ResponseArrivalsType string

OperatorFlightsArrived200ResponseArrivalsType Whether this is a commercial or general aviation flight.

const (
	OperatorFlightsArrived200ResponseArrivalsTypeAirline         OperatorFlightsArrived200ResponseArrivalsType = "Airline"
	OperatorFlightsArrived200ResponseArrivalsTypeGeneralAviation OperatorFlightsArrived200ResponseArrivalsType = "General_Aviation"
)

Defines values for OperatorFlightsArrived200ResponseArrivalsType.

type OperatorFlightsCount200Response added in v0.2.0

type OperatorFlightsCount200Response struct {
	// Airborne The number of currently airborne flights for this operator.
	Airborne int `json:"airborne"`

	// FlightsLast24Hours The number of flights departed in the last 24 hours for this operator,
	// including airborne flights.
	FlightsLast24Hours int `json:"flights_last_24_hours"`
}

OperatorFlightsCount200Response defines model for OperatorFlightsCount200Response.

type OperatorFlightsEnroute200Response added in v0.2.0

type OperatorFlightsEnroute200Response struct {
	Enroute []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlightsEnroute200ResponseEnrouteType `json:"type"`
	} `json:"enroute"`

	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
}

OperatorFlightsEnroute200Response defines model for OperatorFlightsEnroute200Response.

type OperatorFlightsEnroute200ResponseEnrouteType added in v0.2.0

type OperatorFlightsEnroute200ResponseEnrouteType string

OperatorFlightsEnroute200ResponseEnrouteType Whether this is a commercial or general aviation flight.

const (
	OperatorFlightsEnroute200ResponseEnrouteTypeAirline         OperatorFlightsEnroute200ResponseEnrouteType = "Airline"
	OperatorFlightsEnroute200ResponseEnrouteTypeGeneralAviation OperatorFlightsEnroute200ResponseEnrouteType = "General_Aviation"
)

Defines values for OperatorFlightsEnroute200ResponseEnrouteType.

type OperatorFlightsScheduled200Response added in v0.2.0

type OperatorFlightsScheduled200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages  int `json:"num_pages"`
	Scheduled []struct {
		// ActualIn Actual gate arrival time.
		ActualIn *time.Time `json:"actual_in"`

		// ActualOff Actual runway departure time.
		ActualOff *time.Time `json:"actual_off"`

		// ActualOn Actual runway arrival time.
		ActualOn *time.Time `json:"actual_on"`

		// ActualOut Actual gate departure time.
		ActualOut *time.Time `json:"actual_out"`

		// ActualRunwayOff Actual departure runway at origin, when known
		ActualRunwayOff *string `json:"actual_runway_off"`

		// ActualRunwayOn Actual arrival runway at destination, when known
		ActualRunwayOn *string `json:"actual_runway_on"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given
		// when the ICAO code is not known.
		AircraftType *string `json:"aircraft_type"`

		// ArrivalDelay Arrival delay (in seconds) based on either actual or estimated gate
		// arrival time. If gate time is unavailable then based on runway arrival
		// time. A negative value indicates the flight is early.
		ArrivalDelay *int `json:"arrival_delay"`

		// AtcIdent The ident of the flight for Air Traffic Control purposes, when known and different than ident.
		AtcIdent *string `json:"atc_ident"`

		// BaggageClaim Baggage claim location at the destination airport.
		BaggageClaim *string `json:"baggage_claim"`

		// Blocked Flag indicating whether this flight is blocked from public viewing.
		Blocked bool `json:"blocked"`

		// Cancelled Flag indicating that the flight is no longer being tracked by
		// FlightAware. There are a number of reasons this could happen
		// including cancellation by the airline, but that will not always be the
		// case.
		Cancelled bool `json:"cancelled"`

		// Codeshares List of any ICAO codeshares operating on this flight.
		Codeshares *[]string `json:"codeshares"`

		// CodesharesIata List of any IATA codeshares operating on this flight.
		CodesharesIata *[]string `json:"codeshares_iata"`

		// DepartureDelay Departure delay (in seconds) based on either actual or estimated gate
		// departure time. If gate time is unavailable then based on runway departure
		// time. A negative value indicates the flight is early.
		DepartureDelay *int `json:"departure_delay"`

		// Destination Information for this flight's destination airport.
		Destination *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"destination"`

		// Diverted Flag indicating whether this flight was diverted.
		Diverted bool `json:"diverted"`

		// EstimatedIn Estimated gate arrival time.
		EstimatedIn *time.Time `json:"estimated_in"`

		// EstimatedOff Estimated runway departure time.
		EstimatedOff *time.Time `json:"estimated_off"`

		// EstimatedOn Estimated runway arrival time.
		EstimatedOn *time.Time `json:"estimated_on"`

		// EstimatedOut Estimated gate departure time.
		EstimatedOut *time.Time `json:"estimated_out"`

		// FaFlightId Unique identifier assigned by FlightAware for this specific flight. If
		// the flight is diverted, the new leg of the flight will have a duplicate
		// fa_flight_id.
		FaFlightId string `json:"fa_flight_id"`

		// FiledAirspeed Filed IFR airspeed (knots).
		FiledAirspeed *int `json:"filed_airspeed"`

		// FiledAltitude Filed IFR altitude (100s of feet).
		FiledAltitude *int `json:"filed_altitude"`

		// FiledEte Runway-to-runway filed duration (seconds).
		FiledEte *int `json:"filed_ete"`

		// FlightNumber Bare flight number of the flight.
		FlightNumber *string `json:"flight_number"`

		// GateDestination Arrival gate at the destination airport.
		GateDestination *string `json:"gate_destination"`

		// GateOrigin Departure gate at the origin airport.
		GateOrigin *string `json:"gate_origin"`

		// Ident Either the operator code followed by the flight number for the flight
		// (for commercial flights) or the aircraft's registration (for general
		// aviation).
		Ident string `json:"ident"`

		// IdentIata The IATA operator code followed by the flight number for the flight (for commercial flights)
		IdentIata *string `json:"ident_iata"`

		// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
		IdentIcao *string `json:"ident_icao"`

		// InboundFaFlightId Unique identifier assigned by FlightAware for the previous flight of the
		// aircraft serving this flight.
		InboundFaFlightId *string `json:"inbound_fa_flight_id"`

		// Operator ICAO code, if exists, of the operator of the flight, otherwise the IATA code
		Operator *string `json:"operator"`

		// OperatorIata IATA code of the operator of the flight.
		OperatorIata *string `json:"operator_iata"`

		// OperatorIcao ICAO code of the operator of the flight.
		OperatorIcao *string `json:"operator_icao"`

		// Origin Information for this flight's origin airport.
		Origin *struct {
			// AirportInfoUrl The URL to more information about the airport. Will be null for position-only flights.
			AirportInfoUrl *string `json:"airport_info_url"`

			// City Closest city to the airport
			City *string `json:"city"`

			// Code ICAO/IATA/LID code or string indicating the location where
			// tracking of the flight began/ended for position-only flights.
			Code *string `json:"code"`

			// CodeIata IATA code
			CodeIata *string `json:"code_iata"`

			// CodeIcao ICAO code
			CodeIcao *string `json:"code_icao"`

			// CodeLid LID code
			CodeLid *string `json:"code_lid"`

			// Name Common name of airport
			Name *string `json:"name"`

			// Timezone Applicable timezone for the airport, in the TZ database format
			Timezone *string `json:"timezone"`
		} `json:"origin"`

		// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
		PositionOnly bool `json:"position_only"`

		// ProgressPercent The percent completion of a flight, based on runway departure/arrival. Null
		// for en route position-only flights.
		ProgressPercent *int `json:"progress_percent"`

		// Registration Aircraft registration (tail number) of the aircraft, when known.
		Registration *string `json:"registration"`

		// Route The textual description of the flight's route.
		Route *string `json:"route"`

		// RouteDistance Planned flight distance (statute miles) based on the filed route. May
		// vary from actual flown distance.
		RouteDistance *int `json:"route_distance"`

		// ScheduledIn Scheduled gate arrival time.
		ScheduledIn *time.Time `json:"scheduled_in"`

		// ScheduledOff Scheduled runway departure time.
		ScheduledOff *time.Time `json:"scheduled_off"`

		// ScheduledOn Scheduled runway arrival time.
		ScheduledOn *time.Time `json:"scheduled_on"`

		// ScheduledOut Scheduled gate departure time.
		ScheduledOut *time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin.
		SeatsCabinBusiness *int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach cabin.
		SeatsCabinCoach *int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin.
		SeatsCabinFirst *int `json:"seats_cabin_first"`

		// Status Human-readable summary of flight status.
		Status string `json:"status"`

		// TerminalDestination Arrival terminal at the destination airport.
		TerminalDestination *string `json:"terminal_destination"`

		// TerminalOrigin Departure terminal at the origin airport.
		TerminalOrigin *string `json:"terminal_origin"`

		// Type Whether this is a commercial or general aviation flight.
		Type OperatorFlightsScheduled200ResponseScheduledType `json:"type"`
	} `json:"scheduled"`
}

OperatorFlightsScheduled200Response defines model for OperatorFlightsScheduled200Response.

type OperatorFlightsScheduled200ResponseScheduledType added in v0.2.0

type OperatorFlightsScheduled200ResponseScheduledType string

OperatorFlightsScheduled200ResponseScheduledType Whether this is a commercial or general aviation flight.

const (
	OperatorFlightsScheduled200ResponseScheduledTypeAirline         OperatorFlightsScheduled200ResponseScheduledType = "Airline"
	OperatorFlightsScheduled200ResponseScheduledTypeGeneralAviation OperatorFlightsScheduled200ResponseScheduledType = "General_Aviation"
)

Defines values for OperatorFlightsScheduled200ResponseScheduledType.

type OperatorWithAlternatives added in v0.2.0

type OperatorWithAlternatives struct {
	// Alternatives An array of other possible matches
	Alternatives *[]Operator `json:"alternatives,omitempty"`

	// Callsign The operator's ICAO telephony name (callsign) used with air traffic
	// control.
	Callsign *string `json:"callsign"`

	// Country Country where operator is headquartered.
	Country *string `json:"country"`

	// Iata The operator's IATA code.
	Iata *string `json:"iata"`

	// Icao The operator's ICAO code.
	Icao *string `json:"icao"`

	// Location Potentially a more specific location where the operator is based. May
	// specify city, state, province, etc.
	Location *string `json:"location"`

	// Name The operator's name. Typically the legal business name.
	Name string `json:"name"`

	// Phone Public phone number for the operator.
	Phone *string `json:"phone"`

	// Shortname Shorter version of the operator's name. Typically the "doing business as"
	// name, when different than "name."
	Shortname *string `json:"shortname"`

	// Url URL of operator's website.
	Url *string `json:"url"`

	// WikiUrl URL of operator's Wikipedia page.
	WikiUrl *string `json:"wiki_url"`
}

OperatorWithAlternatives defines model for OperatorWithAlternatives.

type OperatorsCanonical200Response added in v0.2.0

type OperatorsCanonical200Response struct {
	Operators []struct {
		// Id Operator id for use in the API
		Id string `json:"id"`

		// IdType Operator id type
		IdType OperatorsCanonical200ResponseOperatorsIdType `json:"id_type"`
	} `json:"operators"`
}

OperatorsCanonical200Response defines model for OperatorsCanonical200Response.

type OperatorsCanonical200ResponseOperatorsIdType added in v0.2.0

type OperatorsCanonical200ResponseOperatorsIdType string

OperatorsCanonical200ResponseOperatorsIdType Operator id type

const (
	OperatorsCanonical200ResponseOperatorsIdTypeIata OperatorsCanonical200ResponseOperatorsIdType = "iata"
	OperatorsCanonical200ResponseOperatorsIdTypeIcao OperatorsCanonical200ResponseOperatorsIdType = "icao"
)

Defines values for OperatorsCanonical200ResponseOperatorsIdType.

type PostFlightsByIdentJSONBody added in v0.2.0

type PostFlightsByIdentJSONBody struct {
	// AircraftType Aircraft type ICAO code.
	AircraftType string `json:"aircraft_type"`

	// Airspeed Cruising airspeed (knots).
	Airspeed *int `json:"airspeed,omitempty"`

	// Altitude Cruising altitude (feet).
	Altitude *int `json:"altitude,omitempty"`

	// Destination Destination airport ICAO code or LID.
	Destination string `json:"destination"`

	// IntendedOff Intended runway departure time of flight. This must be within 2 hours of
	// the actual departure time or the flight intent will be ignored. Time may
	// not be more than 1 hour in the past or 48 hours in the future.
	IntendedOff time.Time `json:"intended_off"`

	// IntendedOn Intended runway arrival time of flight.
	IntendedOn time.Time `json:"intended_on"`

	// Origin Origin airport ICAO code or LID.
	Origin string `json:"origin"`

	// Route Flight route as a series of space-separate waypoints.
	Route *string `json:"route,omitempty"`
}

PostFlightsByIdentJSONBody defines parameters for PostFlightsByIdent.

type PostFlightsByIdentJSONRequestBody added in v0.2.0

type PostFlightsByIdentJSONRequestBody PostFlightsByIdentJSONBody

PostFlightsByIdentJSONRequestBody defines body for PostFlightsByIdent for application/json ContentType.

type PostFlightsByIdentResponse

type PostFlightsByIdentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
}

func ParsePostFlightsByIdentResponse

func ParsePostFlightsByIdentResponse(rsp *http.Response) (*PostFlightsByIdentResponse, error)

ParsePostFlightsByIdentResponse parses an HTTP response from a PostFlightsByIdentWithResponse call

func (PostFlightsByIdentResponse) Status

Status returns HTTPResponse.Status

func (PostFlightsByIdentResponse) StatusCode

func (r PostFlightsByIdentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RoutesBetweenAirports200Response added in v0.2.0

type RoutesBetweenAirports200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages int `json:"num_pages"`
	Routes   []struct {
		// AircraftTypes List of aircraft types that have filed this route
		AircraftTypes []string `json:"aircraft_types"`

		// Count The number of flights with this filed route
		Count int `json:"count"`

		// FiledAltitudeMax The highest altitude filed for the route (hundreds of feet)
		FiledAltitudeMax int `json:"filed_altitude_max"`

		// FiledAltitudeMin The lowest altitude filed for the route (hundreds of feet)
		FiledAltitudeMin int `json:"filed_altitude_min"`

		// LastDepartureTime The latest departure time for a flight operating on this route
		LastDepartureTime time.Time `json:"last_departure_time"`

		// Route The IFR route assigned
		Route string `json:"route"`

		// RouteDistance The distance as filed for the route. May vary from the actual distance flown. Includes units in string.
		RouteDistance string `json:"route_distance"`
	} `json:"routes"`
}

RoutesBetweenAirports200Response defines model for RoutesBetweenAirports200Response.

type SchedulesByDate200Response added in v0.2.0

type SchedulesByDate200Response struct {
	// Links Object containing links to related resources.
	Links *struct {
		// Next A link to the next set of records in a collection.
		Next string `json:"next"`
	} `json:"links"`

	// NumPages Number of pages returned
	NumPages  int `json:"num_pages"`
	Scheduled []struct {
		// ActualIdent If ident is a codeshare flight, this is the primary identifier used by the operator
		ActualIdent *string `json:"actual_ident"`

		// ActualIdentIata If ident is a codeshare flight, this is the primary identifier used by the operator in IATA format
		ActualIdentIata *string `json:"actual_ident_iata"`

		// ActualIdentIcao If ident is a codeshare flight, this is the primary identifier used by the operator in ICAO format
		ActualIdentIcao *string `json:"actual_ident_icao"`

		// AircraftType Aircraft type will generally be ICAO code, but IATA code will be given when the ICAO code is not known
		AircraftType string `json:"aircraft_type"`

		// Destination The destination airport's identifier code
		Destination string `json:"destination"`

		// DestinationIata The destination airport's IATA code
		DestinationIata *string `json:"destination_iata"`

		// DestinationIcao The destination airport's ICAO code
		DestinationIcao *string `json:"destination_icao"`

		// DestinationLid The destination airport's LID
		DestinationLid *string `json:"destination_lid"`

		// FaFlightId Unique FlightAware ID for flight. Will be null for flights
		// scheduled more than a few days in the future.
		FaFlightId *string `json:"fa_flight_id"`

		// Ident Flight ident
		Ident string `json:"ident"`

		// IdentIata Flight ident in IATA format
		IdentIata *string `json:"ident_iata"`

		// IdentIcao Flight ident in ICAO format
		IdentIcao *string `json:"ident_icao"`

		// MealService Meal service offered on the flight
		MealService string `json:"meal_service"`

		// Origin The origin airport's identifier code
		Origin string `json:"origin"`

		// OriginIata The origin airport's IATA code
		OriginIata *string `json:"origin_iata"`

		// OriginIcao The origin airport's ICAO code
		OriginIcao *string `json:"origin_icao"`

		// OriginLid The origin airport's LID
		OriginLid *string `json:"origin_lid"`

		// ScheduledIn Scheduled time of arrival at gate
		ScheduledIn time.Time `json:"scheduled_in"`

		// ScheduledOut Scheduled time of departure from gate
		ScheduledOut time.Time `json:"scheduled_out"`

		// SeatsCabinBusiness Number of seats in the business class cabin
		SeatsCabinBusiness int `json:"seats_cabin_business"`

		// SeatsCabinCoach Number of seats in the coach class cabin
		SeatsCabinCoach int `json:"seats_cabin_coach"`

		// SeatsCabinFirst Number of seats in the first class cabin
		SeatsCabinFirst int `json:"seats_cabin_first"`
	} `json:"scheduled"`
}

SchedulesByDate200Response defines model for SchedulesByDate200Response.

type SetAlertsEndpointJSONBody added in v0.2.0

type SetAlertsEndpointJSONBody struct {
	// Url Default account-wide URL that will be POSTed to for flight alerts.
	Url *string `json:"url"`
}

SetAlertsEndpointJSONBody defines parameters for SetAlertsEndpoint.

type SetAlertsEndpointJSONRequestBody added in v0.2.0

type SetAlertsEndpointJSONRequestBody SetAlertsEndpointJSONBody

SetAlertsEndpointJSONRequestBody defines body for SetAlertsEndpoint for application/json ContentType.

type SetAlertsEndpointResponse

type SetAlertsEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
}

func ParseSetAlertsEndpointResponse

func ParseSetAlertsEndpointResponse(rsp *http.Response) (*SetAlertsEndpointResponse, error)

ParseSetAlertsEndpointResponse parses an HTTP response from a SetAlertsEndpointWithResponse call

func (SetAlertsEndpointResponse) Status

func (r SetAlertsEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (SetAlertsEndpointResponse) StatusCode

func (r SetAlertsEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateAlertJSONBody added in v0.2.0

type UpdateAlertJSONBody struct {
	// AircraftType Aircraft type ICAO code to alert on.
	AircraftType *string `json:"aircraft_type"`

	// Destination Destination airport ICAO, IATA, or LID code to alert on.
	Destination *string `json:"destination"`

	// Enabled Whether alert is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// End End date of alert (inclusive). Should be in departure airport's
	// timezone.
	End *openapi_types.Date `json:"end"`

	// Eta How many minutes before a flight's ETA that an alert should be
	// delivered. Alerts will only be delivered after the flight has been in
	// the air for at least 15 minutes. Set to 0 to disable.
	Eta    *int `json:"eta,omitempty"`
	Events *struct {
		// Arrival Whether alerts should be delivered on arrival. FlightAware
		// Global customers will also receive \"taxi stop\" Ready To Taxi™
		// alerts unless they've opted out.
		Arrival bool `json:"arrival"`

		// Cancelled Whether alerts should be delivered on cancellation
		// airline events. Both cancelled and uncancelled events
		// will generate alerts. A max of three cancelled alerts
		// and three uncancelled alerts will be sent for a
		// single configured cancelled alert. The cancelled and an
		// uncancelled alert count operate independently meaning
		// you can get a max of 3 for each of the cancelled and
		// uncancelled events.
		Cancelled bool `json:"cancelled"`

		// Departure Whether alerts should be delivered on departure. FlightAware
		// Global customers will also receive \"power on\" and \"taxi start\"
		// Ready To Taxi™ alerts unless they've opted out.
		Departure bool `json:"departure"`

		// Diverted Whether alerts should be delivered on diversion
		Diverted bool `json:"diverted"`

		// Filed Whether alerts should be delivered on filing
		Filed bool `json:"filed"`

		// HoldEnd Whether alerts should be delivered on end datetime of hold exit
		// (will be null for hold_entry event)
		HoldEnd bool `json:"hold_end"`

		// HoldStart Whether alerts should be delivered on start datetime of hold detection
		HoldStart bool `json:"hold_start"`

		// In Whether alerts should be delivered when aircraft enters arrival gate
		In bool `json:"in"`

		// Off Whether alerts should be delivered when aircraft leaves the runway
		Off bool `json:"off"`

		// On Whether alerts should be delivered when aircraft touches down on runway
		On bool `json:"on"`

		// Out Whether alerts should be delivered when aircraft leaves departure gate
		Out bool `json:"out"`
	} `json:"events,omitempty"`

	// Ident Ident to alert on. This value may be modified based on codeshare
	// resolution. If that occurs, the originally provided ident will be
	// preserved in the user_ident field.
	Ident *string `json:"ident"`

	// ImpendingArrival List of minutes before a flight's arrival time that alerts should be delivered.
	// Limited to 15 minutes after actual departure and available
	// throughout the duration of the flight. No more than 10
	// impending arrival alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingArrival *[]int `json:"impending_arrival"`

	// ImpendingDeparture List of minutes before a flight's departure time that alerts should be delivered.
	// Limited to 60 minutes prior to estimated departure until actual departure,
	// implying a valid range of 60 - 5 minutes. No more than 10 impending departure
	// alerts can be configured for an individual flight. By default,
	// this field is set to null and when set to either null or an empty array,
	// this feature will not be configured for the alert.
	ImpendingDeparture *[]int `json:"impending_departure"`

	// MaxWeekly Reject the new alert if the estimated number of triggered alerts
	// per week based on historical flight trends would exceed this value.
	// The threshold only considers alerts triggered by this alert config
	// (it is not a total for all previously configured alerts). Check is
	// only applied at alert creation/modification, and does and does not
	// prevent alerts from being delivered even if they exceed the given
	// amount. If your alert request is rejected, consider adding additional
	// filter criteria for the alert creation to further refine the config.
	// If max_weekly is not specified for a standard customer, we default the
	// max_weekly to 1000. For a premium customer, we default the max_weekly
	// to 4000.
	MaxWeekly *int `json:"max_weekly,omitempty"`

	// Origin Origin airport ICAO, IATA, or LID code to alert on.
	Origin *string `json:"origin"`

	// Start Start date of alert. Should be in departure airport's
	// timezone.
	Start *openapi_types.Date `json:"start"`

	// TargetUrl Alert specific URL to deliver to. If null, then the alert
	// will be delivered to the configured account-wide alert URL
	// target.
	TargetUrl *string `json:"target_url"`
}

UpdateAlertJSONBody defines parameters for UpdateAlert.

type UpdateAlertJSONRequestBody added in v0.2.0

type UpdateAlertJSONRequestBody UpdateAlertJSONBody

UpdateAlertJSONRequestBody defines body for UpdateAlert for application/json ContentType.

type UpdateAlertResponse

type UpdateAlertResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *FlightsBySearch400Response
	JSON404      *FlightsBySearch400Response
}

func ParseUpdateAlertResponse

func ParseUpdateAlertResponse(rsp *http.Response) (*UpdateAlertResponse, error)

ParseUpdateAlertResponse parses an HTTP response from a UpdateAlertWithResponse call

func (UpdateAlertResponse) Status

func (r UpdateAlertResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateAlertResponse) StatusCode

func (r UpdateAlertResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Directories

Path Synopsis
cmd
specfmt command
Command specfmt refactors OpenAPI 3.0 YAML specs to extract inline response schemas into named components/schemas for better code generation.
Command specfmt refactors OpenAPI 3.0 YAML specs to extract inline response schemas into named components/schemas for better code generation.
internal
specfmt
Package specfmt provides utilities for refactoring OpenAPI 3.0 YAML specs to extract inline schemas into named components/schemas.
Package specfmt provides utilities for refactoring OpenAPI 3.0 YAML specs to extract inline schemas into named components/schemas.

Jump to

Keyboard shortcuts

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