Documentation
¶
Overview ¶
Package flightaware provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateAlertRequestWithApplicationJSONCharsetUTF8Body(server string, body CreateAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
- func NewCreateAlertRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAlertRequest(server string, id int) (*http.Request, error)
- func NewDeleteAlertsEndpointRequest(server string) (*http.Request, error)
- func NewDeliverAlertCallbackRequestWithApplicationJSONCharsetUTF8Body(targetURL string, body DeliverAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
- func NewDeliverAlertCallbackRequestWithBody(targetURL string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAccountUsageRequest(server string, params *GetAccountUsageParams) (*http.Request, error)
- func NewGetAircraftBlockedRequest(server string, ident string) (*http.Request, error)
- func NewGetAircraftOwnerRequest(server string, ident string) (*http.Request, error)
- func NewGetAirportDelaysRequest(server string, id string) (*http.Request, error)
- func NewGetAirportFlightsArrivalsCancellationsRequest(server string, id string, params *GetAirportFlightsArrivalsCancellationsParams) (*http.Request, error)
- func NewGetAirportFlightsArrivedRequest(server string, id string, params *GetAirportFlightsArrivedParams) (*http.Request, error)
- func NewGetAirportFlightsCountRequest(server string, id string) (*http.Request, error)
- func NewGetAirportFlightsDepartedRequest(server string, id string, params *GetAirportFlightsDepartedParams) (*http.Request, error)
- func NewGetAirportFlightsDeparturesCancellationsRequest(server string, id string, ...) (*http.Request, error)
- func NewGetAirportFlightsRequest(server string, id string, params *GetAirportFlightsParams) (*http.Request, error)
- func NewGetAirportFlightsScheduledArrivalsRequest(server string, id string, params *GetAirportFlightsScheduledArrivalsParams) (*http.Request, error)
- func NewGetAirportFlightsScheduledDeparturesRequest(server string, id string, params *GetAirportFlightsScheduledDeparturesParams) (*http.Request, error)
- func NewGetAirportRequest(server string, id string) (*http.Request, error)
- func NewGetAirportWeatherForecastRequest(server string, id string, params *GetAirportWeatherForecastParams) (*http.Request, error)
- func NewGetAirportWeatherObservationsRequest(server string, id string, params *GetAirportWeatherObservationsParams) (*http.Request, error)
- func NewGetAirportsCanonicalRequest(server string, id string, params *GetAirportsCanonicalParams) (*http.Request, error)
- func NewGetAirportsNearAirportRequest(server string, id string, params *GetAirportsNearAirportParams) (*http.Request, error)
- func NewGetAlertRequest(server string, id int) (*http.Request, error)
- func NewGetAlertsEndpointRequest(server string) (*http.Request, error)
- func NewGetAllAirportsRequest(server string, params *GetAllAirportsParams) (*http.Request, error)
- func NewGetAllAlertsRequest(server string, params *GetAllAlertsParams) (*http.Request, error)
- func NewGetAllDisruptionCountsRequest(server string, entityType string, params *GetAllDisruptionCountsParams) (*http.Request, error)
- func NewGetAllOperatorsRequest(server string, params *GetAllOperatorsParams) (*http.Request, error)
- func NewGetDelaysForAllAirportsRequest(server string, params *GetDelaysForAllAirportsParams) (*http.Request, error)
- func NewGetDisruptionCountsRequest(server string, entityType string, id string, params *GetDisruptionCountsParams) (*http.Request, error)
- func NewGetFlightMapRequest(server string, id string, params *GetFlightMapParams) (*http.Request, error)
- func NewGetFlightPositionRequest(server string, id string) (*http.Request, error)
- func NewGetFlightPositionWithForesightRequest(server string, id string) (*http.Request, error)
- func NewGetFlightRequest(server string, ident string, params *GetFlightParams) (*http.Request, error)
- func NewGetFlightRouteRequest(server string, id string) (*http.Request, error)
- func NewGetFlightTrackRequest(server string, id string, params *GetFlightTrackParams) (*http.Request, error)
- func NewGetFlightTypeRequest(server string, pType string) (*http.Request, error)
- func NewGetFlightWithForesightRequest(server string, ident string, params *GetFlightWithForesightParams) (*http.Request, error)
- func NewGetFlightsBetweenAirportsRequest(server string, id string, destId string, ...) (*http.Request, error)
- func NewGetFlightsByAdvancedSearchRequest(server string, params *GetFlightsByAdvancedSearchParams) (*http.Request, error)
- func NewGetFlightsByAdvancedSearchWithForesightRequest(server string, params *GetFlightsByAdvancedSearchWithForesightParams) (*http.Request, error)
- func NewGetFlightsByPositionSearchRequest(server string, params *GetFlightsByPositionSearchParams) (*http.Request, error)
- func NewGetFlightsBySearchRequest(server string, params *GetFlightsBySearchParams) (*http.Request, error)
- func NewGetFlightsCanonicalRequest(server string, ident string, params *GetFlightsCanonicalParams) (*http.Request, error)
- func NewGetFlightsCountBySearchRequest(server string, params *GetFlightsCountBySearchParams) (*http.Request, error)
- func NewGetHistoryAircraftLastFlightRequest(server string, registration string) (*http.Request, error)
- func NewGetHistoryAirportsFlightsArrivalsCancellationsRequest(server string, id string, ...) (*http.Request, error)
- func NewGetHistoryAirportsFlightsArrivedRequest(server string, id string, params *GetHistoryAirportsFlightsArrivedParams) (*http.Request, error)
- func NewGetHistoryAirportsFlightsDepartedRequest(server string, id string, params *GetHistoryAirportsFlightsDepartedParams) (*http.Request, error)
- func NewGetHistoryAirportsFlightsDeparturesCancellationsRequest(server string, id string, ...) (*http.Request, error)
- func NewGetHistoryFlightMapRequest(server string, id string, params *GetHistoryFlightMapParams) (*http.Request, error)
- func NewGetHistoryFlightRequest(server string, ident string, params *GetHistoryFlightParams) (*http.Request, error)
- func NewGetHistoryFlightRouteRequest(server string, id string) (*http.Request, error)
- func NewGetHistoryFlightTrackRequest(server string, id string, params *GetHistoryFlightTrackParams) (*http.Request, error)
- func NewGetHistoryFlightsBetweenAirportsRequest(server string, id string, destId string, ...) (*http.Request, error)
- func NewGetHistoryOperatorsFlightsCancellationsRequest(server string, id string, ...) (*http.Request, error)
- func NewGetHistoryOperatorsFlightsRequest(server string, id string, params *GetHistoryOperatorsFlightsParams) (*http.Request, error)
- func NewGetNearbyAirportsRequest(server string, params *GetNearbyAirportsParams) (*http.Request, error)
- func NewGetOperatorFlightsArrivedRequest(server string, id string, params *GetOperatorFlightsArrivedParams) (*http.Request, error)
- func NewGetOperatorFlightsCancellationsRequest(server string, id string, params *GetOperatorFlightsCancellationsParams) (*http.Request, error)
- func NewGetOperatorFlightsCountRequest(server string, id string) (*http.Request, error)
- func NewGetOperatorFlightsEnrouteRequest(server string, id string, params *GetOperatorFlightsEnrouteParams) (*http.Request, error)
- func NewGetOperatorFlightsRequest(server string, id string, params *GetOperatorFlightsParams) (*http.Request, error)
- func NewGetOperatorFlightsScheduledRequest(server string, id string, params *GetOperatorFlightsScheduledParams) (*http.Request, error)
- func NewGetOperatorRequest(server string, id string) (*http.Request, error)
- func NewGetOperatorsCanonicalRequest(server string, id string, params *GetOperatorsCanonicalParams) (*http.Request, error)
- func NewGetRoutesBetweenAirportsRequest(server string, id string, destId string, ...) (*http.Request, error)
- func NewGetSchedulesByDateRequest(server string, dateStart string, dateEnd string, ...) (*http.Request, error)
- func NewPostFlightsByIdentRequestWithApplicationJSONCharsetUTF8Body(server string, ident string, ...) (*http.Request, error)
- func NewPostFlightsByIdentRequestWithBody(server string, ident string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetAlertsEndpointRequestWithApplicationJSONCharsetUTF8Body(server string, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
- func NewSetAlertsEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateAlertRequestWithApplicationJSONCharsetUTF8Body(server string, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
- func NewUpdateAlertRequestWithBody(server string, id int, contentType string, body io.Reader) (*http.Request, error)
- type CallbackInitiator
- type CallbackInitiatorInterface
- type CallbackInitiatorOption
- type Client
- func (c *Client) CreateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, ...) (*http.Response, error)
- func (c *Client) CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAccountUsage(ctx context.Context, params *GetAccountUsageParams, ...) (*http.Response, error)
- func (c *Client) GetAircraftBlocked(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAircraftOwner(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAirport(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAirportDelays(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAirportFlights(ctx context.Context, id string, params *GetAirportFlightsParams, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsArrivalsCancellations(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsArrived(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAirportFlightsDeparted(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsDeparturesCancellations(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsScheduledArrivals(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetAirportFlightsScheduledDepartures(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetAirportWeatherForecast(ctx context.Context, id string, params *GetAirportWeatherForecastParams, ...) (*http.Response, error)
- func (c *Client) GetAirportWeatherObservations(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, ...) (*http.Response, error)
- func (c *Client) GetAirportsCanonical(ctx context.Context, id string, params *GetAirportsCanonicalParams, ...) (*http.Response, error)
- func (c *Client) GetAirportsNearAirport(ctx context.Context, id string, params *GetAirportsNearAirportParams, ...) (*http.Response, error)
- func (c *Client) GetAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAllAirports(ctx context.Context, params *GetAllAirportsParams, ...) (*http.Response, error)
- func (c *Client) GetAllAlerts(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetAllDisruptionCounts(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, ...) (*http.Response, error)
- func (c *Client) GetAllOperators(ctx context.Context, params *GetAllOperatorsParams, ...) (*http.Response, error)
- func (c *Client) GetDelaysForAllAirports(ctx context.Context, params *GetDelaysForAllAirportsParams, ...) (*http.Response, error)
- func (c *Client) GetDisruptionCounts(ctx context.Context, entityType string, id string, ...) (*http.Response, error)
- func (c *Client) GetFlight(ctx context.Context, ident string, params *GetFlightParams, ...) (*http.Response, error)
- func (c *Client) GetFlightMap(ctx context.Context, id string, params *GetFlightMapParams, ...) (*http.Response, error)
- func (c *Client) GetFlightPosition(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFlightPositionWithForesight(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFlightTrack(ctx context.Context, id string, params *GetFlightTrackParams, ...) (*http.Response, error)
- func (c *Client) GetFlightType(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetFlightWithForesight(ctx context.Context, ident string, params *GetFlightWithForesightParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsBetweenAirports(ctx context.Context, id string, destId string, ...) (*http.Response, error)
- func (c *Client) GetFlightsByAdvancedSearch(ctx context.Context, params *GetFlightsByAdvancedSearchParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsByAdvancedSearchWithForesight(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsByPositionSearch(ctx context.Context, params *GetFlightsByPositionSearchParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsBySearch(ctx context.Context, params *GetFlightsBySearchParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsCanonical(ctx context.Context, ident string, params *GetFlightsCanonicalParams, ...) (*http.Response, error)
- func (c *Client) GetFlightsCountBySearch(ctx context.Context, params *GetFlightsCountBySearchParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryAircraftLastFlight(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHistoryAirportsFlightsArrivalsCancellations(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetHistoryAirportsFlightsArrived(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryAirportsFlightsDeparted(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetHistoryAirportsFlightsDeparturesCancellations(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetHistoryFlight(ctx context.Context, ident string, params *GetHistoryFlightParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryFlightMap(ctx context.Context, id string, params *GetHistoryFlightMapParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHistoryFlightTrack(ctx context.Context, id string, params *GetHistoryFlightTrackParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryFlightsBetweenAirports(ctx context.Context, id string, destId string, ...) (*http.Response, error)
- func (c *Client) GetHistoryOperatorsFlights(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, ...) (*http.Response, error)
- func (c *Client) GetHistoryOperatorsFlightsCancellations(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) GetNearbyAirports(ctx context.Context, params *GetNearbyAirportsParams, ...) (*http.Response, error)
- func (c *Client) GetOperator(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOperatorFlights(ctx context.Context, id string, params *GetOperatorFlightsParams, ...) (*http.Response, error)
- func (c *Client) GetOperatorFlightsArrived(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, ...) (*http.Response, error)
- func (c *Client) GetOperatorFlightsCancellations(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, ...) (*http.Response, error)
- func (c *Client) GetOperatorFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOperatorFlightsEnroute(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, ...) (*http.Response, error)
- func (c *Client) GetOperatorFlightsScheduled(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, ...) (*http.Response, error)
- func (c *Client) GetOperatorsCanonical(ctx context.Context, id string, params *GetOperatorsCanonicalParams, ...) (*http.Response, error)
- func (c *Client) GetRoutesBetweenAirports(ctx context.Context, id string, destId string, ...) (*http.Response, error)
- func (c *Client) GetSchedulesByDate(ctx context.Context, dateStart string, dateEnd string, ...) (*http.Response, error)
- func (c *Client) PostFlightsByIdentWithApplicationJSONCharsetUTF8Body(ctx context.Context, ident string, ...) (*http.Response, error)
- func (c *Client) PostFlightsByIdentWithBody(ctx context.Context, ident string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetAlertsEndpointWithApplicationJSONCharsetUTF8Body(ctx context.Context, ...) (*http.Response, error)
- func (c *Client) SetAlertsEndpointWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, id int, ...) (*http.Response, error)
- func (c *Client) UpdateAlertWithBody(ctx context.Context, id int, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, ...) (*CreateAlertResponse, error)
- func (c *ClientWithResponses) CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateAlertResponse, error)
- func (c *ClientWithResponses) DeleteAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error)
- func (c *ClientWithResponses) DeleteAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAlertsEndpointResponse, error)
- func (c *ClientWithResponses) GetAccountUsageWithResponse(ctx context.Context, params *GetAccountUsageParams, ...) (*GetAccountUsageResponse, error)
- func (c *ClientWithResponses) GetAircraftBlockedWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftBlockedResponse, error)
- func (c *ClientWithResponses) GetAircraftOwnerWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftOwnerResponse, error)
- func (c *ClientWithResponses) GetAirportDelaysWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportDelaysResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, ...) (*GetAirportFlightsArrivalsCancellationsResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsArrivedWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, ...) (*GetAirportFlightsArrivedResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportFlightsCountResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsDepartedWithResponse(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, ...) (*GetAirportFlightsDepartedResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, ...) (*GetAirportFlightsDeparturesCancellationsResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsScheduledArrivalsWithResponse(ctx context.Context, id string, ...) (*GetAirportFlightsScheduledArrivalsResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsScheduledDeparturesWithResponse(ctx context.Context, id string, ...) (*GetAirportFlightsScheduledDeparturesResponse, error)
- func (c *ClientWithResponses) GetAirportFlightsWithResponse(ctx context.Context, id string, params *GetAirportFlightsParams, ...) (*GetAirportFlightsResponse, error)
- func (c *ClientWithResponses) GetAirportWeatherForecastWithResponse(ctx context.Context, id string, params *GetAirportWeatherForecastParams, ...) (*GetAirportWeatherForecastResponse, error)
- func (c *ClientWithResponses) GetAirportWeatherObservationsWithResponse(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, ...) (*GetAirportWeatherObservationsResponse, error)
- func (c *ClientWithResponses) GetAirportWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportResponse, error)
- func (c *ClientWithResponses) GetAirportsCanonicalWithResponse(ctx context.Context, id string, params *GetAirportsCanonicalParams, ...) (*GetAirportsCanonicalResponse, error)
- func (c *ClientWithResponses) GetAirportsNearAirportWithResponse(ctx context.Context, id string, params *GetAirportsNearAirportParams, ...) (*GetAirportsNearAirportResponse, error)
- func (c *ClientWithResponses) GetAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetAlertResponse, error)
- func (c *ClientWithResponses) GetAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsEndpointResponse, error)
- func (c *ClientWithResponses) GetAllAirportsWithResponse(ctx context.Context, params *GetAllAirportsParams, ...) (*GetAllAirportsResponse, error)
- func (c *ClientWithResponses) GetAllAlertsWithResponse(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*GetAllAlertsResponse, error)
- func (c *ClientWithResponses) GetAllDisruptionCountsWithResponse(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, ...) (*GetAllDisruptionCountsResponse, error)
- func (c *ClientWithResponses) GetAllOperatorsWithResponse(ctx context.Context, params *GetAllOperatorsParams, ...) (*GetAllOperatorsResponse, error)
- func (c *ClientWithResponses) GetDelaysForAllAirportsWithResponse(ctx context.Context, params *GetDelaysForAllAirportsParams, ...) (*GetDelaysForAllAirportsResponse, error)
- func (c *ClientWithResponses) GetDisruptionCountsWithResponse(ctx context.Context, entityType string, id string, ...) (*GetDisruptionCountsResponse, error)
- func (c *ClientWithResponses) GetFlightMapWithResponse(ctx context.Context, id string, params *GetFlightMapParams, ...) (*GetFlightMapResponse, error)
- func (c *ClientWithResponses) GetFlightPositionWithForesightWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionWithForesightResponse, error)
- func (c *ClientWithResponses) GetFlightPositionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionResponse, error)
- func (c *ClientWithResponses) GetFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightRouteResponse, error)
- func (c *ClientWithResponses) GetFlightTrackWithResponse(ctx context.Context, id string, params *GetFlightTrackParams, ...) (*GetFlightTrackResponse, error)
- func (c *ClientWithResponses) GetFlightTypeWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetFlightTypeResponse, error)
- func (c *ClientWithResponses) GetFlightWithForesightWithResponse(ctx context.Context, ident string, params *GetFlightWithForesightParams, ...) (*GetFlightWithForesightResponse, error)
- func (c *ClientWithResponses) GetFlightWithResponse(ctx context.Context, ident string, params *GetFlightParams, ...) (*GetFlightResponse, error)
- func (c *ClientWithResponses) GetFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, ...) (*GetFlightsBetweenAirportsResponse, error)
- func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithForesightWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, ...) (*GetFlightsByAdvancedSearchWithForesightResponse, error)
- func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchParams, ...) (*GetFlightsByAdvancedSearchResponse, error)
- func (c *ClientWithResponses) GetFlightsByPositionSearchWithResponse(ctx context.Context, params *GetFlightsByPositionSearchParams, ...) (*GetFlightsByPositionSearchResponse, error)
- func (c *ClientWithResponses) GetFlightsBySearchWithResponse(ctx context.Context, params *GetFlightsBySearchParams, ...) (*GetFlightsBySearchResponse, error)
- func (c *ClientWithResponses) GetFlightsCanonicalWithResponse(ctx context.Context, ident string, params *GetFlightsCanonicalParams, ...) (*GetFlightsCanonicalResponse, error)
- func (c *ClientWithResponses) GetFlightsCountBySearchWithResponse(ctx context.Context, params *GetFlightsCountBySearchParams, ...) (*GetFlightsCountBySearchResponse, error)
- func (c *ClientWithResponses) GetHistoryAircraftLastFlightWithResponse(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*GetHistoryAircraftLastFlightResponse, error)
- func (c *ClientWithResponses) GetHistoryAirportsFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, ...) (*GetHistoryAirportsFlightsArrivalsCancellationsResponse, error)
- func (c *ClientWithResponses) GetHistoryAirportsFlightsArrivedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, ...) (*GetHistoryAirportsFlightsArrivedResponse, error)
- func (c *ClientWithResponses) GetHistoryAirportsFlightsDepartedWithResponse(ctx context.Context, id string, ...) (*GetHistoryAirportsFlightsDepartedResponse, error)
- func (c *ClientWithResponses) GetHistoryAirportsFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, ...) (*GetHistoryAirportsFlightsDeparturesCancellationsResponse, error)
- func (c *ClientWithResponses) GetHistoryFlightMapWithResponse(ctx context.Context, id string, params *GetHistoryFlightMapParams, ...) (*GetHistoryFlightMapResponse, error)
- func (c *ClientWithResponses) GetHistoryFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHistoryFlightRouteResponse, error)
- func (c *ClientWithResponses) GetHistoryFlightTrackWithResponse(ctx context.Context, id string, params *GetHistoryFlightTrackParams, ...) (*GetHistoryFlightTrackResponse, error)
- func (c *ClientWithResponses) GetHistoryFlightWithResponse(ctx context.Context, ident string, params *GetHistoryFlightParams, ...) (*GetHistoryFlightResponse, error)
- func (c *ClientWithResponses) GetHistoryFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, ...) (*GetHistoryFlightsBetweenAirportsResponse, error)
- func (c *ClientWithResponses) GetHistoryOperatorsFlightsCancellationsWithResponse(ctx context.Context, id string, ...) (*GetHistoryOperatorsFlightsCancellationsResponse, error)
- func (c *ClientWithResponses) GetHistoryOperatorsFlightsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, ...) (*GetHistoryOperatorsFlightsResponse, error)
- func (c *ClientWithResponses) GetNearbyAirportsWithResponse(ctx context.Context, params *GetNearbyAirportsParams, ...) (*GetNearbyAirportsResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsArrivedWithResponse(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, ...) (*GetOperatorFlightsArrivedResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsCancellationsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, ...) (*GetOperatorFlightsCancellationsResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCountResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsEnrouteWithResponse(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, ...) (*GetOperatorFlightsEnrouteResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsScheduledWithResponse(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, ...) (*GetOperatorFlightsScheduledResponse, error)
- func (c *ClientWithResponses) GetOperatorFlightsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsParams, ...) (*GetOperatorFlightsResponse, error)
- func (c *ClientWithResponses) GetOperatorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorResponse, error)
- func (c *ClientWithResponses) GetOperatorsCanonicalWithResponse(ctx context.Context, id string, params *GetOperatorsCanonicalParams, ...) (*GetOperatorsCanonicalResponse, error)
- func (c *ClientWithResponses) GetRoutesBetweenAirportsWithResponse(ctx context.Context, id string, destId string, ...) (*GetRoutesBetweenAirportsResponse, error)
- func (c *ClientWithResponses) GetSchedulesByDateWithResponse(ctx context.Context, dateStart string, dateEnd string, ...) (*GetSchedulesByDateResponse, error)
- func (c *ClientWithResponses) PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, ident string, ...) (*PostFlightsByIdentResponse, error)
- func (c *ClientWithResponses) PostFlightsByIdentWithBodyWithResponse(ctx context.Context, ident string, contentType string, body io.Reader, ...) (*PostFlightsByIdentResponse, error)
- func (c *ClientWithResponses) SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, ...) (*SetAlertsEndpointResponse, error)
- func (c *ClientWithResponses) SetAlertsEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SetAlertsEndpointResponse, error)
- func (c *ClientWithResponses) UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, id int, ...) (*UpdateAlertResponse, error)
- func (c *ClientWithResponses) UpdateAlertWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, ...) (*UpdateAlertResponse, error)
- type ClientWithResponsesInterface
- type CreateAlertApplicationJSONCharsetUTF8Body
- type CreateAlertApplicationJSONCharsetUTF8RequestBody
- type CreateAlertResponse
- type CreateAlertResponse201Headers
- type DeleteAlertResponse
- type DeleteAlertsEndpointResponse
- type DeliverAlertApplicationJSONCharsetUTF8Body
- type DeliverAlertApplicationJSONCharsetUTF8BodyEventCode
- type DeliverAlertApplicationJSONCharsetUTF8RequestBody
- type GetAccountUsageParams
- type GetAccountUsageResponse
- func (r GetAccountUsageResponse) ContentType() string
- func (r GetAccountUsageResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAccountUsageResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAccountUsageResponse) GetBody() []byte
- func (r GetAccountUsageResponse) Status() string
- func (r GetAccountUsageResponse) StatusCode() int
- type GetAircraftBlockedResponse
- func (r GetAircraftBlockedResponse) ContentType() string
- func (r GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAircraftBlockedResponse) GetBody() []byte
- func (r GetAircraftBlockedResponse) Status() string
- func (r GetAircraftBlockedResponse) StatusCode() int
- type GetAircraftOwnerResponse
- func (r GetAircraftOwnerResponse) ContentType() string
- func (r GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAircraftOwnerResponse) GetBody() []byte
- func (r GetAircraftOwnerResponse) Status() string
- func (r GetAircraftOwnerResponse) StatusCode() int
- type GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType
- type GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType
- type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor
- type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor
- type GetAirportDelaysResponse
- func (r GetAirportDelaysResponse) ContentType() string
- func (r GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportDelaysResponse) GetBody() []byte
- func (r GetAirportDelaysResponse) Status() string
- func (r GetAirportDelaysResponse) StatusCode() int
- type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType
- type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType
- type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType
- type GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetAirportFlightsArrivalsCancellationsParams
- type GetAirportFlightsArrivalsCancellationsParamsType
- type GetAirportFlightsArrivalsCancellationsResponse
- func (r GetAirportFlightsArrivalsCancellationsResponse) ContentType() string
- func (r GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsArrivalsCancellationsResponse) GetBody() []byte
- func (r GetAirportFlightsArrivalsCancellationsResponse) Status() string
- func (r GetAirportFlightsArrivalsCancellationsResponse) StatusCode() int
- type GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetAirportFlightsArrivedParams
- type GetAirportFlightsArrivedParamsType
- type GetAirportFlightsArrivedResponse
- func (r GetAirportFlightsArrivedResponse) ContentType() string
- func (r GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsArrivedResponse) GetBody() []byte
- func (r GetAirportFlightsArrivedResponse) Status() string
- func (r GetAirportFlightsArrivedResponse) StatusCode() int
- type GetAirportFlightsCountResponse
- func (r GetAirportFlightsCountResponse) ContentType() string
- func (r GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsCountResponse) GetBody() []byte
- func (r GetAirportFlightsCountResponse) Status() string
- func (r GetAirportFlightsCountResponse) StatusCode() int
- type GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType
- type GetAirportFlightsDepartedParams
- type GetAirportFlightsDepartedParamsType
- type GetAirportFlightsDepartedResponse
- func (r GetAirportFlightsDepartedResponse) ContentType() string
- func (r GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsDepartedResponse) GetBody() []byte
- func (r GetAirportFlightsDepartedResponse) Status() string
- func (r GetAirportFlightsDepartedResponse) StatusCode() int
- type GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType
- type GetAirportFlightsDeparturesCancellationsParams
- type GetAirportFlightsDeparturesCancellationsParamsType
- type GetAirportFlightsDeparturesCancellationsResponse
- func (r GetAirportFlightsDeparturesCancellationsResponse) ContentType() string
- func (r GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsDeparturesCancellationsResponse) GetBody() []byte
- func (r GetAirportFlightsDeparturesCancellationsResponse) Status() string
- func (r GetAirportFlightsDeparturesCancellationsResponse) StatusCode() int
- type GetAirportFlightsParams
- type GetAirportFlightsParamsType
- type GetAirportFlightsResponse
- func (r GetAirportFlightsResponse) ContentType() string
- func (r GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsResponse) GetBody() []byte
- func (r GetAirportFlightsResponse) Status() string
- func (r GetAirportFlightsResponse) StatusCode() int
- type GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType
- type GetAirportFlightsScheduledArrivalsParams
- type GetAirportFlightsScheduledArrivalsParamsType
- type GetAirportFlightsScheduledArrivalsResponse
- func (r GetAirportFlightsScheduledArrivalsResponse) ContentType() string
- func (r GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsScheduledArrivalsResponse) GetBody() []byte
- func (r GetAirportFlightsScheduledArrivalsResponse) Status() string
- func (r GetAirportFlightsScheduledArrivalsResponse) StatusCode() int
- type GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType
- type GetAirportFlightsScheduledDeparturesParams
- type GetAirportFlightsScheduledDeparturesParamsType
- type GetAirportFlightsScheduledDeparturesResponse
- func (r GetAirportFlightsScheduledDeparturesResponse) ContentType() string
- func (r GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportFlightsScheduledDeparturesResponse) GetBody() []byte
- func (r GetAirportFlightsScheduledDeparturesResponse) Status() string
- func (r GetAirportFlightsScheduledDeparturesResponse) StatusCode() int
- type GetAirportResponse
- func (r GetAirportResponse) ContentType() string
- func (r GetAirportResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportResponse) GetBody() []byte
- func (r GetAirportResponse) Status() string
- func (r GetAirportResponse) StatusCode() int
- type GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage
- type GetAirportWeatherForecastParams
- type GetAirportWeatherForecastResponse
- func (r GetAirportWeatherForecastResponse) ContentType() string
- func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetAirportWeatherForecastResponse) GetBody() []byte
- func (r GetAirportWeatherForecastResponse) Status() string
- func (r GetAirportWeatherForecastResponse) StatusCode() int
- type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits
- type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits
- type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits
- type GetAirportWeatherObservationsParams
- type GetAirportWeatherObservationsParamsTemperatureUnits
- type GetAirportWeatherObservationsResponse
- func (r GetAirportWeatherObservationsResponse) ContentType() string
- func (r GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportWeatherObservationsResponse) GetBody() []byte
- func (r GetAirportWeatherObservationsResponse) Status() string
- func (r GetAirportWeatherObservationsResponse) StatusCode() int
- type GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType
- type GetAirportsCanonicalParams
- type GetAirportsCanonicalParamsIdType
- type GetAirportsCanonicalResponse
- func (r GetAirportsCanonicalResponse) ContentType() string
- func (r GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportsCanonicalResponse) GetBody() []byte
- func (r GetAirportsCanonicalResponse) Status() string
- func (r GetAirportsCanonicalResponse) StatusCode() int
- type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection
- type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType
- type GetAirportsNearAirportParams
- type GetAirportsNearAirportResponse
- func (r GetAirportsNearAirportResponse) ContentType() string
- func (r GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAirportsNearAirportResponse) GetBody() []byte
- func (r GetAirportsNearAirportResponse) Status() string
- func (r GetAirportsNearAirportResponse) StatusCode() int
- type GetAlertResponse
- func (r GetAlertResponse) ContentType() string
- func (r GetAlertResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAlertResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetAlertResponse) GetBody() []byte
- func (r GetAlertResponse) Status() string
- func (r GetAlertResponse) StatusCode() int
- type GetAlertsEndpointResponse
- func (r GetAlertsEndpointResponse) ContentType() string
- func (r GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAlertsEndpointResponse) GetBody() []byte
- func (r GetAlertsEndpointResponse) Status() string
- func (r GetAlertsEndpointResponse) StatusCode() int
- type GetAllAirportsParams
- type GetAllAirportsResponse
- type GetAllAlertsParams
- type GetAllAlertsResponse
- type GetAllDisruptionCountsParams
- type GetAllDisruptionCountsResponse
- func (r GetAllDisruptionCountsResponse) ContentType() string
- func (r GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetAllDisruptionCountsResponse) GetBody() []byte
- func (r GetAllDisruptionCountsResponse) Status() string
- func (r GetAllDisruptionCountsResponse) StatusCode() int
- type GetAllOperatorsParams
- type GetAllOperatorsResponse
- type GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor
- type GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor
- type GetDelaysForAllAirportsParams
- type GetDelaysForAllAirportsResponse
- func (r GetDelaysForAllAirportsResponse) ContentType() string
- func (r GetDelaysForAllAirportsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetDelaysForAllAirportsResponse) GetBody() []byte
- func (r GetDelaysForAllAirportsResponse) Status() string
- func (r GetDelaysForAllAirportsResponse) StatusCode() int
- type GetDisruptionCountsParams
- type GetDisruptionCountsResponse
- func (r GetDisruptionCountsResponse) ContentType() string
- func (r GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetDisruptionCountsResponse) GetBody() []byte
- func (r GetDisruptionCountsResponse) Status() string
- func (r GetDisruptionCountsResponse) StatusCode() int
- type GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetFlightMapParams
- type GetFlightMapParamsLayerOff
- type GetFlightMapParamsLayerOn
- type GetFlightMapResponse
- func (r GetFlightMapResponse) ContentType() string
- func (r GetFlightMapResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightMapResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightMapResponse) GetBody() []byte
- func (r GetFlightMapResponse) Status() string
- func (r GetFlightMapResponse) StatusCode() int
- type GetFlightParams
- type GetFlightParamsIdentType
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource
- type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource
- type GetFlightPositionResponse
- func (r GetFlightPositionResponse) ContentType() string
- func (r GetFlightPositionResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightPositionResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightPositionResponse) GetBody() []byte
- func (r GetFlightPositionResponse) Status() string
- func (r GetFlightPositionResponse) StatusCode() int
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource
- type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource
- type GetFlightPositionWithForesightResponse
- func (r GetFlightPositionWithForesightResponse) ContentType() string
- func (r GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightPositionWithForesightResponse) GetBody() []byte
- func (r GetFlightPositionWithForesightResponse) Status() string
- func (r GetFlightPositionWithForesightResponse) StatusCode() int
- type GetFlightResponse
- func (r GetFlightResponse) ContentType() string
- func (r GetFlightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightResponse) GetBody() []byte
- func (r GetFlightResponse) Status() string
- func (r GetFlightResponse) StatusCode() int
- type GetFlightRouteResponse
- func (r GetFlightRouteResponse) ContentType() string
- func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetFlightRouteResponse) GetBody() []byte
- func (r GetFlightRouteResponse) Status() string
- func (r GetFlightRouteResponse) StatusCode() int
- type GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange
- type GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType
- type GetFlightTrackParams
- type GetFlightTrackResponse
- func (r GetFlightTrackResponse) ContentType() string
- func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetFlightTrackResponse) GetBody() []byte
- func (r GetFlightTrackResponse) Status() string
- func (r GetFlightTrackResponse) StatusCode() int
- type GetFlightTypeResponse
- func (r GetFlightTypeResponse) ContentType() string
- func (r GetFlightTypeResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightTypeResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightTypeResponse) GetBody() []byte
- func (r GetFlightTypeResponse) Status() string
- func (r GetFlightTypeResponse) StatusCode() int
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource
- type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetFlightWithForesightParams
- type GetFlightWithForesightParamsIdentType
- type GetFlightWithForesightResponse
- func (r GetFlightWithForesightResponse) ContentType() string
- func (r GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightWithForesightResponse) GetBody() []byte
- func (r GetFlightWithForesightResponse) Status() string
- func (r GetFlightWithForesightResponse) StatusCode() int
- type GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType
- type GetFlightsBetweenAirportsParams
- type GetFlightsBetweenAirportsParamsConnection
- type GetFlightsBetweenAirportsParamsType
- type GetFlightsBetweenAirportsResponse
- func (r GetFlightsBetweenAirportsResponse) ContentType() string
- func (r GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsBetweenAirportsResponse) GetBody() []byte
- func (r GetFlightsBetweenAirportsResponse) Status() string
- func (r GetFlightsBetweenAirportsResponse) StatusCode() int
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource
- type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource
- type GetFlightsByAdvancedSearchParams
- type GetFlightsByAdvancedSearchResponse
- func (r GetFlightsByAdvancedSearchResponse) ContentType() string
- func (r GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsByAdvancedSearchResponse) GetBody() []byte
- func (r GetFlightsByAdvancedSearchResponse) Status() string
- func (r GetFlightsByAdvancedSearchResponse) StatusCode() int
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource
- type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource
- type GetFlightsByAdvancedSearchWithForesightParams
- type GetFlightsByAdvancedSearchWithForesightResponse
- func (r GetFlightsByAdvancedSearchWithForesightResponse) ContentType() string
- func (r GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsByAdvancedSearchWithForesightResponse) GetBody() []byte
- func (r GetFlightsByAdvancedSearchWithForesightResponse) Status() string
- func (r GetFlightsByAdvancedSearchWithForesightResponse) StatusCode() int
- type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange
- type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType
- type GetFlightsByPositionSearchParams
- type GetFlightsByPositionSearchResponse
- func (r GetFlightsByPositionSearchResponse) ContentType() string
- func (r GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsByPositionSearchResponse) GetBody() []byte
- func (r GetFlightsByPositionSearchResponse) Status() string
- func (r GetFlightsByPositionSearchResponse) StatusCode() int
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource
- type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource
- type GetFlightsBySearchParams
- type GetFlightsBySearchResponse
- func (r GetFlightsBySearchResponse) ContentType() string
- func (r GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsBySearchResponse) GetBody() []byte
- func (r GetFlightsBySearchResponse) Status() string
- func (r GetFlightsBySearchResponse) StatusCode() int
- type GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType
- type GetFlightsCanonicalParams
- type GetFlightsCanonicalParamsIdentType
- type GetFlightsCanonicalResponse
- func (r GetFlightsCanonicalResponse) ContentType() string
- func (r GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetFlightsCanonicalResponse) GetBody() []byte
- func (r GetFlightsCanonicalResponse) Status() string
- func (r GetFlightsCanonicalResponse) StatusCode() int
- type GetFlightsCountBySearchParams
- type GetFlightsCountBySearchResponse
- func (r GetFlightsCountBySearchResponse) ContentType() string
- func (r GetFlightsCountBySearchResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetFlightsCountBySearchResponse) GetBody() []byte
- func (r GetFlightsCountBySearchResponse) Status() string
- func (r GetFlightsCountBySearchResponse) StatusCode() int
- type GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetHistoryAircraftLastFlightResponse
- func (r GetHistoryAircraftLastFlightResponse) ContentType() string
- func (r GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryAircraftLastFlightResponse) GetBody() []byte
- func (r GetHistoryAircraftLastFlightResponse) Status() string
- func (r GetHistoryAircraftLastFlightResponse) StatusCode() int
- type GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetHistoryAirportsFlightsArrivalsCancellationsParams
- type GetHistoryAirportsFlightsArrivalsCancellationsParamsType
- type GetHistoryAirportsFlightsArrivalsCancellationsResponse
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) ContentType() string
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetBody() []byte
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) Status() string
- func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) StatusCode() int
- type GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetHistoryAirportsFlightsArrivedParams
- type GetHistoryAirportsFlightsArrivedParamsType
- type GetHistoryAirportsFlightsArrivedResponse
- func (r GetHistoryAirportsFlightsArrivedResponse) ContentType() string
- func (r GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryAirportsFlightsArrivedResponse) GetBody() []byte
- func (r GetHistoryAirportsFlightsArrivedResponse) Status() string
- func (r GetHistoryAirportsFlightsArrivedResponse) StatusCode() int
- type GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType
- type GetHistoryAirportsFlightsDepartedParams
- type GetHistoryAirportsFlightsDepartedParamsType
- type GetHistoryAirportsFlightsDepartedResponse
- func (r GetHistoryAirportsFlightsDepartedResponse) ContentType() string
- func (r GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryAirportsFlightsDepartedResponse) GetBody() []byte
- func (r GetHistoryAirportsFlightsDepartedResponse) Status() string
- func (r GetHistoryAirportsFlightsDepartedResponse) StatusCode() int
- type GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType
- type GetHistoryAirportsFlightsDeparturesCancellationsParams
- type GetHistoryAirportsFlightsDeparturesCancellationsParamsType
- type GetHistoryAirportsFlightsDeparturesCancellationsResponse
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) ContentType() string
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetBody() []byte
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) Status() string
- func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) StatusCode() int
- type GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetHistoryFlightMapParams
- type GetHistoryFlightMapParamsLayerOff
- type GetHistoryFlightMapParamsLayerOn
- type GetHistoryFlightMapResponse
- func (r GetHistoryFlightMapResponse) ContentType() string
- func (r GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryFlightMapResponse) GetBody() []byte
- func (r GetHistoryFlightMapResponse) Status() string
- func (r GetHistoryFlightMapResponse) StatusCode() int
- type GetHistoryFlightParams
- type GetHistoryFlightParamsIdentType
- type GetHistoryFlightResponse
- func (r GetHistoryFlightResponse) ContentType() string
- func (r GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryFlightResponse) GetBody() []byte
- func (r GetHistoryFlightResponse) Status() string
- func (r GetHistoryFlightResponse) StatusCode() int
- type GetHistoryFlightRouteResponse
- func (r GetHistoryFlightRouteResponse) ContentType() string
- func (r GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryFlightRouteResponse) GetBody() []byte
- func (r GetHistoryFlightRouteResponse) Status() string
- func (r GetHistoryFlightRouteResponse) StatusCode() int
- type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange
- type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType
- type GetHistoryFlightTrackParams
- type GetHistoryFlightTrackResponse
- func (r GetHistoryFlightTrackResponse) ContentType() string
- func (r GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryFlightTrackResponse) GetBody() []byte
- func (r GetHistoryFlightTrackResponse) Status() string
- func (r GetHistoryFlightTrackResponse) StatusCode() int
- type GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetHistoryFlightsBetweenAirportsParams
- type GetHistoryFlightsBetweenAirportsParamsType
- type GetHistoryFlightsBetweenAirportsResponse
- func (r GetHistoryFlightsBetweenAirportsResponse) ContentType() string
- func (r GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryFlightsBetweenAirportsResponse) GetBody() []byte
- func (r GetHistoryFlightsBetweenAirportsResponse) Status() string
- func (r GetHistoryFlightsBetweenAirportsResponse) StatusCode() int
- type GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType
- type GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType
- type GetHistoryOperatorsFlightsCancellationsParams
- type GetHistoryOperatorsFlightsCancellationsResponse
- func (r GetHistoryOperatorsFlightsCancellationsResponse) ContentType() string
- func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetHistoryOperatorsFlightsCancellationsResponse) GetBody() []byte
- func (r GetHistoryOperatorsFlightsCancellationsResponse) Status() string
- func (r GetHistoryOperatorsFlightsCancellationsResponse) StatusCode() int
- type GetHistoryOperatorsFlightsParams
- type GetHistoryOperatorsFlightsResponse
- func (r GetHistoryOperatorsFlightsResponse) ContentType() string
- func (r GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetHistoryOperatorsFlightsResponse) GetBody() []byte
- func (r GetHistoryOperatorsFlightsResponse) Status() string
- func (r GetHistoryOperatorsFlightsResponse) StatusCode() int
- type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection
- type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType
- type GetNearbyAirportsParams
- type GetNearbyAirportsResponse
- func (r GetNearbyAirportsResponse) ContentType() string
- func (r GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetNearbyAirportsResponse) GetBody() []byte
- func (r GetNearbyAirportsResponse) Status() string
- func (r GetNearbyAirportsResponse) StatusCode() int
- type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType
- type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType
- type GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType
- type GetOperatorFlightsArrivedParams
- type GetOperatorFlightsArrivedResponse
- func (r GetOperatorFlightsArrivedResponse) ContentType() string
- func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsArrivedResponse) GetBody() []byte
- func (r GetOperatorFlightsArrivedResponse) Status() string
- func (r GetOperatorFlightsArrivedResponse) StatusCode() int
- type GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType
- type GetOperatorFlightsCancellationsParams
- type GetOperatorFlightsCancellationsResponse
- func (r GetOperatorFlightsCancellationsResponse) ContentType() string
- func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsCancellationsResponse) GetBody() []byte
- func (r GetOperatorFlightsCancellationsResponse) Status() string
- func (r GetOperatorFlightsCancellationsResponse) StatusCode() int
- type GetOperatorFlightsCountResponse
- func (r GetOperatorFlightsCountResponse) ContentType() string
- func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsCountResponse) GetBody() []byte
- func (r GetOperatorFlightsCountResponse) Status() string
- func (r GetOperatorFlightsCountResponse) StatusCode() int
- type GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType
- type GetOperatorFlightsEnrouteParams
- type GetOperatorFlightsEnrouteResponse
- func (r GetOperatorFlightsEnrouteResponse) ContentType() string
- func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsEnrouteResponse) GetBody() []byte
- func (r GetOperatorFlightsEnrouteResponse) Status() string
- func (r GetOperatorFlightsEnrouteResponse) StatusCode() int
- type GetOperatorFlightsParams
- type GetOperatorFlightsResponse
- func (r GetOperatorFlightsResponse) ContentType() string
- func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsResponse) GetBody() []byte
- func (r GetOperatorFlightsResponse) Status() string
- func (r GetOperatorFlightsResponse) StatusCode() int
- type GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType
- type GetOperatorFlightsScheduledParams
- type GetOperatorFlightsScheduledResponse
- func (r GetOperatorFlightsScheduledResponse) ContentType() string
- func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorFlightsScheduledResponse) GetBody() []byte
- func (r GetOperatorFlightsScheduledResponse) Status() string
- func (r GetOperatorFlightsScheduledResponse) StatusCode() int
- type GetOperatorResponse
- func (r GetOperatorResponse) ContentType() string
- func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorResponse) GetBody() []byte
- func (r GetOperatorResponse) Status() string
- func (r GetOperatorResponse) StatusCode() int
- type GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType
- type GetOperatorsCanonicalParams
- type GetOperatorsCanonicalResponse
- func (r GetOperatorsCanonicalResponse) ContentType() string
- func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r GetOperatorsCanonicalResponse) GetBody() []byte
- func (r GetOperatorsCanonicalResponse) Status() string
- func (r GetOperatorsCanonicalResponse) StatusCode() int
- type GetRoutesBetweenAirportsParams
- type GetRoutesBetweenAirportsParamsSortBy
- type GetRoutesBetweenAirportsResponse
- func (r GetRoutesBetweenAirportsResponse) ContentType() string
- func (r GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetRoutesBetweenAirportsResponse) GetBody() []byte
- func (r GetRoutesBetweenAirportsResponse) Status() string
- func (r GetRoutesBetweenAirportsResponse) StatusCode() int
- type GetSchedulesByDateParams
- type GetSchedulesByDateResponse
- func (r GetSchedulesByDateResponse) ContentType() string
- func (r GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8200() ...
- func (r GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r GetSchedulesByDateResponse) GetBody() []byte
- func (r GetSchedulesByDateResponse) Status() string
- func (r GetSchedulesByDateResponse) StatusCode() int
- type HttpRequestDoer
- type PostFlightsByIdentApplicationJSONCharsetUTF8Body
- type PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody
- type PostFlightsByIdentResponse
- type RequestEditorFn
- type SetAlertsEndpointApplicationJSONCharsetUTF8Body
- type SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody
- type SetAlertsEndpointResponse
- type UpdateAlertApplicationJSONCharsetUTF8Body
- type UpdateAlertApplicationJSONCharsetUTF8RequestBody
- type UpdateAlertResponse
- func (r UpdateAlertResponse) ContentType() string
- func (r UpdateAlertResponse) GetApplicationjsonCharsetUTF8400() ...
- func (r UpdateAlertResponse) GetApplicationjsonCharsetUTF8404() ...
- func (r UpdateAlertResponse) GetBody() []byte
- func (r UpdateAlertResponse) Status() string
- func (r UpdateAlertResponse) StatusCode() int
Constants ¶
const ServerURL = "https://aeroapi.flightaware.com/aeroapi"
ServerURL is the base URL of the flightaware API. Pass it to NewClient or NewClientWithResponses.
Variables ¶
This section is empty.
Functions ¶
func NewCreateAlertRequestWithApplicationJSONCharsetUTF8Body ¶
func NewCreateAlertRequestWithApplicationJSONCharsetUTF8Body(server string, body CreateAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
NewCreateAlertRequestWithApplicationJSONCharsetUTF8Body calls the generic CreateAlert builder with application/json; charset=UTF-8 body
func NewCreateAlertRequestWithBody ¶
func NewCreateAlertRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateAlertRequestWithBody constructs an http.Request for the CreateAlert method, with any body, and a specified content type
func NewDeleteAlertRequest ¶
NewDeleteAlertRequest constructs an http.Request for the DeleteAlert method
func NewDeleteAlertsEndpointRequest ¶
NewDeleteAlertsEndpointRequest constructs an http.Request for the DeleteAlertsEndpoint method
func NewDeliverAlertCallbackRequestWithApplicationJSONCharsetUTF8Body ¶
func NewDeliverAlertCallbackRequestWithApplicationJSONCharsetUTF8Body(targetURL string, body DeliverAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
NewDeliverAlertCallbackRequestWithApplicationJSONCharsetUTF8Body builds a application/json; charset=UTF-8 POST request for the deliver_alert callback
func NewDeliverAlertCallbackRequestWithBody ¶
func NewDeliverAlertCallbackRequestWithBody(targetURL string, contentType string, body io.Reader) (*http.Request, error)
NewDeliverAlertCallbackRequestWithBody builds a POST request for the deliver_alert callback with any body
func NewGetAccountUsageRequest ¶
func NewGetAccountUsageRequest(server string, params *GetAccountUsageParams) (*http.Request, error)
NewGetAccountUsageRequest constructs an http.Request for the GetAccountUsage method
func NewGetAircraftBlockedRequest ¶
NewGetAircraftBlockedRequest constructs an http.Request for the GetAircraftBlocked method
func NewGetAircraftOwnerRequest ¶
NewGetAircraftOwnerRequest constructs an http.Request for the GetAircraftOwner method
func NewGetAirportDelaysRequest ¶
NewGetAirportDelaysRequest constructs an http.Request for the GetAirportDelays method
func NewGetAirportFlightsArrivalsCancellationsRequest ¶
func NewGetAirportFlightsArrivalsCancellationsRequest(server string, id string, params *GetAirportFlightsArrivalsCancellationsParams) (*http.Request, error)
NewGetAirportFlightsArrivalsCancellationsRequest constructs an http.Request for the GetAirportFlightsArrivalsCancellations method
func NewGetAirportFlightsArrivedRequest ¶
func NewGetAirportFlightsArrivedRequest(server string, id string, params *GetAirportFlightsArrivedParams) (*http.Request, error)
NewGetAirportFlightsArrivedRequest constructs an http.Request for the GetAirportFlightsArrived method
func NewGetAirportFlightsCountRequest ¶
NewGetAirportFlightsCountRequest constructs an http.Request for the GetAirportFlightsCount method
func NewGetAirportFlightsDepartedRequest ¶
func NewGetAirportFlightsDepartedRequest(server string, id string, params *GetAirportFlightsDepartedParams) (*http.Request, error)
NewGetAirportFlightsDepartedRequest constructs an http.Request for the GetAirportFlightsDeparted method
func NewGetAirportFlightsDeparturesCancellationsRequest ¶
func NewGetAirportFlightsDeparturesCancellationsRequest(server string, id string, params *GetAirportFlightsDeparturesCancellationsParams) (*http.Request, error)
NewGetAirportFlightsDeparturesCancellationsRequest constructs an http.Request for the GetAirportFlightsDeparturesCancellations method
func NewGetAirportFlightsRequest ¶
func NewGetAirportFlightsRequest(server string, id string, params *GetAirportFlightsParams) (*http.Request, error)
NewGetAirportFlightsRequest constructs an http.Request for the GetAirportFlights method
func NewGetAirportFlightsScheduledArrivalsRequest ¶
func NewGetAirportFlightsScheduledArrivalsRequest(server string, id string, params *GetAirportFlightsScheduledArrivalsParams) (*http.Request, error)
NewGetAirportFlightsScheduledArrivalsRequest constructs an http.Request for the GetAirportFlightsScheduledArrivals method
func NewGetAirportFlightsScheduledDeparturesRequest ¶
func NewGetAirportFlightsScheduledDeparturesRequest(server string, id string, params *GetAirportFlightsScheduledDeparturesParams) (*http.Request, error)
NewGetAirportFlightsScheduledDeparturesRequest constructs an http.Request for the GetAirportFlightsScheduledDepartures method
func NewGetAirportRequest ¶
NewGetAirportRequest constructs an http.Request for the GetAirport method
func NewGetAirportWeatherForecastRequest ¶
func NewGetAirportWeatherForecastRequest(server string, id string, params *GetAirportWeatherForecastParams) (*http.Request, error)
NewGetAirportWeatherForecastRequest constructs an http.Request for the GetAirportWeatherForecast method
func NewGetAirportWeatherObservationsRequest ¶
func NewGetAirportWeatherObservationsRequest(server string, id string, params *GetAirportWeatherObservationsParams) (*http.Request, error)
NewGetAirportWeatherObservationsRequest constructs an http.Request for the GetAirportWeatherObservations method
func NewGetAirportsCanonicalRequest ¶
func NewGetAirportsCanonicalRequest(server string, id string, params *GetAirportsCanonicalParams) (*http.Request, error)
NewGetAirportsCanonicalRequest constructs an http.Request for the GetAirportsCanonical method
func NewGetAirportsNearAirportRequest ¶
func NewGetAirportsNearAirportRequest(server string, id string, params *GetAirportsNearAirportParams) (*http.Request, error)
NewGetAirportsNearAirportRequest constructs an http.Request for the GetAirportsNearAirport method
func NewGetAlertRequest ¶
NewGetAlertRequest constructs an http.Request for the GetAlert method
func NewGetAlertsEndpointRequest ¶
NewGetAlertsEndpointRequest constructs an http.Request for the GetAlertsEndpoint method
func NewGetAllAirportsRequest ¶
func NewGetAllAirportsRequest(server string, params *GetAllAirportsParams) (*http.Request, error)
NewGetAllAirportsRequest constructs an http.Request for the GetAllAirports method
func NewGetAllAlertsRequest ¶
func NewGetAllAlertsRequest(server string, params *GetAllAlertsParams) (*http.Request, error)
NewGetAllAlertsRequest constructs an http.Request for the GetAllAlerts method
func NewGetAllDisruptionCountsRequest ¶
func NewGetAllDisruptionCountsRequest(server string, entityType string, params *GetAllDisruptionCountsParams) (*http.Request, error)
NewGetAllDisruptionCountsRequest constructs an http.Request for the GetAllDisruptionCounts method
func NewGetAllOperatorsRequest ¶
func NewGetAllOperatorsRequest(server string, params *GetAllOperatorsParams) (*http.Request, error)
NewGetAllOperatorsRequest constructs an http.Request for the GetAllOperators method
func NewGetDelaysForAllAirportsRequest ¶
func NewGetDelaysForAllAirportsRequest(server string, params *GetDelaysForAllAirportsParams) (*http.Request, error)
NewGetDelaysForAllAirportsRequest constructs an http.Request for the GetDelaysForAllAirports method
func NewGetDisruptionCountsRequest ¶
func NewGetDisruptionCountsRequest(server string, entityType string, id string, params *GetDisruptionCountsParams) (*http.Request, error)
NewGetDisruptionCountsRequest constructs an http.Request for the GetDisruptionCounts method
func NewGetFlightMapRequest ¶
func NewGetFlightMapRequest(server string, id string, params *GetFlightMapParams) (*http.Request, error)
NewGetFlightMapRequest constructs an http.Request for the GetFlightMap method
func NewGetFlightPositionRequest ¶
NewGetFlightPositionRequest constructs an http.Request for the GetFlightPosition method
func NewGetFlightPositionWithForesightRequest ¶
NewGetFlightPositionWithForesightRequest constructs an http.Request for the GetFlightPositionWithForesight method
func NewGetFlightRequest ¶
func NewGetFlightRequest(server string, ident string, params *GetFlightParams) (*http.Request, error)
NewGetFlightRequest constructs an http.Request for the GetFlight method
func NewGetFlightRouteRequest ¶
NewGetFlightRouteRequest constructs an http.Request for the GetFlightRoute method
func NewGetFlightTrackRequest ¶
func NewGetFlightTrackRequest(server string, id string, params *GetFlightTrackParams) (*http.Request, error)
NewGetFlightTrackRequest constructs an http.Request for the GetFlightTrack method
func NewGetFlightTypeRequest ¶
NewGetFlightTypeRequest constructs an http.Request for the GetFlightType method
func NewGetFlightWithForesightRequest ¶
func NewGetFlightWithForesightRequest(server string, ident string, params *GetFlightWithForesightParams) (*http.Request, error)
NewGetFlightWithForesightRequest constructs an http.Request for the GetFlightWithForesight method
func NewGetFlightsBetweenAirportsRequest ¶
func NewGetFlightsBetweenAirportsRequest(server string, id string, destId string, params *GetFlightsBetweenAirportsParams) (*http.Request, error)
NewGetFlightsBetweenAirportsRequest constructs an http.Request for the GetFlightsBetweenAirports method
func NewGetFlightsByAdvancedSearchRequest ¶
func NewGetFlightsByAdvancedSearchRequest(server string, params *GetFlightsByAdvancedSearchParams) (*http.Request, error)
NewGetFlightsByAdvancedSearchRequest constructs an http.Request for the GetFlightsByAdvancedSearch method
func NewGetFlightsByAdvancedSearchWithForesightRequest ¶
func NewGetFlightsByAdvancedSearchWithForesightRequest(server string, params *GetFlightsByAdvancedSearchWithForesightParams) (*http.Request, error)
NewGetFlightsByAdvancedSearchWithForesightRequest constructs an http.Request for the GetFlightsByAdvancedSearchWithForesight method
func NewGetFlightsByPositionSearchRequest ¶
func NewGetFlightsByPositionSearchRequest(server string, params *GetFlightsByPositionSearchParams) (*http.Request, error)
NewGetFlightsByPositionSearchRequest constructs an http.Request for the GetFlightsByPositionSearch method
func NewGetFlightsBySearchRequest ¶
func NewGetFlightsBySearchRequest(server string, params *GetFlightsBySearchParams) (*http.Request, error)
NewGetFlightsBySearchRequest constructs an http.Request for the GetFlightsBySearch method
func NewGetFlightsCanonicalRequest ¶
func NewGetFlightsCanonicalRequest(server string, ident string, params *GetFlightsCanonicalParams) (*http.Request, error)
NewGetFlightsCanonicalRequest constructs an http.Request for the GetFlightsCanonical method
func NewGetFlightsCountBySearchRequest ¶
func NewGetFlightsCountBySearchRequest(server string, params *GetFlightsCountBySearchParams) (*http.Request, error)
NewGetFlightsCountBySearchRequest constructs an http.Request for the GetFlightsCountBySearch method
func NewGetHistoryAircraftLastFlightRequest ¶
func NewGetHistoryAircraftLastFlightRequest(server string, registration string) (*http.Request, error)
NewGetHistoryAircraftLastFlightRequest constructs an http.Request for the GetHistoryAircraftLastFlight method
func NewGetHistoryAirportsFlightsArrivalsCancellationsRequest ¶
func NewGetHistoryAirportsFlightsArrivalsCancellationsRequest(server string, id string, params *GetHistoryAirportsFlightsArrivalsCancellationsParams) (*http.Request, error)
NewGetHistoryAirportsFlightsArrivalsCancellationsRequest constructs an http.Request for the GetHistoryAirportsFlightsArrivalsCancellations method
func NewGetHistoryAirportsFlightsArrivedRequest ¶
func NewGetHistoryAirportsFlightsArrivedRequest(server string, id string, params *GetHistoryAirportsFlightsArrivedParams) (*http.Request, error)
NewGetHistoryAirportsFlightsArrivedRequest constructs an http.Request for the GetHistoryAirportsFlightsArrived method
func NewGetHistoryAirportsFlightsDepartedRequest ¶
func NewGetHistoryAirportsFlightsDepartedRequest(server string, id string, params *GetHistoryAirportsFlightsDepartedParams) (*http.Request, error)
NewGetHistoryAirportsFlightsDepartedRequest constructs an http.Request for the GetHistoryAirportsFlightsDeparted method
func NewGetHistoryAirportsFlightsDeparturesCancellationsRequest ¶
func NewGetHistoryAirportsFlightsDeparturesCancellationsRequest(server string, id string, params *GetHistoryAirportsFlightsDeparturesCancellationsParams) (*http.Request, error)
NewGetHistoryAirportsFlightsDeparturesCancellationsRequest constructs an http.Request for the GetHistoryAirportsFlightsDeparturesCancellations method
func NewGetHistoryFlightMapRequest ¶
func NewGetHistoryFlightMapRequest(server string, id string, params *GetHistoryFlightMapParams) (*http.Request, error)
NewGetHistoryFlightMapRequest constructs an http.Request for the GetHistoryFlightMap method
func NewGetHistoryFlightRequest ¶
func NewGetHistoryFlightRequest(server string, ident string, params *GetHistoryFlightParams) (*http.Request, error)
NewGetHistoryFlightRequest constructs an http.Request for the GetHistoryFlight method
func NewGetHistoryFlightRouteRequest ¶
NewGetHistoryFlightRouteRequest constructs an http.Request for the GetHistoryFlightRoute method
func NewGetHistoryFlightTrackRequest ¶
func NewGetHistoryFlightTrackRequest(server string, id string, params *GetHistoryFlightTrackParams) (*http.Request, error)
NewGetHistoryFlightTrackRequest constructs an http.Request for the GetHistoryFlightTrack method
func NewGetHistoryFlightsBetweenAirportsRequest ¶
func NewGetHistoryFlightsBetweenAirportsRequest(server string, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams) (*http.Request, error)
NewGetHistoryFlightsBetweenAirportsRequest constructs an http.Request for the GetHistoryFlightsBetweenAirports method
func NewGetHistoryOperatorsFlightsCancellationsRequest ¶
func NewGetHistoryOperatorsFlightsCancellationsRequest(server string, id string, params *GetHistoryOperatorsFlightsCancellationsParams) (*http.Request, error)
NewGetHistoryOperatorsFlightsCancellationsRequest constructs an http.Request for the GetHistoryOperatorsFlightsCancellations method
func NewGetHistoryOperatorsFlightsRequest ¶
func NewGetHistoryOperatorsFlightsRequest(server string, id string, params *GetHistoryOperatorsFlightsParams) (*http.Request, error)
NewGetHistoryOperatorsFlightsRequest constructs an http.Request for the GetHistoryOperatorsFlights method
func NewGetNearbyAirportsRequest ¶
func NewGetNearbyAirportsRequest(server string, params *GetNearbyAirportsParams) (*http.Request, error)
NewGetNearbyAirportsRequest constructs an http.Request for the GetNearbyAirports method
func NewGetOperatorFlightsArrivedRequest ¶
func NewGetOperatorFlightsArrivedRequest(server string, id string, params *GetOperatorFlightsArrivedParams) (*http.Request, error)
NewGetOperatorFlightsArrivedRequest constructs an http.Request for the GetOperatorFlightsArrived method
func NewGetOperatorFlightsCancellationsRequest ¶
func NewGetOperatorFlightsCancellationsRequest(server string, id string, params *GetOperatorFlightsCancellationsParams) (*http.Request, error)
NewGetOperatorFlightsCancellationsRequest constructs an http.Request for the GetOperatorFlightsCancellations method
func NewGetOperatorFlightsCountRequest ¶
NewGetOperatorFlightsCountRequest constructs an http.Request for the GetOperatorFlightsCount method
func NewGetOperatorFlightsEnrouteRequest ¶
func NewGetOperatorFlightsEnrouteRequest(server string, id string, params *GetOperatorFlightsEnrouteParams) (*http.Request, error)
NewGetOperatorFlightsEnrouteRequest constructs an http.Request for the GetOperatorFlightsEnroute method
func NewGetOperatorFlightsRequest ¶
func NewGetOperatorFlightsRequest(server string, id string, params *GetOperatorFlightsParams) (*http.Request, error)
NewGetOperatorFlightsRequest constructs an http.Request for the GetOperatorFlights method
func NewGetOperatorFlightsScheduledRequest ¶
func NewGetOperatorFlightsScheduledRequest(server string, id string, params *GetOperatorFlightsScheduledParams) (*http.Request, error)
NewGetOperatorFlightsScheduledRequest constructs an http.Request for the GetOperatorFlightsScheduled method
func NewGetOperatorRequest ¶
NewGetOperatorRequest constructs an http.Request for the GetOperator method
func NewGetOperatorsCanonicalRequest ¶
func NewGetOperatorsCanonicalRequest(server string, id string, params *GetOperatorsCanonicalParams) (*http.Request, error)
NewGetOperatorsCanonicalRequest constructs an http.Request for the GetOperatorsCanonical method
func NewGetRoutesBetweenAirportsRequest ¶
func NewGetRoutesBetweenAirportsRequest(server string, id string, destId string, params *GetRoutesBetweenAirportsParams) (*http.Request, error)
NewGetRoutesBetweenAirportsRequest constructs an http.Request for the GetRoutesBetweenAirports method
func NewGetSchedulesByDateRequest ¶
func NewGetSchedulesByDateRequest(server string, dateStart string, dateEnd string, params *GetSchedulesByDateParams) (*http.Request, error)
NewGetSchedulesByDateRequest constructs an http.Request for the GetSchedulesByDate method
func NewPostFlightsByIdentRequestWithApplicationJSONCharsetUTF8Body ¶
func NewPostFlightsByIdentRequestWithApplicationJSONCharsetUTF8Body(server string, ident string, body PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
NewPostFlightsByIdentRequestWithApplicationJSONCharsetUTF8Body calls the generic PostFlightsByIdent builder with application/json; charset=UTF-8 body
func NewPostFlightsByIdentRequestWithBody ¶
func NewPostFlightsByIdentRequestWithBody(server string, ident string, contentType string, body io.Reader) (*http.Request, error)
NewPostFlightsByIdentRequestWithBody constructs an http.Request for the PostFlightsByIdent method, with any body, and a specified content type
func NewSetAlertsEndpointRequestWithApplicationJSONCharsetUTF8Body ¶
func NewSetAlertsEndpointRequestWithApplicationJSONCharsetUTF8Body(server string, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
NewSetAlertsEndpointRequestWithApplicationJSONCharsetUTF8Body calls the generic SetAlertsEndpoint builder with application/json; charset=UTF-8 body
func NewSetAlertsEndpointRequestWithBody ¶
func NewSetAlertsEndpointRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSetAlertsEndpointRequestWithBody constructs an http.Request for the SetAlertsEndpoint method, with any body, and a specified content type
func NewUpdateAlertRequestWithApplicationJSONCharsetUTF8Body ¶
func NewUpdateAlertRequestWithApplicationJSONCharsetUTF8Body(server string, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody) (*http.Request, error)
NewUpdateAlertRequestWithApplicationJSONCharsetUTF8Body calls the generic UpdateAlert builder with application/json; charset=UTF-8 body
Types ¶
type CallbackInitiator ¶
type CallbackInitiator struct {
// 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
}
CallbackInitiator sends OpenAPI callback requests to target URLs. Modeled on the generated Client, but with no stored Server -- the full target URL is provided per-call by the caller (typically discovered from a callback expression on the parent operation's request body, e.g. `{$request.body#/callbackUrl}`).
func NewCallbackInitiator ¶
func NewCallbackInitiator(opts ...CallbackInitiatorOption) (*CallbackInitiator, error)
NewCallbackInitiator creates a new CallbackInitiator with reasonable defaults.
func (*CallbackInitiator) DeliverAlertWithApplicationJSONCharsetUTF8Body ¶
func (p *CallbackInitiator) DeliverAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, targetURL string, body DeliverAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*CallbackInitiator) DeliverAlertWithBody ¶
type CallbackInitiatorInterface ¶
type CallbackInitiatorInterface interface {
// DeliverAlertWithBody fires the deliver_alert callback with any body
DeliverAlertWithBody(ctx context.Context, targetURL string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeliverAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, targetURL string, body DeliverAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
CallbackInitiatorInterface is the interface specification for the callback initiator.
type CallbackInitiatorOption ¶
type CallbackInitiatorOption func(*CallbackInitiator) error
CallbackInitiatorOption allows setting custom parameters during construction.
func WithCallbackHTTPClient ¶
func WithCallbackHTTPClient(doer HttpRequestDoer) CallbackInitiatorOption
WithCallbackHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithCallbackRequestEditorFn ¶
func WithCallbackRequestEditorFn(fn RequestEditorFn) CallbackInitiatorOption
WithCallbackRequestEditorFn allows setting up a callback function, which will be called right before sending the callback request. This can be used to mutate the request, e.g. to add signature headers.
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) CreateAlertWithApplicationJSONCharsetUTF8Body ¶
func (c *Client) CreateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlertWithApplicationJSONCharsetUTF8Body Create new alert
Create a new AeroAPI flight alert. When the alert is triggered, a callback mechanism will be used to notify the address set via the /alerts/endpoint endpoint. Each callback will be charged as a query and count towards usage for the AeroAPI key that created the alert. If this key is disabled or removed, the alert will no longer be available. If a target_url is provided, then this specific alert will be delivered to that address regardless of the adress set via the /alerts/endpoint endpoint. Creating more than 50 duplicate alerts with the exact same configuration will result in a 400 error.
Takes a body of the `application/json; charset=UTF-8` content type.
Corresponds with POST /alerts (the `CreateAlert` operationId).
func (*Client) CreateAlertWithBody ¶
func (c *Client) CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateAlertWithBody Create new alert
Create a new AeroAPI flight alert. When the alert is triggered, a callback mechanism will be used to notify the address set via the /alerts/endpoint endpoint. Each callback will be charged as a query and count towards usage for the AeroAPI key that created the alert. If this key is disabled or removed, the alert will no longer be available. If a target_url is provided, then this specific alert will be delivered to that address regardless of the adress set via the /alerts/endpoint endpoint. Creating more than 50 duplicate alerts with the exact same configuration will result in a 400 error.
Takes any type of body and a specified content type.
Corresponds with POST /alerts (the `CreateAlert` operationId).
func (*Client) DeleteAlert ¶
func (c *Client) DeleteAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAlert Delete specific alert
Deletes specific alert with given ID.
Corresponds with DELETE /alerts/{id} (the `DeleteAlert` operationId).
func (*Client) DeleteAlertsEndpoint ¶
func (c *Client) DeleteAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAlertsEndpoint Remove and disable default account-wide alert callback URL
Remove the default account-wide URL that will be POSTed to for alerts that are not configured with a specific URL. This means that any alerts that are not configured with a specific URL will not be delivered.
Corresponds with DELETE /alerts/endpoint (the `DeleteAlertsEndpoint` operationId).
func (*Client) GetAccountUsage ¶
func (c *Client) GetAccountUsage(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAccountUsage Get AeroAPI usage statistics for account
Returns usage statistics for your AeroAPI account. Can be filtered by key and date range. Data per account is updated every 10 minutes.
Corresponds with GET /account/usage (the `GetAccountUsage` operationId).
func (*Client) GetAircraftBlocked ¶
func (c *Client) GetAircraftBlocked(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAircraftBlocked Check if a given ident is blocked
Given an aircraft identification, returns true if the aircraft is blocked from public tracking per request from the owner/operator, false if it is not blocked. Any IATA-like idents will be translated to ICAO before lookup. When marked as blocked, no associated flight information will be visible in AeroAPI. FlightAware can provide aircraft owner/operators with secure access to their blocked flight data by [contacting FlightAware for help](https://www.flightaware.com/about/contact).
Corresponds with GET /aircraft/{ident}/blocked (the `GetAircraftBlocked` operationId).
func (*Client) GetAircraftOwner ¶
func (c *Client) GetAircraftOwner(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAircraftOwner Get the owner of an aircraft
Returns information about the owner of an aircraft, given a flight number or aircraft registration. Data returned includes owner's name, location (typically city and state), and website, if any. Codeshares and alternate idents are automatically searched. Specific owner name information is limited to ownership within the US (sourced by the FAA), Australia, and New Zealand. Note that while this information is updated weekly, there may be a lag in upstream data sources reflecting a change in ownership.
Corresponds with GET /aircraft/{ident}/owner (the `GetAircraftOwner` operationId).
func (*Client) GetAirport ¶
func (c *Client) GetAirport(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirport Get static information about an airport
Returns information about an airport given an ICAO or LID airport code such as KLAX, KIAH, O07, etc. Data returned includes airport name, city, state (when known), latitude, longitude, and timezone.
Corresponds with GET /airports/{id} (the `GetAirport` operationId).
func (*Client) GetAirportDelays ¶
func (c *Client) GetAirportDelays(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportDelays Get airport delay information
Returns a list of reason codes for delays at a specific airport. There may be multiple reasons returned if there are multiple types of delays reported at an airport. Note that individual flights may be delayed without there being an airport delay returned by this endpoint.
Corresponds with GET /airports/{id}/delays (the `GetAirportDelays` operationId).
func (*Client) GetAirportFlights ¶
func (c *Client) GetAirportFlights(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlights Get all flights for a given airport
Returns all recent and upcoming flights departing from or arriving at the specified airport. Filtering/ordering behavior for the optional start and end parameters for each type (`scheduled_departures`, `scheduled_arrivals`, `departures`, `arrivals`) match the behavior in their corresponding endpoints.
Corresponds with GET /airports/{id}/flights (the `GetAirportFlights` operationId).
func (*Client) GetAirportFlightsArrivalsCancellations ¶
func (c *Client) GetAirportFlightsArrivalsCancellations(ctx context.Context, id string, params *GetAirportFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsArrivalsCancellations Get recently cancelled flights that were scheduled to arrive at an airport
Returns flights that were scheduled to arrive at an airport but have been cancelled, ordered by `scheduled_on` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_on` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Corresponds with GET /airports/{id}/flights/arrivals/cancellations (the `GetAirportFlightsArrivalsCancellations` operationId).
func (*Client) GetAirportFlightsArrived ¶
func (c *Client) GetAirportFlightsArrived(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsArrived Get flights that have recently arrived at an airport
Returns flights that have arrived at an airport, orderd by `actual_on` descending. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Corresponds with GET /airports/{id}/flights/arrivals (the `GetAirportFlightsArrived` operationId).
func (*Client) GetAirportFlightsCount ¶
func (c *Client) GetAirportFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsCount Get flight counts for an airport
Returns counts of flights for an airport broken down by flight status. The returned categories are subtly different from what is returned from the `/airports/{id}/flights` endpoints. Specifically, this operation does not include completed flights in its counts, and it does not count cancelled/diverted flights. It also does not strictly bound the time for which scheduled flights are counted, so all future flights that FlightAware knows about are included in the counts. See the response schema and documentation for the airport flights endpoints for more information.
Corresponds with GET /airports/{id}/flights/counts (the `GetAirportFlightsCount` operationId).
func (*Client) GetAirportFlightsDeparted ¶
func (c *Client) GetAirportFlightsDeparted(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsDeparted Get flights that have recently departed from an airport
Returns flights that have departed from an airport and not been diverted, ordered by `actual_off` descending. The optional start and end parameters will be compared against `actual_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Corresponds with GET /airports/{id}/flights/departures (the `GetAirportFlightsDeparted` operationId).
func (*Client) GetAirportFlightsDeparturesCancellations ¶
func (c *Client) GetAirportFlightsDeparturesCancellations(ctx context.Context, id string, params *GetAirportFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsDeparturesCancellations Get recently cancelled flights that were scheduled to depart from an airport
Returns flights that were scheduled to depart from an airport but have been cancelled, ordered by `scheduled_off` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Corresponds with GET /airports/{id}/flights/departures/cancellations (the `GetAirportFlightsDeparturesCancellations` operationId).
func (*Client) GetAirportFlightsScheduledArrivals ¶
func (c *Client) GetAirportFlightsScheduledArrivals(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsScheduledArrivals Get future flights arriving at an airport
Returns flights that are expected to arrive at an airport. This can include both undeparted and en route flights. Flights are ordered by `estimated_on` ascending. The optional start and end parameters will be compared against `estimated_on` to limit the flights returned. The start parameter's default value is 48 hours before the current time (this accounts for delayed flights). The end parameter's default value is 24 hours after the current time.
Corresponds with GET /airports/{id}/flights/scheduled_arrivals (the `GetAirportFlightsScheduledArrivals` operationId).
func (*Client) GetAirportFlightsScheduledDepartures ¶
func (c *Client) GetAirportFlightsScheduledDepartures(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportFlightsScheduledDepartures Get future flights departing from an airport
Returns flights that are scheduled to depart from an airport or have recently been cancelled, ordered by `estimated_off` (or `scheduled_off` if `estimated_off` is missing) ascending. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 2 hours before the current time. The end parameter's default value is 24 hours after the current time.
Corresponds with GET /airports/{id}/flights/scheduled_departures (the `GetAirportFlightsScheduledDepartures` operationId).
func (*Client) GetAirportWeatherForecast ¶
func (c *Client) GetAirportWeatherForecast(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportWeatherForecast Get weather forecast for given airport
Returns the weather forecast for an airport in the form of a decoded TAF (Terminal Area Forecast). Only a single result is returned.
Corresponds with GET /airports/{id}/weather/forecast (the `GetAirportWeatherForecast` operationId).
func (*Client) GetAirportWeatherObservations ¶
func (c *Client) GetAirportWeatherObservations(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportWeatherObservations Get weather conditions for given airport
Returns weather for an airport in the form of a decoded METAR, starting from the latest report and working backwards in time as more data is requested. Data is provided in parsed, human-readable, and raw formats.
Corresponds with GET /airports/{id}/weather/observations (the `GetAirportWeatherObservations` operationId).
func (*Client) GetAirportsCanonical ¶
func (c *Client) GetAirportsCanonical(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportsCanonical Get the canonical code of an airport
Returns a list of ICAO airport codes corresponding to the given IATA or LID airport code. IATA codes can be identical to some LID codes, so if id_type is specified, only 1 ICAO code will be returned. If no id_type is specified and there are two possible ICAO codes, both will be returned.
Corresponds with GET /airports/{id}/canonical (the `GetAirportsCanonical` operationId).
func (*Client) GetAirportsNearAirport ¶
func (c *Client) GetAirportsNearAirport(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAirportsNearAirport Get airports near an airport
Returns a list of airports located within a given distance from the specified airport.
Corresponds with GET /airports/{id}/nearby (the `GetAirportsNearAirport` operationId).
func (*Client) GetAlert ¶
func (c *Client) GetAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlert Get specific alert
Returns the configuration data for an alert with the specified ID.
Corresponds with GET /alerts/{id} (the `GetAlert` operationId).
func (*Client) GetAlertsEndpoint ¶
func (c *Client) GetAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAlertsEndpoint Get configured alert callback URL
Returns URL that will be POSTed to for alerts that are delivered via AeroAPI.
Corresponds with GET /alerts/endpoint (the `GetAlertsEndpoint` operationId).
func (*Client) GetAllAirports ¶
func (c *Client) GetAllAirports(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAllAirports Get all airports
Returns the ICAO identifiers of all known airports. For airports that do not have an ICAO identifier, the FAA LID identifier will be used. Links for further information about each airport are included.
Corresponds with GET /airports (the `GetAllAirports` operationId).
func (*Client) GetAllAlerts ¶
func (c *Client) GetAllAlerts(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAllAlerts Get all configured alerts
Returns all configured alerts for the FlightAware account (this includes alerts configured through other means by the FlightAware user owning the AeroAPI account like FlightAware's website or mobile apps).
Corresponds with GET /alerts (the `GetAllAlerts` operationId).
func (*Client) GetAllDisruptionCounts ¶
func (c *Client) GetAllDisruptionCounts(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAllDisruptionCounts Get global flight disruption statistics
Returns overall flight cancellation or delay counts in the specified time period for either all airlines or all airports.
#### Cancellation Counts #### A cancelled flight will be counted if their `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) time falls within the specified time period. Cancellation counts are calculated at query time based on airline partner data and only count airline-confirmed cancellations.
#### Delay Counts #### Delays are calculated based on the timezone of the origin airport and per day and are counted based on the specified time period. Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival delays (estimated or actual) of 15 minutes or more for flights that are not cancelled. If a delayed flight is eventually cancelled, it will be removed from the statistics count in the next update cycle.
#### Time Periods #### When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`, and `week` are used as the time period, the current day is defined by the user's website timezone setting and starts at 08:00 and ends at 08:00 the next day. For example:
* `today` will represent a 24-hour span starting at the current day at 08:00.
* `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending at today's 08:00.
* `tomorrow` will represent a 24-hour span starting at 08:00 the next day and ending at 08:00 two days from today.
* `plus2days` will represent a 24-hour span starting at 08:00 two days from today and ending at 08:00 three days from today.
* `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago from today and ending at 08:00 the previous day.
* `week` will represent the current 2 weeks of data indexed to the most recent Sunday's 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the current time defined by the user's website timezone setting:
* `minus2plus12hrs` will start capturing statistics 2 hours ago from the current time until 12 hours after the current time.
* `next36hrs` will span from the current time until 36 hours from the current time.
For delay counts, when using `minus2plus12hrs` and `next36hrs` as the time period, a flight will be counted as delayed within this specified time period if any day encompassed by the time span window, centered around the user's website timezone setting, coincides with the delayed flight's origin airport local timezone day of delay.
Corresponds with GET /disruption_counts/{entity_type} (the `GetAllDisruptionCounts` operationId).
func (*Client) GetAllOperators ¶
func (c *Client) GetAllOperators(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetAllOperators Get all operators.
Returns list of operator references (ICAO/IATA codes and URLs to access more information).
Corresponds with GET /operators (the `GetAllOperators` operationId).
func (*Client) GetDelaysForAllAirports ¶
func (c *Client) GetDelaysForAllAirports(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDelaysForAllAirports Get delay information for all airports with delays
Returns a list of airports with delays. There may be multiple reasons returned per airport if there are multiple types of delays reported at an airport. Note that individual flights can be delayed without there being an airport-wide delay returned by this endpoint.
Corresponds with GET /airports/delays (the `GetDelaysForAllAirports` operationId).
func (*Client) GetDisruptionCounts ¶
func (c *Client) GetDisruptionCounts(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDisruptionCounts Get flight disruption statistics for a particular entity
Returns flight cancellation or delay counts in the specified time period for a particular airline or airport.
#### Cancellation Counts #### A cancelled flight will be counted if their `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) time falls within the specified time period. Cancellation counts are calculated at query time based on airline partner data and only count airline-confirmed cancellations.
#### Delay Counts #### Delays are calculated based on the timezone of the origin airport and per day and are counted based on the specified time period. Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival delays (estimated or actual) of 15 minutes or more for flights that are not cancelled. If a delayed flight is eventually cancelled, it will be removed from the statistics count in the next update cycle.
#### Time Periods #### When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`, and `week` are used as the time period, the current day is defined by the user's website timezone setting and starts at 08:00 and ends at 08:00 the next day. For example:
* `today` will represent a 24-hour span starting at the current day at 08:00.
* `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending at today's 08:00.
* `tomorrow` will represent a 24-hour span starting at 08:00 the next day and ending at 08:00 two days from today.
* `plus2days` will represent a 24-hour span starting at 08:00 two days from today and ending at 08:00 three days from today.
* `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago from today and ending at 08:00 the previous day.
* `week` will represent the current 2 weeks of data indexed to the most recent Sunday's 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the current time defined by the user's website timezone setting:
* `minus2plus12hrs` will start capturing statistics 2 hours ago from the current time until 12 hours after the current time.
* `next36hrs` will span from the current time until 36 hours from the current time.
For delay counts, when using `minus2plus12hrs` and `next36hrs` as the time period, a flight will be counted as delayed within this specified time period if any day encompassed by the time span window, centered around the user's website timezone setting, coincides with the delayed flight's origin airport local timezone day of delay.
Corresponds with GET /disruption_counts/{entity_type}/{id} (the `GetDisruptionCounts` operationId).
func (*Client) GetFlight ¶
func (c *Client) GetFlight(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlight Get information for a flight
Returns the flight info status summary for a registration, ident, or fa_flight_id. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id. If a registration or ident is specified, approximately 14 days of recent and scheduled flight information is returned, ordered by `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) descending. Alternately, specify a start and end parameter to find your flight(s) of interest, including up to 10 days of flight history.
Corresponds with GET /flights/{ident} (the `GetFlight` operationId).
func (*Client) GetFlightMap ¶
func (c *Client) GetFlightMap(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightMap Get an image of a flight's track on a map
Returns a flight's track as a base64-encoded image. Image can contain a variety of additional data layers beyond just the track. Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Corresponds with GET /flights/{id}/map (the `GetFlightMap` operationId).
func (*Client) GetFlightPosition ¶
func (c *Client) GetFlightPosition(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightPosition Get flight's current position
Returns the latest position for a flight within the last 24-48 hours.
Corresponds with GET /flights/{id}/position (the `GetFlightPosition` operationId).
func (*Client) GetFlightPositionWithForesight ¶
func (c *Client) GetFlightPositionWithForesight(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightPositionWithForesight Get flight's current position, including Foresight data
Returns the latest position for a flight.
Corresponds with GET /foresight/flights/{id}/position (the `GetFlightPositionWithForesight` operationId).
func (*Client) GetFlightRoute ¶
func (c *Client) GetFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightRoute Get flight's filed route
Returns information about a flight's filed route including coordinates, names, and types of fixes along the route. Not all flight routes can be successfully decoded by this endpoint, particularly if the flight is not entirely within the continental U.S. airspace, since this function only has access to navaids within that area. If data on a waypoint is missing then the type will be listed as "UNKNOWN". Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Corresponds with GET /flights/{id}/route (the `GetFlightRoute` operationId).
func (*Client) GetFlightTrack ¶
func (c *Client) GetFlightTrack(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightTrack Get flight's track
Returns the track for a flight as an array of positions. By default only actual airborne positions will be included. Surface positions (aircraft taxi movement at supported airports) can be requested using the query-string parameters. Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Corresponds with GET /flights/{id}/track (the `GetFlightTrack` operationId).
func (*Client) GetFlightType ¶
func (c *Client) GetFlightType(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightType Get information about an aircraft type
Returns information about an aircraft type, given an ICAO aircraft type designator string. Data returned includes the description, type, manufacturer, engine type, and engine count.
Corresponds with GET /aircraft/types/{type} (the `GetFlightType` operationId).
func (*Client) GetFlightWithForesight ¶
func (c *Client) GetFlightWithForesight(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightWithForesight Get information for a flight, including Foresight data
Returns the flight info status summary for a registration, ident, or fa_flight_id, including all available predicted fields. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id.
Corresponds with GET /foresight/flights/{ident} (the `GetFlightWithForesight` operationId).
func (*Client) GetFlightsBetweenAirports ¶
func (c *Client) GetFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsBetweenAirports Get flights with a specific origin and destination
This endpoint is quite similar to the `FindFlight` operator in prior versions of AeroAPI. Results may include both non-stop and one-stop flights. Note that because the returned flights can include multiple legs, the response format differs from most other flight-returning endpoints. If the optional start or end query parameters are not provided start will default to 1 day in the future, while end will default to 7 days in the past relative to the time the query is made.
Corresponds with GET /airports/{id}/flights/to/{dest_id} (the `GetFlightsBetweenAirports` operationId).
func (*Client) GetFlightsByAdvancedSearch ¶
func (c *Client) GetFlightsByAdvancedSearch(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsByAdvancedSearch Search for flights using advanced syntax
Returns currently or recently airborne flights based on geospatial search parameters.
Query parameters include a 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 of {operator key value} elements and returns an array of flight structures. Each search term must be enclosed in curly braces. Multiple search terms can be combined in an implicit boolean "and" by separating the terms with at least one space. This function only searches flight data representing approximately the last 24 hours. Codeshares and alternate idents are NOT searched when matching against the ident key.
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
Corresponds with GET /flights/search/advanced (the `GetFlightsByAdvancedSearch` operationId).
func (*Client) GetFlightsByAdvancedSearchWithForesight ¶
func (c *Client) GetFlightsByAdvancedSearchWithForesight(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsByAdvancedSearchWithForesight Search for flights, responses include Foresight data
Returns currently or recently airborne flights based on geospatial search parameters. If available, flights' predicted OOOI fields will be set.
Corresponds with GET /foresight/flights/search/advanced (the `GetFlightsByAdvancedSearchWithForesight` operationId).
func (*Client) GetFlightsByPositionSearch ¶
func (c *Client) GetFlightsByPositionSearch(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsByPositionSearch Search for flight positions
Returns flight positions based on geospatial search parameters. This allows you to locate flights that have ever flown within a specific a latitude/longitude box, groundspeed, and altitude. It takes search terms in a single string comprising of {operator key value} elements and returns an array of flight structures. Each search term must be enclosed in curly braces. Multiple search terms can be combined in an implicit boolean "and" by separating the terms with at least one space. This function only searches flight data representing 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. * cid - a three-character cid 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 * 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)
Corresponds with GET /flights/search/positions (the `GetFlightsByPositionSearch` operationId).
func (*Client) GetFlightsBySearch ¶
func (c *Client) GetFlightsBySearch(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsBySearch Search for flights
Search for airborne flights by matching against various parameters including geospatial data. Uses a simplified query syntax compared to /flights/search/advanced.
Corresponds with GET /flights/search (the `GetFlightsBySearch` operationId).
func (*Client) GetFlightsCanonical ¶
func (c *Client) GetFlightsCanonical(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsCanonical Get the canonical ident of a flight
When the ident parameter is a code that could map to multiple other codes, this endpoint returns an array of information about all the possible codes. An optional ident type and country code can be provided to refine ambiguous idents to a single result. The ident type should either be designator or registration to describe the ident being passed in. The country code should represent a country the operator of the flight operates within.
Corresponds with GET /flights/{ident}/canonical (the `GetFlightsCanonical` operationId).
func (*Client) GetFlightsCountBySearch ¶
func (c *Client) GetFlightsCountBySearch(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetFlightsCountBySearch Get count of flights matching search parameters
Full search query documentation is available at the /flights/search endpoint.
Corresponds with GET /flights/search/count (the `GetFlightsCountBySearch` operationId).
func (*Client) GetHistoryAircraftLastFlight ¶
func (c *Client) GetHistoryAircraftLastFlight(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryAircraftLastFlight Get aircraft's last known flight
Returns flight info status summary for an aircraft's last known flight given its registration. The search is limited to flights flown since January 1, 2011. On a successful response, the body will contain a flights array with only 1 element. If a user queries a registration with it's last known flight before January 1, 2011, an empty flights array will be returned.
Corresponds with GET /history/aircraft/{registration}/last_flight (the `GetHistoryAircraftLastFlight` operationId).
func (*Client) GetHistoryAirportsFlightsArrivalsCancellations ¶
func (c *Client) GetHistoryAirportsFlightsArrivalsCancellations(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryAirportsFlightsArrivalsCancellations Get historical cancelled flights that were planned to arrive at an airport
Returns all flights that were planned to arrive at a given airport between the requested start and end date but were cancelled. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/airports/{id}/flights/arrivals/cancellations (the `GetHistoryAirportsFlightsArrivalsCancellations` operationId).
func (*Client) GetHistoryAirportsFlightsArrived ¶
func (c *Client) GetHistoryAirportsFlightsArrived(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryAirportsFlightsArrived Get historical flights that were planned to arrive at an airport
Returns all flights that were planned to arrive at a given airport between the requested start and end date, including canceled flights. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/airports/{id}/flights/arrivals (the `GetHistoryAirportsFlightsArrived` operationId).
func (*Client) GetHistoryAirportsFlightsDeparted ¶
func (c *Client) GetHistoryAirportsFlightsDeparted(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryAirportsFlightsDeparted Get historical flights that were planned to depart from an airport
Returns all flights that were planned to depart from a given airport between the requested start and end date, including canceled flights. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/airports/{id}/flights/departures (the `GetHistoryAirportsFlightsDeparted` operationId).
func (*Client) GetHistoryAirportsFlightsDeparturesCancellations ¶
func (c *Client) GetHistoryAirportsFlightsDeparturesCancellations(ctx context.Context, id string, params *GetHistoryAirportsFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryAirportsFlightsDeparturesCancellations Get historical cancelled flights that were planned to depart from an airport
Returns all flights that were planned to depart from a given airport between the requested start and end date but were cancelled. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/airports/{id}/flights/departures/cancellations (the `GetHistoryAirportsFlightsDeparturesCancellations` operationId).
func (*Client) GetHistoryFlight ¶
func (c *Client) GetHistoryFlight(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryFlight Get information for a historical flight
Returns historical flight info status summary for a registration, ident, or fa_flight_id. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id. If a registraion or ident is specified then `start` and `end` date parameters must be specified. The span between `start` and `end` can be up to 7 days. No more than 40 pages may be requested at once. Data is available from now back to 2011-01-01 00:00:00 UTC.
The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/flights/{ident} (the `GetHistoryFlight` operationId).
func (*Client) GetHistoryFlightMap ¶
func (c *Client) GetHistoryFlightMap(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryFlightMap Get an image of a historical flight's track on a map
Returns a historical flight's track as a base64-encoded image. Image can contain a variety of additional data layers beyond just the track. Data is available from now back to 2011-01-01T00:00:00Z.
Corresponds with GET /history/flights/{id}/map (the `GetHistoryFlightMap` operationId).
func (*Client) GetHistoryFlightRoute ¶
func (c *Client) GetHistoryFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryFlightRoute Get historical flight's filed route
Returns information about a historical flight's filed route including coordinates, names, and types of fixes along the route. Not all flight routes can be successfully decoded by this endpoint, particularly if the flight is not entirely within the continental U.S. airspace, since this function only has access to navaids within that area. If data on a waypoint is missing then the type will be listed as "UNKNOWN". Data is available from now back to 2011-01-01T00:00:00Z.
Corresponds with GET /history/flights/{id}/route (the `GetHistoryFlightRoute` operationId).
func (*Client) GetHistoryFlightTrack ¶
func (c *Client) GetHistoryFlightTrack(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryFlightTrack Get historical information for a flight's track
Returns the track for a historical flight as an array of positions. By default only actual airborne positions will be included. Surface positions (aircraft taxi movement at supported airports) can be requested using the query-string parameters. Data is available from now back to 2011-01-01T00:00:00Z.
Corresponds with GET /history/flights/{id}/track (the `GetHistoryFlightTrack` operationId).
func (*Client) GetHistoryFlightsBetweenAirports ¶
func (c *Client) GetHistoryFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryFlightsBetweenAirports Get historical flights with a specific origin and destination
This endpoint is the historical version of the `/airports/{id}/flights/to/{dest_id}` endpoint with a few differences. Returns all flights that departed from a given airport and arrived at a specified airport between the requested start and end date. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/airports/{id}/flights/to/{dest_id} (the `GetHistoryFlightsBetweenAirports` operationId).
func (*Client) GetHistoryOperatorsFlights ¶
func (c *Client) GetHistoryOperatorsFlights(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryOperatorsFlights Get historical flights for a given operator
This endpoint is the historical version of the `/operators/{id}/flights` endpoint with a few differences. Returns all flights from a given operator between the requested start and end date. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/operators/{id}/flights (the `GetHistoryOperatorsFlights` operationId).
func (*Client) GetHistoryOperatorsFlightsCancellations ¶
func (c *Client) GetHistoryOperatorsFlightsCancellations(ctx context.Context, id string, params *GetHistoryOperatorsFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetHistoryOperatorsFlightsCancellations Get historical cancelled flights for a given operator
Returns all flights from a given operator that were cancelled between the requested start and end date. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Corresponds with GET /history/operators/{id}/flights/cancellations (the `GetHistoryOperatorsFlightsCancellations` operationId).
func (*Client) GetNearbyAirports ¶
func (c *Client) GetNearbyAirports(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetNearbyAirports Get airports near a location
Returns a list of airports located within a given distance from the given location.
Corresponds with GET /airports/nearby (the `GetNearbyAirports` operationId).
func (*Client) GetOperator ¶
func (c *Client) GetOperator(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperator Get static information for an operator.
Returns information for an operator such as their name, ICAO/IATA codes, headquarter location, etc.
Corresponds with GET /operators/{id} (the `GetOperator` operationId).
func (*Client) GetOperatorFlights ¶
func (c *Client) GetOperatorFlights(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlights Get all of an operator's flights
Returns all recent and upcoming flights for this operator. Behaviour for optional start and end dates for each type returned (`scheduled`, `arrivals`, `enroute`) match the behaviour in their corresponding endpoints.
Corresponds with GET /operators/{id}/flights (the `GetOperatorFlights` operationId).
func (*Client) GetOperatorFlightsArrived ¶
func (c *Client) GetOperatorFlightsArrived(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlightsArrived Get arrived flights
Returns flights for this operator that have departed and subsequently arrived, ordered by `actual_on` descending. The optional start and end parameters will be compared against `actual_on` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Corresponds with GET /operators/{id}/flights/arrivals (the `GetOperatorFlightsArrived` operationId).
func (*Client) GetOperatorFlightsCancellations ¶
func (c *Client) GetOperatorFlightsCancellations(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlightsCancellations Get recently cancelled flights for an operator
Returns flights for this operator that have been cancelled, ordered by `scheduled_off` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Corresponds with GET /operators/{id}/flights/cancellations (the `GetOperatorFlightsCancellations` operationId).
func (*Client) GetOperatorFlightsCount ¶
func (c *Client) GetOperatorFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlightsCount Get flight counts for operator
Returns counts of both airborne and recently operated flights for operator.
Corresponds with GET /operators/{id}/flights/counts (the `GetOperatorFlightsCount` operationId).
func (*Client) GetOperatorFlightsEnroute ¶
func (c *Client) GetOperatorFlightsEnroute(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlightsEnroute Get en route flights
Returns flights for this operator that have departed and are currently en route, ordered by `estimated_on` ascending. The optional start and end parameters will be compared against `estimated_on` to limit the flights returned. The start parameter's default value is 48 hours before the current time (this accounts for delayed flights). There is no default end bound.
Corresponds with GET /operators/{id}/flights/enroute (the `GetOperatorFlightsEnroute` operationId).
func (*Client) GetOperatorFlightsScheduled ¶
func (c *Client) GetOperatorFlightsScheduled(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorFlightsScheduled Get scheduled flights
Returns flights for this operator that are scheduled to depart or have recently been cancelled, ordered by `estimated_off` (or `scheduled_off` if `estimated_off` is missing) ascending. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. If start is not specified, flights with a `scheduled_off` or cancellation time no further than two hours into the past will be returned. If end is not specified, there is no guaranteed bound for how far in the future scheduled flights will be returned (it will typically be around 48 hours in the future for commercial flights, though).
Corresponds with GET /operators/{id}/flights/scheduled (the `GetOperatorFlightsScheduled` operationId).
func (*Client) GetOperatorsCanonical ¶
func (c *Client) GetOperatorsCanonical(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetOperatorsCanonical Get the canonical code of an operator for API usage.
Returns all possible matches for a given operator code (ICAO or IATA). An optional country code can be provided to refine ambiguous IATA codes to a single result. The country code should represent a country the operator operates within.
Corresponds with GET /operators/{id}/canonical (the `GetOperatorsCanonical` operationId).
func (*Client) GetRoutesBetweenAirports ¶
func (c *Client) GetRoutesBetweenAirports(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRoutesBetweenAirports Get routes between 2 airports
Returns information about assigned IFR routings between two airports.
Corresponds with GET /airports/{id}/routes/{dest_id} (the `GetRoutesBetweenAirports` operationId).
func (*Client) GetSchedulesByDate ¶
func (c *Client) GetSchedulesByDate(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSchedulesByDate Get scheduled flights
Returns scheduled flights that have been published by airlines. These schedules are available for up to three months in the past as well as one year into the future.
Corresponds with GET /schedules/{date_start}/{date_end} (the `GetSchedulesByDate` operationId).
func (*Client) PostFlightsByIdentWithApplicationJSONCharsetUTF8Body ¶
func (c *Client) PostFlightsByIdentWithApplicationJSONCharsetUTF8Body(ctx context.Context, ident string, body PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PostFlightsByIdentWithApplicationJSONCharsetUTF8Body Submit a Flight Intent
This operation informs FlightAware of an upcoming (or recently departed) flight. This information is used solely by FlightAware for improving the accuracy of flight tracking. This method does not transmit to any ANSP/ATC facility for flight separation or operational services. Access to this endpoint requires special account authorization. The FlightAware account must also be subscribed to FlightAware Global and the specified registration or ident must be on the Global account.
Takes a body of the `application/json; charset=UTF-8` content type.
Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
func (*Client) PostFlightsByIdentWithBody ¶
func (c *Client) PostFlightsByIdentWithBody(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PostFlightsByIdentWithBody Submit a Flight Intent
This operation informs FlightAware of an upcoming (or recently departed) flight. This information is used solely by FlightAware for improving the accuracy of flight tracking. This method does not transmit to any ANSP/ATC facility for flight separation or operational services. Access to this endpoint requires special account authorization. The FlightAware account must also be subscribed to FlightAware Global and the specified registration or ident must be on the Global account.
Takes any type of body and a specified content type.
Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
func (*Client) SetAlertsEndpointWithApplicationJSONCharsetUTF8Body ¶
func (c *Client) SetAlertsEndpointWithApplicationJSONCharsetUTF8Body(ctx context.Context, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SetAlertsEndpointWithApplicationJSONCharsetUTF8Body Set alert callback URL
Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI. This sets the account-wide default URL that all alerts will be delivered to unless the specific alert has a different delivery address configured for it.
Takes a body of the `application/json; charset=UTF-8` content type.
Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
func (*Client) SetAlertsEndpointWithBody ¶
func (c *Client) SetAlertsEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetAlertsEndpointWithBody Set alert callback URL
Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI. This sets the account-wide default URL that all alerts will be delivered to unless the specific alert has a different delivery address configured for it.
Takes any type of body and a specified content type.
Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
func (*Client) UpdateAlertWithApplicationJSONCharsetUTF8Body ¶
func (c *Client) UpdateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAlertWithApplicationJSONCharsetUTF8Body Modify specific alert
Modifies the configuration for an alert with the specified ID. If a target URL address is provided, then the alert will be delivered to that address even if it is different than the default account-wide address set through the alerts/endpoint endpoint. Updating an alert that was created with a different AeroAPI key is possible, but will not change the AeroAPI key that the alert is associated with for usage.
Takes a body of the `application/json; charset=UTF-8` content type.
Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
func (*Client) UpdateAlertWithBody ¶
func (c *Client) UpdateAlertWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateAlertWithBody Modify specific alert
Modifies the configuration for an alert with the specified ID. If a target URL address is provided, then the alert will be delivered to that address even if it is different than the default account-wide address set through the alerts/endpoint endpoint. Updating an alert that was created with a different AeroAPI key is possible, but will not change the AeroAPI key that the alert is associated with for usage.
Takes any type of body and a specified content type.
Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetAccountUsage Get AeroAPI usage statistics for account
//
// Returns usage statistics for your AeroAPI account. Can be filtered
// by key and date range. Data per account is updated every 10 minutes.
//
// Corresponds with GET /account/usage (the `GetAccountUsage` operationId).
GetAccountUsage(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightType Get information about an aircraft type
//
// Returns information about an aircraft type, given an ICAO aircraft type designator string.
// Data returned includes the description, type, manufacturer, engine type, and engine
// count.
//
// Corresponds with GET /aircraft/types/{type} (the `GetFlightType` operationId).
GetFlightType(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAircraftBlocked Check if a given ident is blocked
//
// Given an aircraft identification, returns true if the aircraft is blocked from
// public tracking per request from the owner/operator, false if it is not blocked.
// Any IATA-like idents will be translated to ICAO before lookup.
// When marked as blocked, no associated flight information will be visible in
// AeroAPI. FlightAware can provide aircraft owner/operators with secure access to
// their blocked flight data by [contacting FlightAware for help](https://www.flightaware.com/about/contact).
//
// Corresponds with GET /aircraft/{ident}/blocked (the `GetAircraftBlocked` operationId).
GetAircraftBlocked(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAircraftOwner Get the owner of an aircraft
//
// Returns information about the owner of an aircraft, given a flight number
// or aircraft registration. Data returned includes owner's name, location (typically
// city and state), and website, if any. Codeshares and alternate idents are
// automatically searched. Specific owner name information is limited to ownership
// within the US (sourced by the FAA), Australia, and New Zealand. Note that while
// this information is updated weekly, there may be a lag in upstream data sources
// reflecting a change in ownership.
//
// Corresponds with GET /aircraft/{ident}/owner (the `GetAircraftOwner` operationId).
GetAircraftOwner(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAllAirports Get all airports
//
// Returns the ICAO identifiers of all known airports. For airports that
// do not have an ICAO identifier, the FAA LID identifier will be used.
// Links for further information about each airport are included.
//
// Corresponds with GET /airports (the `GetAllAirports` operationId).
GetAllAirports(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDelaysForAllAirports Get delay information for all airports with delays
//
// Returns a list of airports with delays. There may be multiple reasons
// returned per airport if there are multiple types of delays reported at
// an airport. Note that individual flights can be delayed without there
// being an airport-wide delay returned by this endpoint.
//
// Corresponds with GET /airports/delays (the `GetDelaysForAllAirports` operationId).
GetDelaysForAllAirports(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNearbyAirports Get airports near a location
//
// Returns a list of airports located within a given distance from the
// given location.
//
// Corresponds with GET /airports/nearby (the `GetNearbyAirports` operationId).
GetNearbyAirports(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirport Get static information about an airport
//
// Returns information about an airport given an ICAO or LID airport code
// such as KLAX, KIAH, O07, etc. Data returned includes airport name,
// city, state (when known), latitude, longitude, and timezone.
//
// Corresponds with GET /airports/{id} (the `GetAirport` operationId).
GetAirport(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsCanonical Get the canonical code of an airport
//
// Returns a list of ICAO airport codes corresponding to the given IATA or LID airport code.
// IATA codes can be identical to some LID codes, so if id_type is specified, only 1 ICAO
// code will be returned. If no id_type is specified and there are two possible ICAO codes,
// both will be returned.
//
// Corresponds with GET /airports/{id}/canonical (the `GetAirportsCanonical` operationId).
GetAirportsCanonical(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportDelays Get airport delay information
//
// Returns a list of reason codes for delays at a specific airport. There
// may be multiple reasons returned if there are multiple types of delays
// reported at an airport. Note that individual flights may be delayed
// without there being an airport delay returned by this endpoint.
//
// Corresponds with GET /airports/{id}/delays (the `GetAirportDelays` operationId).
GetAirportDelays(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlights Get all flights for a given airport
//
// Returns all recent and upcoming flights departing from or arriving at
// the specified airport. Filtering/ordering behavior for the optional
// start and end parameters for each type (`scheduled_departures`,
// `scheduled_arrivals`, `departures`, `arrivals`) match the behavior in
// their corresponding endpoints.
//
// Corresponds with GET /airports/{id}/flights (the `GetAirportFlights` operationId).
GetAirportFlights(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsArrived Get flights that have recently arrived at an airport
//
// Returns flights that have arrived at an airport, orderd by
// `actual_on` descending. The start parameter's default value is 24 hours
// before the current time. The end parameter's default value is the
// current time.
//
// Corresponds with GET /airports/{id}/flights/arrivals (the `GetAirportFlightsArrived` operationId).
GetAirportFlightsArrived(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsArrivalsCancellations Get recently cancelled flights that were scheduled to arrive at an airport
//
// Returns flights that were scheduled to arrive at an airport but have
// been cancelled, ordered by `scheduled_on` descending. Every flight
// returned by this endpoint has `cancelled` set to `true`. The optional
// start and end parameters will be compared against `scheduled_on` to
// limit the flights returned. The start parameter's default value is
// 24 hours before the current time. The end parameter's default value is
// the current time. `start` cannot be more than 10 days in the past and
// `end` cannot be more than 2 days in the future.
//
// Corresponds with GET /airports/{id}/flights/arrivals/cancellations (the `GetAirportFlightsArrivalsCancellations` operationId).
GetAirportFlightsArrivalsCancellations(ctx context.Context, id string, params *GetAirportFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsCount Get flight counts for an airport
//
// Returns counts of flights for an airport broken down by flight status.
// The returned categories are subtly different from what is returned from
// the `/airports/{id}/flights` endpoints. Specifically, this operation
// does not include completed flights in its counts, and it does not count
// cancelled/diverted flights. It also does not strictly bound the time
// for which scheduled flights are counted, so all future flights that
// FlightAware knows about are included in the counts. See the response
// schema and documentation for the airport flights endpoints for more
// information.
//
// Corresponds with GET /airports/{id}/flights/counts (the `GetAirportFlightsCount` operationId).
GetAirportFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsDeparted Get flights that have recently departed from an airport
//
// Returns flights that have departed from an airport and not been
// diverted, ordered by `actual_off` descending. The optional start and
// end parameters will be compared against `actual_off` to limit the
// flights returned. The start parameter's default value is 24 hours
// before the current time. The end parameter's default value is the
// current time.
//
// Corresponds with GET /airports/{id}/flights/departures (the `GetAirportFlightsDeparted` operationId).
GetAirportFlightsDeparted(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsDeparturesCancellations Get recently cancelled flights that were scheduled to depart from an airport
//
// Returns flights that were scheduled to depart from an airport but have
// been cancelled, ordered by `scheduled_off` descending. Every flight
// returned by this endpoint has `cancelled` set to `true`. The optional
// start and end parameters will be compared against `scheduled_off` to
// limit the flights returned. The start parameter's default value is
// 24 hours before the current time. The end parameter's default value is
// the current time. `start` cannot be more than 10 days in the past and
// `end` cannot be more than 2 days in the future.
//
// Corresponds with GET /airports/{id}/flights/departures/cancellations (the `GetAirportFlightsDeparturesCancellations` operationId).
GetAirportFlightsDeparturesCancellations(ctx context.Context, id string, params *GetAirportFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsScheduledArrivals Get future flights arriving at an airport
//
// Returns flights that are expected to arrive at an airport. This can
// include both undeparted and en route flights. Flights are ordered by
// `estimated_on` ascending. The optional start and end parameters will
// be compared against `estimated_on` to limit the flights returned. The
// start parameter's default value is 48 hours before the current time
// (this accounts for delayed flights). The end parameter's default value
// is 24 hours after the current time.
//
// Corresponds with GET /airports/{id}/flights/scheduled_arrivals (the `GetAirportFlightsScheduledArrivals` operationId).
GetAirportFlightsScheduledArrivals(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportFlightsScheduledDepartures Get future flights departing from an airport
//
// Returns flights that are scheduled to depart from an airport or have
// recently been cancelled, ordered by `estimated_off` (or `scheduled_off`
// if `estimated_off` is missing) ascending. The optional start and end
// parameters will be compared against `scheduled_off` to limit the
// flights returned. The start parameter's default value is 2 hours before
// the current time. The end parameter's default value is 24 hours after
// the current time.
//
// Corresponds with GET /airports/{id}/flights/scheduled_departures (the `GetAirportFlightsScheduledDepartures` operationId).
GetAirportFlightsScheduledDepartures(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsBetweenAirports Get flights with a specific origin and destination
//
// This endpoint is quite similar to the `FindFlight` operator in prior
// versions of AeroAPI. Results may include both non-stop and one-stop
// flights. Note that because the returned flights can include multiple
// legs, the response format differs from most other flight-returning
// endpoints. If the optional start or end query parameters are not
// provided start will default to 1 day in the future, while end will
// default to 7 days in the past relative to the time the query is made.
//
// Corresponds with GET /airports/{id}/flights/to/{dest_id} (the `GetFlightsBetweenAirports` operationId).
GetFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportsNearAirport Get airports near an airport
//
// Returns a list of airports located within a given distance from the
// specified airport.
//
// Corresponds with GET /airports/{id}/nearby (the `GetAirportsNearAirport` operationId).
GetAirportsNearAirport(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRoutesBetweenAirports Get routes between 2 airports
//
// Returns information about assigned IFR routings between two airports.
//
// Corresponds with GET /airports/{id}/routes/{dest_id} (the `GetRoutesBetweenAirports` operationId).
GetRoutesBetweenAirports(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportWeatherForecast Get weather forecast for given airport
//
// Returns the weather forecast for an airport in the form of a decoded TAF
// (Terminal Area Forecast). Only a single result is returned.
//
// Corresponds with GET /airports/{id}/weather/forecast (the `GetAirportWeatherForecast` operationId).
GetAirportWeatherForecast(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAirportWeatherObservations Get weather conditions for given airport
//
// Returns weather for an airport in the form of a decoded METAR, starting
// from the latest report and working backwards in time as more data is
// requested. Data is provided in parsed, human-readable, and raw
// formats.
//
// Corresponds with GET /airports/{id}/weather/observations (the `GetAirportWeatherObservations` operationId).
GetAirportWeatherObservations(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAllAlerts Get all configured alerts
//
// Returns all configured alerts for the FlightAware account (this
// includes alerts configured through other means by the FlightAware user
// owning the AeroAPI account like FlightAware's website or mobile apps).
//
// Corresponds with GET /alerts (the `GetAllAlerts` operationId).
GetAllAlerts(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlertWithBody Create new alert
//
// Create a new AeroAPI flight alert. When the alert is triggered, a
// callback mechanism will be used to notify the address set via the
// /alerts/endpoint endpoint. Each callback will be charged as a query and
// count towards usage for the AeroAPI key that created the alert. If this key
// is disabled or removed, the alert will no longer be available.
// If a target_url is provided, then this specific alert will be delivered
// to that address regardless of the adress set via the /alerts/endpoint endpoint.
// Creating more than 50 duplicate alerts with the exact same configuration
// will result in a 400 error.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /alerts (the `CreateAlert` operationId).
CreateAlertWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateAlertWithApplicationJSONCharsetUTF8Body Create new alert
//
// Create a new AeroAPI flight alert. When the alert is triggered, a
// callback mechanism will be used to notify the address set via the
// /alerts/endpoint endpoint. Each callback will be charged as a query and
// count towards usage for the AeroAPI key that created the alert. If this key
// is disabled or removed, the alert will no longer be available.
// If a target_url is provided, then this specific alert will be delivered
// to that address regardless of the adress set via the /alerts/endpoint endpoint.
// Creating more than 50 duplicate alerts with the exact same configuration
// will result in a 400 error.
//
// Takes a body of the `application/json; charset=UTF-8` content type.
//
// Corresponds with POST /alerts (the `CreateAlert` operationId).
CreateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAlertsEndpoint Remove and disable default account-wide alert callback URL
//
// Remove the default account-wide URL that will be POSTed to for alerts that are
// not configured with a specific URL. This means that any alerts that are not configured
// with a specific URL will not be delivered.
//
// Corresponds with DELETE /alerts/endpoint (the `DeleteAlertsEndpoint` operationId).
DeleteAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlertsEndpoint Get configured alert callback URL
//
// Returns URL that will be POSTed to for alerts that are delivered via AeroAPI.
//
// Corresponds with GET /alerts/endpoint (the `GetAlertsEndpoint` operationId).
GetAlertsEndpoint(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetAlertsEndpointWithBody Set alert callback URL
//
// Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI.
// This sets the account-wide default URL that all alerts will be delivered to unless
// the specific alert has a different delivery address configured for it.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
SetAlertsEndpointWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetAlertsEndpointWithApplicationJSONCharsetUTF8Body Set alert callback URL
//
// Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI.
// This sets the account-wide default URL that all alerts will be delivered to unless
// the specific alert has a different delivery address configured for it.
//
// Takes a body of the `application/json; charset=UTF-8` content type.
//
// Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
SetAlertsEndpointWithApplicationJSONCharsetUTF8Body(ctx context.Context, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAlert Delete specific alert
//
// Deletes specific alert with given ID.
//
// Corresponds with DELETE /alerts/{id} (the `DeleteAlert` operationId).
DeleteAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAlert Get specific alert
//
// Returns the configuration data for an alert with the specified ID.
//
// Corresponds with GET /alerts/{id} (the `GetAlert` operationId).
GetAlert(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAlertWithBody Modify specific alert
//
// Modifies the configuration for an alert with the specified ID. If a target
// URL address is provided, then the alert will be delivered to that address
// even if it is different than the default account-wide address set through
// the alerts/endpoint endpoint. Updating an alert that was created with a
// different AeroAPI key is possible, but will not change the AeroAPI key that
// the alert is associated with for usage.
//
// Takes any type of body and a specified content type.
//
// Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
UpdateAlertWithBody(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateAlertWithApplicationJSONCharsetUTF8Body Modify specific alert
//
// Modifies the configuration for an alert with the specified ID. If a target
// URL address is provided, then the alert will be delivered to that address
// even if it is different than the default account-wide address set through
// the alerts/endpoint endpoint. Updating an alert that was created with a
// different AeroAPI key is possible, but will not change the AeroAPI key that
// the alert is associated with for usage.
//
// Takes a body of the `application/json; charset=UTF-8` content type.
//
// Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
UpdateAlertWithApplicationJSONCharsetUTF8Body(ctx context.Context, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAllDisruptionCounts Get global flight disruption statistics
//
// Returns overall flight cancellation or delay counts in the specified time period
// for either all airlines or all airports.
//
// #### Cancellation Counts ####
// A cancelled flight will be counted if their `scheduled_out`
// (or `scheduled_off` if `scheduled_out` is missing)
// time falls within the specified time period. Cancellation
// counts are calculated at query time based on airline partner
// data and only count airline-confirmed cancellations.
//
// #### Delay Counts ####
// Delays are calculated based on the timezone
// of the origin airport and per day and are counted based on the specified time period.
// Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival
// delays (estimated or actual) of 15 minutes or more for flights that are not cancelled.
// If a delayed flight is eventually cancelled, it will be removed from the statistics
// count in the next update cycle.
//
// #### Time Periods ####
// When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`,
// and `week` are used as the time period, the current day is defined by the user's
// website timezone setting and starts at 08:00 and ends at 08:00 the next day. For
// example:
//
// * `today` will represent a 24-hour span starting at the current day at 08:00.
//
// * `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending
// at today's 08:00.
//
// * `tomorrow` will represent a 24-hour span starting at 08:00 the next
// day and ending at 08:00 two days from today.
//
// * `plus2days` will represent a 24-hour span starting at 08:00 two days from
// today and ending at 08:00 three days from today.
//
// * `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago
// from today and ending at 08:00 the previous day.
//
// * `week` will represent the current 2 weeks of data indexed to the most recent Sunday's
// 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
//
// For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the
// current time defined by the user's website timezone setting:
//
// * `minus2plus12hrs` will start capturing statistics 2 hours ago from the current
// time until 12 hours after the current time.
//
// * `next36hrs` will span from the current time until 36 hours
// from the current time.
//
// For delay counts, when using `minus2plus12hrs` and `next36hrs`
// as the time period, a flight will be counted as delayed within this specified
// time period if any day encompassed by the time span window, centered around
// the user's website timezone setting, coincides with the
// delayed flight's origin airport local timezone day of delay.
//
// Corresponds with GET /disruption_counts/{entity_type} (the `GetAllDisruptionCounts` operationId).
GetAllDisruptionCounts(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDisruptionCounts Get flight disruption statistics for a particular entity
//
// Returns flight cancellation or delay counts in the specified time period for a particular airline or airport.
//
// #### Cancellation Counts ####
// A cancelled flight will be counted if their `scheduled_out`
// (or `scheduled_off` if `scheduled_out` is missing)
// time falls within the specified time period. Cancellation
// counts are calculated at query time based on airline partner
// data and only count airline-confirmed cancellations.
//
// #### Delay Counts ####
// Delays are calculated based on the timezone
// of the origin airport and per day and are counted based on the specified time period.
// Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival
// delays (estimated or actual) of 15 minutes or more for flights that are not cancelled.
// If a delayed flight is eventually cancelled, it will be removed from the statistics
// count in the next update cycle.
//
// #### Time Periods ####
// When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`,
// and `week` are used as the time period, the current day is defined by the user's
// website timezone setting and starts at 08:00 and ends at 08:00 the next day. For
// example:
//
// * `today` will represent a 24-hour span starting at the current day at 08:00.
//
// * `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending
// at today's 08:00.
//
// * `tomorrow` will represent a 24-hour span starting at 08:00 the next
// day and ending at 08:00 two days from today.
//
// * `plus2days` will represent a 24-hour span starting at 08:00 two days from
// today and ending at 08:00 three days from today.
//
// * `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago
// from today and ending at 08:00 the previous day.
//
// * `week` will represent the current 2 weeks of data indexed to the most recent Sunday's
// 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
//
// For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the
// current time defined by the user's website timezone setting:
//
// * `minus2plus12hrs` will start capturing statistics 2 hours ago from the current
// time until 12 hours after the current time.
//
// * `next36hrs` will span from the current time until 36 hours
// from the current time.
//
// For delay counts, when using `minus2plus12hrs` and `next36hrs`
// as the time period, a flight will be counted as delayed within this specified
// time period if any day encompassed by the time span window, centered around
// the user's website timezone setting, coincides with the
// delayed flight's origin airport local timezone day of delay.
//
// Corresponds with GET /disruption_counts/{entity_type}/{id} (the `GetDisruptionCounts` operationId).
GetDisruptionCounts(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsBySearch Search for flights
//
// Search for airborne flights by matching against various parameters including
// geospatial data. Uses a simplified query syntax compared to
// /flights/search/advanced.
//
// Corresponds with GET /flights/search (the `GetFlightsBySearch` operationId).
GetFlightsBySearch(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsByAdvancedSearch Search for flights using advanced syntax
//
// Returns currently or recently airborne flights based on geospatial
// search parameters.
//
// Query parameters include a 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 of
// {operator key value} elements and returns an array of flight
// structures. Each search term must be enclosed in curly braces. Multiple
// search terms can be combined in an implicit boolean "and" by separating
// the terms with at least one space. This function only searches flight
// data representing approximately the last 24 hours. Codeshares and
// alternate idents are NOT searched when matching against the ident key.
//
// 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
//
// Corresponds with GET /flights/search/advanced (the `GetFlightsByAdvancedSearch` operationId).
GetFlightsByAdvancedSearch(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsCountBySearch Get count of flights matching search parameters
//
// Full search query documentation is available at the /flights/search
// endpoint.
//
// Corresponds with GET /flights/search/count (the `GetFlightsCountBySearch` operationId).
GetFlightsCountBySearch(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsByPositionSearch Search for flight positions
//
// Returns flight positions based on geospatial search parameters. This
// allows you to locate flights that have ever flown within a specific a
// latitude/longitude box, groundspeed, and altitude. It takes search
// terms in a single string comprising of {operator key value} elements
// and returns an array of flight structures. Each search term must be
// enclosed in curly braces. Multiple search terms can be combined in an
// implicit boolean "and" by separating the terms with at least one space.
// This function only searches flight data representing 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.
// * cid - a three-character cid 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
// * 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)
//
// Corresponds with GET /flights/search/positions (the `GetFlightsByPositionSearch` operationId).
GetFlightsByPositionSearch(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlight Get information for a flight
//
// Returns the flight info status summary for a registration, ident, or
// fa_flight_id. If a fa_flight_id is specified then a maximum of 1
// flight is returned, unless the flight has been diverted in which case
// both the original flight and any diversions will be returned with a
// duplicate fa_flight_id. If a registration or ident is specified,
// approximately 14 days of recent and scheduled flight information is
// returned, ordered by `scheduled_out` (or `scheduled_off` if
// `scheduled_out` is missing) descending. Alternately, specify a start
// and end parameter to find your flight(s) of interest, including up to
// 10 days of flight history.
//
// Corresponds with GET /flights/{ident} (the `GetFlight` operationId).
GetFlight(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsCanonical Get the canonical ident of a flight
//
// When the ident parameter is a code that could map to multiple other codes,
// this endpoint returns an array of information about all the possible codes.
// An optional ident type and country code can be provided to refine ambiguous
// idents to a single result. The ident type should either be designator or
// registration to describe the ident being passed in. The country code should
// represent a country the operator of the flight operates within.
//
// Corresponds with GET /flights/{ident}/canonical (the `GetFlightsCanonical` operationId).
GetFlightsCanonical(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostFlightsByIdentWithBody Submit a Flight Intent
//
// This operation informs FlightAware of an upcoming (or recently
// departed) flight. This information is used solely by FlightAware for
// improving the accuracy of flight tracking. This method does not
// transmit to any ANSP/ATC facility for flight separation or operational
// services. Access to this endpoint requires special account
// authorization. The FlightAware account must also be subscribed to
// FlightAware Global and the specified registration or ident must be on
// the Global account.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
PostFlightsByIdentWithBody(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PostFlightsByIdentWithApplicationJSONCharsetUTF8Body Submit a Flight Intent
//
// This operation informs FlightAware of an upcoming (or recently
// departed) flight. This information is used solely by FlightAware for
// improving the accuracy of flight tracking. This method does not
// transmit to any ANSP/ATC facility for flight separation or operational
// services. Access to this endpoint requires special account
// authorization. The FlightAware account must also be subscribed to
// FlightAware Global and the specified registration or ident must be on
// the Global account.
//
// Takes a body of the `application/json; charset=UTF-8` content type.
//
// Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
PostFlightsByIdentWithApplicationJSONCharsetUTF8Body(ctx context.Context, ident string, body PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightMap Get an image of a flight's track on a map
//
// Returns a flight's track as a base64-encoded image. Image can contain a
// variety of additional data layers beyond just the track. Data from up to 10 days
// ago can be obtained. If looking for older data, please use the corresponding
// historical endpoint.
//
// Corresponds with GET /flights/{id}/map (the `GetFlightMap` operationId).
GetFlightMap(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightPosition Get flight's current position
//
// Returns the latest position for a flight within the last 24-48 hours.
//
// Corresponds with GET /flights/{id}/position (the `GetFlightPosition` operationId).
GetFlightPosition(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightRoute Get flight's filed route
//
// Returns information about a flight's filed route including coordinates,
// names, and types of fixes along the route. Not all flight routes can
// be successfully decoded by this endpoint, particularly if the flight is
// not entirely within the continental U.S. airspace, since this function
// only has access to navaids within that area. If data on a waypoint is
// missing then the type will be listed as "UNKNOWN". Data from up to 10 days
// ago can be obtained. If looking for older data, please use the corresponding
// historical endpoint.
//
// Corresponds with GET /flights/{id}/route (the `GetFlightRoute` operationId).
GetFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightTrack Get flight's track
//
// Returns the track for a flight as an array of positions. By default
// only actual airborne positions will be included. Surface
// positions (aircraft taxi movement at supported airports)
// can be requested using the query-string parameters.
// Data from up to 10 days ago can be obtained.
// If looking for older data, please use the corresponding
// historical endpoint.
//
// Corresponds with GET /flights/{id}/track (the `GetFlightTrack` operationId).
GetFlightTrack(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightsByAdvancedSearchWithForesight Search for flights, responses include Foresight data
//
// Returns currently or recently airborne flights based on geospatial
// search parameters. If available, flights' predicted OOOI fields will be
// set.
//
// Corresponds with GET /foresight/flights/search/advanced (the `GetFlightsByAdvancedSearchWithForesight` operationId).
GetFlightsByAdvancedSearchWithForesight(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightWithForesight Get information for a flight, including Foresight data
//
// Returns the flight info status summary for a registration, ident, or
// fa_flight_id, including all available predicted fields. If a
// fa_flight_id is specified then a maximum of 1 flight is returned,
// unless the flight has been diverted in which case both the original
// flight and any diversions will be returned with a duplicate fa_flight_id.
//
// Corresponds with GET /foresight/flights/{ident} (the `GetFlightWithForesight` operationId).
GetFlightWithForesight(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFlightPositionWithForesight Get flight's current position, including Foresight data
//
// Returns the latest position for a flight.
//
// Corresponds with GET /foresight/flights/{id}/position (the `GetFlightPositionWithForesight` operationId).
GetFlightPositionWithForesight(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryAircraftLastFlight Get aircraft's last known flight
//
// Returns flight info status summary for an aircraft's last known flight
// given its registration. The search is limited to flights flown since
// January 1, 2011. On a successful response, the body will contain a
// flights array with only 1 element. If a user queries a registration with
// it's last known flight before January 1, 2011, an empty flights array will
// be returned.
//
// Corresponds with GET /history/aircraft/{registration}/last_flight (the `GetHistoryAircraftLastFlight` operationId).
GetHistoryAircraftLastFlight(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryAirportsFlightsArrived Get historical flights that were planned to arrive at an airport
//
// Returns all flights that were planned to arrive at a given airport
// between the requested start and end date, including canceled flights.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be
// populated by this resource.
//
// Corresponds with GET /history/airports/{id}/flights/arrivals (the `GetHistoryAirportsFlightsArrived` operationId).
GetHistoryAirportsFlightsArrived(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryAirportsFlightsArrivalsCancellations Get historical cancelled flights that were planned to arrive at an airport
//
// Returns all flights that were planned to arrive at a given airport
// between the requested start and end date but were cancelled. Every
// flight returned by this endpoint has `cancelled` set to `true`.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). `start` and `end` are required. No more than 40 pages may
// be requested at once. Data is available between 2011-01-01 00:00:00 UTC
// and up to now. The field `inbound_fa_flight_id` will not be populated
// by this resource.
//
// Corresponds with GET /history/airports/{id}/flights/arrivals/cancellations (the `GetHistoryAirportsFlightsArrivalsCancellations` operationId).
GetHistoryAirportsFlightsArrivalsCancellations(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryAirportsFlightsDeparted Get historical flights that were planned to depart from an airport
//
// Returns all flights that were planned to depart from a given airport
// between the requested start and end date, including canceled flights.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be
// populated by this resource.
//
// Corresponds with GET /history/airports/{id}/flights/departures (the `GetHistoryAirportsFlightsDeparted` operationId).
GetHistoryAirportsFlightsDeparted(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryAirportsFlightsDeparturesCancellations Get historical cancelled flights that were planned to depart from an airport
//
// Returns all flights that were planned to depart from a given airport
// between the requested start and end date but were cancelled. Every
// flight returned by this endpoint has `cancelled` set to `true`.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). `start` and `end` are required. No more than 40 pages may
// be requested at once. Data is available between 2011-01-01 00:00:00 UTC
// and up to now. The field `inbound_fa_flight_id` will not be populated
// by this resource.
//
// Corresponds with GET /history/airports/{id}/flights/departures/cancellations (the `GetHistoryAirportsFlightsDeparturesCancellations` operationId).
GetHistoryAirportsFlightsDeparturesCancellations(ctx context.Context, id string, params *GetHistoryAirportsFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryFlightsBetweenAirports Get historical flights with a specific origin and destination
//
// This endpoint is the historical version of the `/airports/{id}/flights/to/{dest_id}`
// endpoint with a few differences. Returns all flights that departed from a given airport and
// arrived at a specified airport between the requested start and end date.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Corresponds with GET /history/airports/{id}/flights/to/{dest_id} (the `GetHistoryFlightsBetweenAirports` operationId).
GetHistoryFlightsBetweenAirports(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryFlight Get information for a historical flight
//
// Returns historical flight info status summary for a registration, ident,
// or fa_flight_id. If a fa_flight_id is specified then a maximum of 1
// flight is returned, unless the flight has been diverted in which case
// both the original flight and any diversions will be returned with a
// duplicate fa_flight_id. If a registraion or ident is specified then
// `start` and `end` date parameters must be specified. The span between `start`
// and `end` can be up to 7 days. No more than 40 pages may be requested
// at once. Data is available from now back to 2011-01-01 00:00:00 UTC.
//
// The field `inbound_fa_flight_id` will not be populated by this resource.
//
// Corresponds with GET /history/flights/{ident} (the `GetHistoryFlight` operationId).
GetHistoryFlight(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryFlightMap Get an image of a historical flight's track on a map
//
// Returns a historical flight's track as a base64-encoded image. Image can contain a
// variety of additional data layers beyond just the track. Data is available from now back to
// 2011-01-01T00:00:00Z.
//
// Corresponds with GET /history/flights/{id}/map (the `GetHistoryFlightMap` operationId).
GetHistoryFlightMap(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryFlightRoute Get historical flight's filed route
//
// Returns information about a historical flight's filed route including
// coordinates, names, and types of fixes along the route. Not all flight
// routes can be successfully decoded by this endpoint, particularly if the
// flight is not entirely within the continental U.S. airspace, since this function
// only has access to navaids within that area. If data on a waypoint is
// missing then the type will be listed as "UNKNOWN". Data is available from now back to
// 2011-01-01T00:00:00Z.
//
// Corresponds with GET /history/flights/{id}/route (the `GetHistoryFlightRoute` operationId).
GetHistoryFlightRoute(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryFlightTrack Get historical information for a flight's track
//
// Returns the track for a historical flight as an array of positions.
// By default only actual airborne positions will be included. Surface
// positions (aircraft taxi movement at supported airports) can be
// requested using the query-string parameters.
// Data is available from now back to 2011-01-01T00:00:00Z.
//
// Corresponds with GET /history/flights/{id}/track (the `GetHistoryFlightTrack` operationId).
GetHistoryFlightTrack(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryOperatorsFlights Get historical flights for a given operator
//
// This endpoint is the historical version of the `/operators/{id}/flights`
// endpoint with a few differences. Returns all flights from a given operator
// between the requested start and end date.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Corresponds with GET /history/operators/{id}/flights (the `GetHistoryOperatorsFlights` operationId).
GetHistoryOperatorsFlights(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHistoryOperatorsFlightsCancellations Get historical cancelled flights for a given operator
//
// Returns all flights from a given operator that were cancelled between
// the requested start and end date. Every flight returned by this
// endpoint has `cancelled` set to `true`. The span between `start` and
// `end` date parameters can be up to 1 day (24 hours). `start` and `end`
// are required. No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Corresponds with GET /history/operators/{id}/flights/cancellations (the `GetHistoryOperatorsFlightsCancellations` operationId).
GetHistoryOperatorsFlightsCancellations(ctx context.Context, id string, params *GetHistoryOperatorsFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAllOperators Get all operators.
//
// Returns list of operator references (ICAO/IATA codes and URLs to access
// more information).
//
// Corresponds with GET /operators (the `GetAllOperators` operationId).
GetAllOperators(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperator Get static information for an operator.
//
// Returns information for an operator such as their name, ICAO/IATA
// codes, headquarter location, etc.
//
// Corresponds with GET /operators/{id} (the `GetOperator` operationId).
GetOperator(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorsCanonical Get the canonical code of an operator for API usage.
//
// Returns all possible matches for a given operator code (ICAO or IATA).
// An optional country code can be provided to refine ambiguous IATA codes
// to a single result. The country code should represent a country the
// operator operates within.
//
// Corresponds with GET /operators/{id}/canonical (the `GetOperatorsCanonical` operationId).
GetOperatorsCanonical(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlights Get all of an operator's flights
//
// Returns all recent and upcoming flights for this operator. Behaviour for
// optional start and end dates for each type returned (`scheduled`, `arrivals`,
// `enroute`) match the behaviour in their corresponding endpoints.
//
// Corresponds with GET /operators/{id}/flights (the `GetOperatorFlights` operationId).
GetOperatorFlights(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlightsArrived Get arrived flights
//
// Returns flights for this operator that have departed and subsequently
// arrived, ordered by `actual_on` descending. The optional start and end
// parameters will be compared against `actual_on` to limit the flights
// returned. The start parameter's default value is 24 hours before the
// current time. The end parameter's default value is the current time.
//
// Corresponds with GET /operators/{id}/flights/arrivals (the `GetOperatorFlightsArrived` operationId).
GetOperatorFlightsArrived(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlightsCancellations Get recently cancelled flights for an operator
//
// Returns flights for this operator that have been cancelled, ordered by
// `scheduled_off` descending. Every flight returned by this endpoint has
// `cancelled` set to `true`. The optional start and end parameters will
// be compared against `scheduled_off` to limit the flights returned. The
// start parameter's default value is 24 hours before the current time.
// The end parameter's default value is the current time. `start` cannot
// be more than 10 days in the past and `end` cannot be more than 2 days
// in the future.
//
// Corresponds with GET /operators/{id}/flights/cancellations (the `GetOperatorFlightsCancellations` operationId).
GetOperatorFlightsCancellations(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlightsCount Get flight counts for operator
//
// Returns counts of both airborne and recently operated flights for
// operator.
//
// Corresponds with GET /operators/{id}/flights/counts (the `GetOperatorFlightsCount` operationId).
GetOperatorFlightsCount(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlightsEnroute Get en route flights
//
// Returns flights for this operator that have departed and are currently
// en route, ordered by `estimated_on` ascending. The optional start and
// end parameters will be compared against `estimated_on` to limit the
// flights returned. The start parameter's default value is 48 hours
// before the current time (this accounts for delayed flights). There is
// no default end bound.
//
// Corresponds with GET /operators/{id}/flights/enroute (the `GetOperatorFlightsEnroute` operationId).
GetOperatorFlightsEnroute(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperatorFlightsScheduled Get scheduled flights
//
// Returns flights for this operator that are scheduled to depart or have
// recently been cancelled, ordered by `estimated_off` (or `scheduled_off`
// if `estimated_off` is missing) ascending. The optional start and end
// parameters will be compared against `scheduled_off` to limit the
// flights returned. If start is not specified, flights with a
// `scheduled_off` or cancellation time no further than two hours into the
// past will be returned. If end is not specified, there is no guaranteed
// bound for how far in the future scheduled flights will be returned (it
// will typically be around 48 hours in the future for commercial flights,
// though).
//
// Corresponds with GET /operators/{id}/flights/scheduled (the `GetOperatorFlightsScheduled` operationId).
GetOperatorFlightsScheduled(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSchedulesByDate Get scheduled flights
//
// Returns scheduled flights that have been published by airlines. These
// schedules are available for up to three months in the past as well as
// one year into the future.
//
// Corresponds with GET /schedules/{date_start}/{date_end} (the `GetSchedulesByDate` operationId).
GetSchedulesByDate(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithAuthentication ¶
func WithAuthentication(apiKey string) ClientOption
WithAuthentication returns a ClientOption that authenticates each request by setting the x-apikey header to the given API key.
https://www.flightaware.com/aeroapi/portal/documentation#auth
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) CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse ¶
func (c *ClientWithResponses) CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)
CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse Create new alert
Create a new AeroAPI flight alert. When the alert is triggered, a callback mechanism will be used to notify the address set via the /alerts/endpoint endpoint. Each callback will be charged as a query and count towards usage for the AeroAPI key that created the alert. If this key is disabled or removed, the alert will no longer be available. If a target_url is provided, then this specific alert will be delivered to that address regardless of the adress set via the /alerts/endpoint endpoint. Creating more than 50 duplicate alerts with the exact same configuration will result in a 400 error.
Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alerts (the `CreateAlert` operationId).
func (*ClientWithResponses) CreateAlertWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)
CreateAlertWithBodyWithResponse Create new alert
Create a new AeroAPI flight alert. When the alert is triggered, a callback mechanism will be used to notify the address set via the /alerts/endpoint endpoint. Each callback will be charged as a query and count towards usage for the AeroAPI key that created the alert. If this key is disabled or removed, the alert will no longer be available. If a target_url is provided, then this specific alert will be delivered to that address regardless of the adress set via the /alerts/endpoint endpoint. Creating more than 50 duplicate alerts with the exact same configuration will result in a 400 error.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /alerts (the `CreateAlert` operationId).
func (*ClientWithResponses) DeleteAlertWithResponse ¶
func (c *ClientWithResponses) DeleteAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error)
DeleteAlertWithResponse Delete specific alert
Deletes specific alert with given ID.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /alerts/{id} (the `DeleteAlert` operationId).
func (*ClientWithResponses) DeleteAlertsEndpointWithResponse ¶
func (c *ClientWithResponses) DeleteAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAlertsEndpointResponse, error)
DeleteAlertsEndpointWithResponse Remove and disable default account-wide alert callback URL
Remove the default account-wide URL that will be POSTed to for alerts that are not configured with a specific URL. This means that any alerts that are not configured with a specific URL will not be delivered.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /alerts/endpoint (the `DeleteAlertsEndpoint` operationId).
func (*ClientWithResponses) GetAccountUsageWithResponse ¶
func (c *ClientWithResponses) GetAccountUsageWithResponse(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*GetAccountUsageResponse, error)
GetAccountUsageWithResponse Get AeroAPI usage statistics for account
Returns usage statistics for your AeroAPI account. Can be filtered by key and date range. Data per account is updated every 10 minutes.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /account/usage (the `GetAccountUsage` operationId).
func (*ClientWithResponses) GetAircraftBlockedWithResponse ¶
func (c *ClientWithResponses) GetAircraftBlockedWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftBlockedResponse, error)
GetAircraftBlockedWithResponse Check if a given ident is blocked
Given an aircraft identification, returns true if the aircraft is blocked from public tracking per request from the owner/operator, false if it is not blocked. Any IATA-like idents will be translated to ICAO before lookup. When marked as blocked, no associated flight information will be visible in AeroAPI. FlightAware can provide aircraft owner/operators with secure access to their blocked flight data by [contacting FlightAware for help](https://www.flightaware.com/about/contact).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /aircraft/{ident}/blocked (the `GetAircraftBlocked` operationId).
func (*ClientWithResponses) GetAircraftOwnerWithResponse ¶
func (c *ClientWithResponses) GetAircraftOwnerWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftOwnerResponse, error)
GetAircraftOwnerWithResponse Get the owner of an aircraft
Returns information about the owner of an aircraft, given a flight number or aircraft registration. Data returned includes owner's name, location (typically city and state), and website, if any. Codeshares and alternate idents are automatically searched. Specific owner name information is limited to ownership within the US (sourced by the FAA), Australia, and New Zealand. Note that while this information is updated weekly, there may be a lag in upstream data sources reflecting a change in ownership.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /aircraft/{ident}/owner (the `GetAircraftOwner` operationId).
func (*ClientWithResponses) GetAirportDelaysWithResponse ¶
func (c *ClientWithResponses) GetAirportDelaysWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportDelaysResponse, error)
GetAirportDelaysWithResponse Get airport delay information
Returns a list of reason codes for delays at a specific airport. There may be multiple reasons returned if there are multiple types of delays reported at an airport. Note that individual flights may be delayed without there being an airport delay returned by this endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/delays (the `GetAirportDelays` operationId).
func (*ClientWithResponses) GetAirportFlightsArrivalsCancellationsWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivalsCancellationsResponse, error)
GetAirportFlightsArrivalsCancellationsWithResponse Get recently cancelled flights that were scheduled to arrive at an airport
Returns flights that were scheduled to arrive at an airport but have been cancelled, ordered by `scheduled_on` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_on` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/arrivals/cancellations (the `GetAirportFlightsArrivalsCancellations` operationId).
func (*ClientWithResponses) GetAirportFlightsArrivedWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsArrivedWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivedResponse, error)
GetAirportFlightsArrivedWithResponse Get flights that have recently arrived at an airport
Returns flights that have arrived at an airport, orderd by `actual_on` descending. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/arrivals (the `GetAirportFlightsArrived` operationId).
func (*ClientWithResponses) GetAirportFlightsCountWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportFlightsCountResponse, error)
GetAirportFlightsCountWithResponse Get flight counts for an airport
Returns counts of flights for an airport broken down by flight status. The returned categories are subtly different from what is returned from the `/airports/{id}/flights` endpoints. Specifically, this operation does not include completed flights in its counts, and it does not count cancelled/diverted flights. It also does not strictly bound the time for which scheduled flights are counted, so all future flights that FlightAware knows about are included in the counts. See the response schema and documentation for the airport flights endpoints for more information.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/counts (the `GetAirportFlightsCount` operationId).
func (*ClientWithResponses) GetAirportFlightsDepartedWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsDepartedWithResponse(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDepartedResponse, error)
GetAirportFlightsDepartedWithResponse Get flights that have recently departed from an airport
Returns flights that have departed from an airport and not been diverted, ordered by `actual_off` descending. The optional start and end parameters will be compared against `actual_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/departures (the `GetAirportFlightsDeparted` operationId).
func (*ClientWithResponses) GetAirportFlightsDeparturesCancellationsWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, params *GetAirportFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDeparturesCancellationsResponse, error)
GetAirportFlightsDeparturesCancellationsWithResponse Get recently cancelled flights that were scheduled to depart from an airport
Returns flights that were scheduled to depart from an airport but have been cancelled, ordered by `scheduled_off` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/departures/cancellations (the `GetAirportFlightsDeparturesCancellations` operationId).
func (*ClientWithResponses) GetAirportFlightsScheduledArrivalsWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsScheduledArrivalsWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledArrivalsResponse, error)
GetAirportFlightsScheduledArrivalsWithResponse Get future flights arriving at an airport
Returns flights that are expected to arrive at an airport. This can include both undeparted and en route flights. Flights are ordered by `estimated_on` ascending. The optional start and end parameters will be compared against `estimated_on` to limit the flights returned. The start parameter's default value is 48 hours before the current time (this accounts for delayed flights). The end parameter's default value is 24 hours after the current time.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/scheduled_arrivals (the `GetAirportFlightsScheduledArrivals` operationId).
func (*ClientWithResponses) GetAirportFlightsScheduledDeparturesWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsScheduledDeparturesWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledDeparturesResponse, error)
GetAirportFlightsScheduledDeparturesWithResponse Get future flights departing from an airport
Returns flights that are scheduled to depart from an airport or have recently been cancelled, ordered by `estimated_off` (or `scheduled_off` if `estimated_off` is missing) ascending. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 2 hours before the current time. The end parameter's default value is 24 hours after the current time.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/scheduled_departures (the `GetAirportFlightsScheduledDepartures` operationId).
func (*ClientWithResponses) GetAirportFlightsWithResponse ¶
func (c *ClientWithResponses) GetAirportFlightsWithResponse(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsResponse, error)
GetAirportFlightsWithResponse Get all flights for a given airport
Returns all recent and upcoming flights departing from or arriving at the specified airport. Filtering/ordering behavior for the optional start and end parameters for each type (`scheduled_departures`, `scheduled_arrivals`, `departures`, `arrivals`) match the behavior in their corresponding endpoints.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights (the `GetAirportFlights` operationId).
func (*ClientWithResponses) GetAirportWeatherForecastWithResponse ¶
func (c *ClientWithResponses) GetAirportWeatherForecastWithResponse(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherForecastResponse, error)
GetAirportWeatherForecastWithResponse Get weather forecast for given airport
Returns the weather forecast for an airport in the form of a decoded TAF (Terminal Area Forecast). Only a single result is returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/weather/forecast (the `GetAirportWeatherForecast` operationId).
func (*ClientWithResponses) GetAirportWeatherObservationsWithResponse ¶
func (c *ClientWithResponses) GetAirportWeatherObservationsWithResponse(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherObservationsResponse, error)
GetAirportWeatherObservationsWithResponse Get weather conditions for given airport
Returns weather for an airport in the form of a decoded METAR, starting from the latest report and working backwards in time as more data is requested. Data is provided in parsed, human-readable, and raw formats.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/weather/observations (the `GetAirportWeatherObservations` operationId).
func (*ClientWithResponses) GetAirportWithResponse ¶
func (c *ClientWithResponses) GetAirportWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportResponse, error)
GetAirportWithResponse Get static information about an airport
Returns information about an airport given an ICAO or LID airport code such as KLAX, KIAH, O07, etc. Data returned includes airport name, city, state (when known), latitude, longitude, and timezone.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id} (the `GetAirport` operationId).
func (*ClientWithResponses) GetAirportsCanonicalWithResponse ¶
func (c *ClientWithResponses) GetAirportsCanonicalWithResponse(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*GetAirportsCanonicalResponse, error)
GetAirportsCanonicalWithResponse Get the canonical code of an airport
Returns a list of ICAO airport codes corresponding to the given IATA or LID airport code. IATA codes can be identical to some LID codes, so if id_type is specified, only 1 ICAO code will be returned. If no id_type is specified and there are two possible ICAO codes, both will be returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/canonical (the `GetAirportsCanonical` operationId).
func (*ClientWithResponses) GetAirportsNearAirportWithResponse ¶
func (c *ClientWithResponses) GetAirportsNearAirportWithResponse(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*GetAirportsNearAirportResponse, error)
GetAirportsNearAirportWithResponse Get airports near an airport
Returns a list of airports located within a given distance from the specified airport.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/nearby (the `GetAirportsNearAirport` operationId).
func (*ClientWithResponses) GetAlertWithResponse ¶
func (c *ClientWithResponses) GetAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetAlertResponse, error)
GetAlertWithResponse Get specific alert
Returns the configuration data for an alert with the specified ID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alerts/{id} (the `GetAlert` operationId).
func (*ClientWithResponses) GetAlertsEndpointWithResponse ¶
func (c *ClientWithResponses) GetAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsEndpointResponse, error)
GetAlertsEndpointWithResponse Get configured alert callback URL
Returns URL that will be POSTed to for alerts that are delivered via AeroAPI.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alerts/endpoint (the `GetAlertsEndpoint` operationId).
func (*ClientWithResponses) GetAllAirportsWithResponse ¶
func (c *ClientWithResponses) GetAllAirportsWithResponse(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*GetAllAirportsResponse, error)
GetAllAirportsWithResponse Get all airports
Returns the ICAO identifiers of all known airports. For airports that do not have an ICAO identifier, the FAA LID identifier will be used. Links for further information about each airport are included.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports (the `GetAllAirports` operationId).
func (*ClientWithResponses) GetAllAlertsWithResponse ¶
func (c *ClientWithResponses) GetAllAlertsWithResponse(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*GetAllAlertsResponse, error)
GetAllAlertsWithResponse Get all configured alerts
Returns all configured alerts for the FlightAware account (this includes alerts configured through other means by the FlightAware user owning the AeroAPI account like FlightAware's website or mobile apps).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /alerts (the `GetAllAlerts` operationId).
func (*ClientWithResponses) GetAllDisruptionCountsWithResponse ¶
func (c *ClientWithResponses) GetAllDisruptionCountsWithResponse(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetAllDisruptionCountsResponse, error)
GetAllDisruptionCountsWithResponse Get global flight disruption statistics
Returns overall flight cancellation or delay counts in the specified time period for either all airlines or all airports.
#### Cancellation Counts #### A cancelled flight will be counted if their `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) time falls within the specified time period. Cancellation counts are calculated at query time based on airline partner data and only count airline-confirmed cancellations.
#### Delay Counts #### Delays are calculated based on the timezone of the origin airport and per day and are counted based on the specified time period. Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival delays (estimated or actual) of 15 minutes or more for flights that are not cancelled. If a delayed flight is eventually cancelled, it will be removed from the statistics count in the next update cycle.
#### Time Periods #### When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`, and `week` are used as the time period, the current day is defined by the user's website timezone setting and starts at 08:00 and ends at 08:00 the next day. For example:
* `today` will represent a 24-hour span starting at the current day at 08:00.
* `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending at today's 08:00.
* `tomorrow` will represent a 24-hour span starting at 08:00 the next day and ending at 08:00 two days from today.
* `plus2days` will represent a 24-hour span starting at 08:00 two days from today and ending at 08:00 three days from today.
* `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago from today and ending at 08:00 the previous day.
* `week` will represent the current 2 weeks of data indexed to the most recent Sunday's 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the current time defined by the user's website timezone setting:
* `minus2plus12hrs` will start capturing statistics 2 hours ago from the current time until 12 hours after the current time.
* `next36hrs` will span from the current time until 36 hours from the current time.
For delay counts, when using `minus2plus12hrs` and `next36hrs` as the time period, a flight will be counted as delayed within this specified time period if any day encompassed by the time span window, centered around the user's website timezone setting, coincides with the delayed flight's origin airport local timezone day of delay.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /disruption_counts/{entity_type} (the `GetAllDisruptionCounts` operationId).
func (*ClientWithResponses) GetAllOperatorsWithResponse ¶
func (c *ClientWithResponses) GetAllOperatorsWithResponse(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*GetAllOperatorsResponse, error)
GetAllOperatorsWithResponse Get all operators.
Returns list of operator references (ICAO/IATA codes and URLs to access more information).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators (the `GetAllOperators` operationId).
func (*ClientWithResponses) GetDelaysForAllAirportsWithResponse ¶
func (c *ClientWithResponses) GetDelaysForAllAirportsWithResponse(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*GetDelaysForAllAirportsResponse, error)
GetDelaysForAllAirportsWithResponse Get delay information for all airports with delays
Returns a list of airports with delays. There may be multiple reasons returned per airport if there are multiple types of delays reported at an airport. Note that individual flights can be delayed without there being an airport-wide delay returned by this endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/delays (the `GetDelaysForAllAirports` operationId).
func (*ClientWithResponses) GetDisruptionCountsWithResponse ¶
func (c *ClientWithResponses) GetDisruptionCountsWithResponse(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetDisruptionCountsResponse, error)
GetDisruptionCountsWithResponse Get flight disruption statistics for a particular entity
Returns flight cancellation or delay counts in the specified time period for a particular airline or airport.
#### Cancellation Counts #### A cancelled flight will be counted if their `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) time falls within the specified time period. Cancellation counts are calculated at query time based on airline partner data and only count airline-confirmed cancellations.
#### Delay Counts #### Delays are calculated based on the timezone of the origin airport and per day and are counted based on the specified time period. Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival delays (estimated or actual) of 15 minutes or more for flights that are not cancelled. If a delayed flight is eventually cancelled, it will be removed from the statistics count in the next update cycle.
#### Time Periods #### When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`, and `week` are used as the time period, the current day is defined by the user's website timezone setting and starts at 08:00 and ends at 08:00 the next day. For example:
* `today` will represent a 24-hour span starting at the current day at 08:00.
* `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending at today's 08:00.
* `tomorrow` will represent a 24-hour span starting at 08:00 the next day and ending at 08:00 two days from today.
* `plus2days` will represent a 24-hour span starting at 08:00 two days from today and ending at 08:00 three days from today.
* `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago from today and ending at 08:00 the previous day.
* `week` will represent the current 2 weeks of data indexed to the most recent Sunday's 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the current time defined by the user's website timezone setting:
* `minus2plus12hrs` will start capturing statistics 2 hours ago from the current time until 12 hours after the current time.
* `next36hrs` will span from the current time until 36 hours from the current time.
For delay counts, when using `minus2plus12hrs` and `next36hrs` as the time period, a flight will be counted as delayed within this specified time period if any day encompassed by the time span window, centered around the user's website timezone setting, coincides with the delayed flight's origin airport local timezone day of delay.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /disruption_counts/{entity_type}/{id} (the `GetDisruptionCounts` operationId).
func (*ClientWithResponses) GetFlightMapWithResponse ¶
func (c *ClientWithResponses) GetFlightMapWithResponse(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*GetFlightMapResponse, error)
GetFlightMapWithResponse Get an image of a flight's track on a map
Returns a flight's track as a base64-encoded image. Image can contain a variety of additional data layers beyond just the track. Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{id}/map (the `GetFlightMap` operationId).
func (*ClientWithResponses) GetFlightPositionWithForesightWithResponse ¶
func (c *ClientWithResponses) GetFlightPositionWithForesightWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionWithForesightResponse, error)
GetFlightPositionWithForesightWithResponse Get flight's current position, including Foresight data
Returns the latest position for a flight.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /foresight/flights/{id}/position (the `GetFlightPositionWithForesight` operationId).
func (*ClientWithResponses) GetFlightPositionWithResponse ¶
func (c *ClientWithResponses) GetFlightPositionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionResponse, error)
GetFlightPositionWithResponse Get flight's current position
Returns the latest position for a flight within the last 24-48 hours.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{id}/position (the `GetFlightPosition` operationId).
func (*ClientWithResponses) GetFlightRouteWithResponse ¶
func (c *ClientWithResponses) GetFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightRouteResponse, error)
GetFlightRouteWithResponse Get flight's filed route
Returns information about a flight's filed route including coordinates, names, and types of fixes along the route. Not all flight routes can be successfully decoded by this endpoint, particularly if the flight is not entirely within the continental U.S. airspace, since this function only has access to navaids within that area. If data on a waypoint is missing then the type will be listed as "UNKNOWN". Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{id}/route (the `GetFlightRoute` operationId).
func (*ClientWithResponses) GetFlightTrackWithResponse ¶
func (c *ClientWithResponses) GetFlightTrackWithResponse(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*GetFlightTrackResponse, error)
GetFlightTrackWithResponse Get flight's track
Returns the track for a flight as an array of positions. By default only actual airborne positions will be included. Surface positions (aircraft taxi movement at supported airports) can be requested using the query-string parameters. Data from up to 10 days ago can be obtained. If looking for older data, please use the corresponding historical endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{id}/track (the `GetFlightTrack` operationId).
func (*ClientWithResponses) GetFlightTypeWithResponse ¶
func (c *ClientWithResponses) GetFlightTypeWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetFlightTypeResponse, error)
GetFlightTypeWithResponse Get information about an aircraft type
Returns information about an aircraft type, given an ICAO aircraft type designator string. Data returned includes the description, type, manufacturer, engine type, and engine count.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /aircraft/types/{type} (the `GetFlightType` operationId).
func (*ClientWithResponses) GetFlightWithForesightWithResponse ¶
func (c *ClientWithResponses) GetFlightWithForesightWithResponse(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightWithForesightResponse, error)
GetFlightWithForesightWithResponse Get information for a flight, including Foresight data
Returns the flight info status summary for a registration, ident, or fa_flight_id, including all available predicted fields. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /foresight/flights/{ident} (the `GetFlightWithForesight` operationId).
func (*ClientWithResponses) GetFlightWithResponse ¶
func (c *ClientWithResponses) GetFlightWithResponse(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*GetFlightResponse, error)
GetFlightWithResponse Get information for a flight
Returns the flight info status summary for a registration, ident, or fa_flight_id. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id. If a registration or ident is specified, approximately 14 days of recent and scheduled flight information is returned, ordered by `scheduled_out` (or `scheduled_off` if `scheduled_out` is missing) descending. Alternately, specify a start and end parameter to find your flight(s) of interest, including up to 10 days of flight history.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{ident} (the `GetFlight` operationId).
func (*ClientWithResponses) GetFlightsBetweenAirportsWithResponse ¶
func (c *ClientWithResponses) GetFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetFlightsBetweenAirportsResponse, error)
GetFlightsBetweenAirportsWithResponse Get flights with a specific origin and destination
This endpoint is quite similar to the `FindFlight` operator in prior versions of AeroAPI. Results may include both non-stop and one-stop flights. Note that because the returned flights can include multiple legs, the response format differs from most other flight-returning endpoints. If the optional start or end query parameters are not provided start will default to 1 day in the future, while end will default to 7 days in the past relative to the time the query is made.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/flights/to/{dest_id} (the `GetFlightsBetweenAirports` operationId).
func (*ClientWithResponses) GetFlightsByAdvancedSearchWithForesightWithResponse ¶
func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithForesightWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchWithForesightResponse, error)
GetFlightsByAdvancedSearchWithForesightWithResponse Search for flights, responses include Foresight data
Returns currently or recently airborne flights based on geospatial search parameters. If available, flights' predicted OOOI fields will be set.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /foresight/flights/search/advanced (the `GetFlightsByAdvancedSearchWithForesight` operationId).
func (*ClientWithResponses) GetFlightsByAdvancedSearchWithResponse ¶
func (c *ClientWithResponses) GetFlightsByAdvancedSearchWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchResponse, error)
GetFlightsByAdvancedSearchWithResponse Search for flights using advanced syntax
Returns currently or recently airborne flights based on geospatial search parameters.
Query parameters include a 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 of {operator key value} elements and returns an array of flight structures. Each search term must be enclosed in curly braces. Multiple search terms can be combined in an implicit boolean "and" by separating the terms with at least one space. This function only searches flight data representing approximately the last 24 hours. Codeshares and alternate idents are NOT searched when matching against the ident key.
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
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/search/advanced (the `GetFlightsByAdvancedSearch` operationId).
func (*ClientWithResponses) GetFlightsByPositionSearchWithResponse ¶
func (c *ClientWithResponses) GetFlightsByPositionSearchWithResponse(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByPositionSearchResponse, error)
GetFlightsByPositionSearchWithResponse Search for flight positions
Returns flight positions based on geospatial search parameters. This allows you to locate flights that have ever flown within a specific a latitude/longitude box, groundspeed, and altitude. It takes search terms in a single string comprising of {operator key value} elements and returns an array of flight structures. Each search term must be enclosed in curly braces. Multiple search terms can be combined in an implicit boolean "and" by separating the terms with at least one space. This function only searches flight data representing 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. * cid - a three-character cid 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 * 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)
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/search/positions (the `GetFlightsByPositionSearch` operationId).
func (*ClientWithResponses) GetFlightsBySearchWithResponse ¶
func (c *ClientWithResponses) GetFlightsBySearchWithResponse(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsBySearchResponse, error)
GetFlightsBySearchWithResponse Search for flights
Search for airborne flights by matching against various parameters including geospatial data. Uses a simplified query syntax compared to /flights/search/advanced.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/search (the `GetFlightsBySearch` operationId).
func (*ClientWithResponses) GetFlightsCanonicalWithResponse ¶
func (c *ClientWithResponses) GetFlightsCanonicalWithResponse(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*GetFlightsCanonicalResponse, error)
GetFlightsCanonicalWithResponse Get the canonical ident of a flight
When the ident parameter is a code that could map to multiple other codes, this endpoint returns an array of information about all the possible codes. An optional ident type and country code can be provided to refine ambiguous idents to a single result. The ident type should either be designator or registration to describe the ident being passed in. The country code should represent a country the operator of the flight operates within.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/{ident}/canonical (the `GetFlightsCanonical` operationId).
func (*ClientWithResponses) GetFlightsCountBySearchWithResponse ¶
func (c *ClientWithResponses) GetFlightsCountBySearchWithResponse(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsCountBySearchResponse, error)
GetFlightsCountBySearchWithResponse Get count of flights matching search parameters
Full search query documentation is available at the /flights/search endpoint.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /flights/search/count (the `GetFlightsCountBySearch` operationId).
func (*ClientWithResponses) GetHistoryAircraftLastFlightWithResponse ¶
func (c *ClientWithResponses) GetHistoryAircraftLastFlightWithResponse(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*GetHistoryAircraftLastFlightResponse, error)
GetHistoryAircraftLastFlightWithResponse Get aircraft's last known flight
Returns flight info status summary for an aircraft's last known flight given its registration. The search is limited to flights flown since January 1, 2011. On a successful response, the body will contain a flights array with only 1 element. If a user queries a registration with it's last known flight before January 1, 2011, an empty flights array will be returned.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/aircraft/{registration}/last_flight (the `GetHistoryAircraftLastFlight` operationId).
func (*ClientWithResponses) GetHistoryAirportsFlightsArrivalsCancellationsWithResponse ¶
func (c *ClientWithResponses) GetHistoryAirportsFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivalsCancellationsResponse, error)
GetHistoryAirportsFlightsArrivalsCancellationsWithResponse Get historical cancelled flights that were planned to arrive at an airport
Returns all flights that were planned to arrive at a given airport between the requested start and end date but were cancelled. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/airports/{id}/flights/arrivals/cancellations (the `GetHistoryAirportsFlightsArrivalsCancellations` operationId).
func (*ClientWithResponses) GetHistoryAirportsFlightsArrivedWithResponse ¶
func (c *ClientWithResponses) GetHistoryAirportsFlightsArrivedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivedResponse, error)
GetHistoryAirportsFlightsArrivedWithResponse Get historical flights that were planned to arrive at an airport
Returns all flights that were planned to arrive at a given airport between the requested start and end date, including canceled flights. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/airports/{id}/flights/arrivals (the `GetHistoryAirportsFlightsArrived` operationId).
func (*ClientWithResponses) GetHistoryAirportsFlightsDepartedWithResponse ¶
func (c *ClientWithResponses) GetHistoryAirportsFlightsDepartedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDepartedResponse, error)
GetHistoryAirportsFlightsDepartedWithResponse Get historical flights that were planned to depart from an airport
Returns all flights that were planned to depart from a given airport between the requested start and end date, including canceled flights. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/airports/{id}/flights/departures (the `GetHistoryAirportsFlightsDeparted` operationId).
func (*ClientWithResponses) GetHistoryAirportsFlightsDeparturesCancellationsWithResponse ¶
func (c *ClientWithResponses) GetHistoryAirportsFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDeparturesCancellationsResponse, error)
GetHistoryAirportsFlightsDeparturesCancellationsWithResponse Get historical cancelled flights that were planned to depart from an airport
Returns all flights that were planned to depart from a given airport between the requested start and end date but were cancelled. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/airports/{id}/flights/departures/cancellations (the `GetHistoryAirportsFlightsDeparturesCancellations` operationId).
func (*ClientWithResponses) GetHistoryFlightMapWithResponse ¶
func (c *ClientWithResponses) GetHistoryFlightMapWithResponse(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightMapResponse, error)
GetHistoryFlightMapWithResponse Get an image of a historical flight's track on a map
Returns a historical flight's track as a base64-encoded image. Image can contain a variety of additional data layers beyond just the track. Data is available from now back to 2011-01-01T00:00:00Z.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/flights/{id}/map (the `GetHistoryFlightMap` operationId).
func (*ClientWithResponses) GetHistoryFlightRouteWithResponse ¶
func (c *ClientWithResponses) GetHistoryFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHistoryFlightRouteResponse, error)
GetHistoryFlightRouteWithResponse Get historical flight's filed route
Returns information about a historical flight's filed route including coordinates, names, and types of fixes along the route. Not all flight routes can be successfully decoded by this endpoint, particularly if the flight is not entirely within the continental U.S. airspace, since this function only has access to navaids within that area. If data on a waypoint is missing then the type will be listed as "UNKNOWN". Data is available from now back to 2011-01-01T00:00:00Z.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/flights/{id}/route (the `GetHistoryFlightRoute` operationId).
func (*ClientWithResponses) GetHistoryFlightTrackWithResponse ¶
func (c *ClientWithResponses) GetHistoryFlightTrackWithResponse(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightTrackResponse, error)
GetHistoryFlightTrackWithResponse Get historical information for a flight's track
Returns the track for a historical flight as an array of positions. By default only actual airborne positions will be included. Surface positions (aircraft taxi movement at supported airports) can be requested using the query-string parameters. Data is available from now back to 2011-01-01T00:00:00Z.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/flights/{id}/track (the `GetHistoryFlightTrack` operationId).
func (*ClientWithResponses) GetHistoryFlightWithResponse ¶
func (c *ClientWithResponses) GetHistoryFlightWithResponse(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightResponse, error)
GetHistoryFlightWithResponse Get information for a historical flight
Returns historical flight info status summary for a registration, ident, or fa_flight_id. If a fa_flight_id is specified then a maximum of 1 flight is returned, unless the flight has been diverted in which case both the original flight and any diversions will be returned with a duplicate fa_flight_id. If a registraion or ident is specified then `start` and `end` date parameters must be specified. The span between `start` and `end` can be up to 7 days. No more than 40 pages may be requested at once. Data is available from now back to 2011-01-01 00:00:00 UTC.
The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/flights/{ident} (the `GetHistoryFlight` operationId).
func (*ClientWithResponses) GetHistoryFlightsBetweenAirportsWithResponse ¶
func (c *ClientWithResponses) GetHistoryFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightsBetweenAirportsResponse, error)
GetHistoryFlightsBetweenAirportsWithResponse Get historical flights with a specific origin and destination
This endpoint is the historical version of the `/airports/{id}/flights/to/{dest_id}` endpoint with a few differences. Returns all flights that departed from a given airport and arrived at a specified airport between the requested start and end date. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/airports/{id}/flights/to/{dest_id} (the `GetHistoryFlightsBetweenAirports` operationId).
func (*ClientWithResponses) GetHistoryOperatorsFlightsCancellationsWithResponse ¶
func (c *ClientWithResponses) GetHistoryOperatorsFlightsCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsCancellationsResponse, error)
GetHistoryOperatorsFlightsCancellationsWithResponse Get historical cancelled flights for a given operator
Returns all flights from a given operator that were cancelled between the requested start and end date. Every flight returned by this endpoint has `cancelled` set to `true`. The span between `start` and `end` date parameters can be up to 1 day (24 hours). `start` and `end` are required. No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/operators/{id}/flights/cancellations (the `GetHistoryOperatorsFlightsCancellations` operationId).
func (*ClientWithResponses) GetHistoryOperatorsFlightsWithResponse ¶
func (c *ClientWithResponses) GetHistoryOperatorsFlightsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsResponse, error)
GetHistoryOperatorsFlightsWithResponse Get historical flights for a given operator
This endpoint is the historical version of the `/operators/{id}/flights` endpoint with a few differences. Returns all flights from a given operator between the requested start and end date. The span between `start` and `end` date parameters can be up to 1 day (24 hours). No more than 40 pages may be requested at once. Data is available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field `inbound_fa_flight_id` will not be populated by this resource.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /history/operators/{id}/flights (the `GetHistoryOperatorsFlights` operationId).
func (*ClientWithResponses) GetNearbyAirportsWithResponse ¶
func (c *ClientWithResponses) GetNearbyAirportsWithResponse(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*GetNearbyAirportsResponse, error)
GetNearbyAirportsWithResponse Get airports near a location
Returns a list of airports located within a given distance from the given location.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/nearby (the `GetNearbyAirports` operationId).
func (*ClientWithResponses) GetOperatorFlightsArrivedWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsArrivedWithResponse(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsArrivedResponse, error)
GetOperatorFlightsArrivedWithResponse Get arrived flights
Returns flights for this operator that have departed and subsequently arrived, ordered by `actual_on` descending. The optional start and end parameters will be compared against `actual_on` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights/arrivals (the `GetOperatorFlightsArrived` operationId).
func (*ClientWithResponses) GetOperatorFlightsCancellationsWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsCancellationsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCancellationsResponse, error)
GetOperatorFlightsCancellationsWithResponse Get recently cancelled flights for an operator
Returns flights for this operator that have been cancelled, ordered by `scheduled_off` descending. Every flight returned by this endpoint has `cancelled` set to `true`. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. The start parameter's default value is 24 hours before the current time. The end parameter's default value is the current time. `start` cannot be more than 10 days in the past and `end` cannot be more than 2 days in the future.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights/cancellations (the `GetOperatorFlightsCancellations` operationId).
func (*ClientWithResponses) GetOperatorFlightsCountWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCountResponse, error)
GetOperatorFlightsCountWithResponse Get flight counts for operator
Returns counts of both airborne and recently operated flights for operator.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights/counts (the `GetOperatorFlightsCount` operationId).
func (*ClientWithResponses) GetOperatorFlightsEnrouteWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsEnrouteWithResponse(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsEnrouteResponse, error)
GetOperatorFlightsEnrouteWithResponse Get en route flights
Returns flights for this operator that have departed and are currently en route, ordered by `estimated_on` ascending. The optional start and end parameters will be compared against `estimated_on` to limit the flights returned. The start parameter's default value is 48 hours before the current time (this accounts for delayed flights). There is no default end bound.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights/enroute (the `GetOperatorFlightsEnroute` operationId).
func (*ClientWithResponses) GetOperatorFlightsScheduledWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsScheduledWithResponse(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsScheduledResponse, error)
GetOperatorFlightsScheduledWithResponse Get scheduled flights
Returns flights for this operator that are scheduled to depart or have recently been cancelled, ordered by `estimated_off` (or `scheduled_off` if `estimated_off` is missing) ascending. The optional start and end parameters will be compared against `scheduled_off` to limit the flights returned. If start is not specified, flights with a `scheduled_off` or cancellation time no further than two hours into the past will be returned. If end is not specified, there is no guaranteed bound for how far in the future scheduled flights will be returned (it will typically be around 48 hours in the future for commercial flights, though).
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights/scheduled (the `GetOperatorFlightsScheduled` operationId).
func (*ClientWithResponses) GetOperatorFlightsWithResponse ¶
func (c *ClientWithResponses) GetOperatorFlightsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsResponse, error)
GetOperatorFlightsWithResponse Get all of an operator's flights
Returns all recent and upcoming flights for this operator. Behaviour for optional start and end dates for each type returned (`scheduled`, `arrivals`, `enroute`) match the behaviour in their corresponding endpoints.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/flights (the `GetOperatorFlights` operationId).
func (*ClientWithResponses) GetOperatorWithResponse ¶
func (c *ClientWithResponses) GetOperatorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorResponse, error)
GetOperatorWithResponse Get static information for an operator.
Returns information for an operator such as their name, ICAO/IATA codes, headquarter location, etc.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id} (the `GetOperator` operationId).
func (*ClientWithResponses) GetOperatorsCanonicalWithResponse ¶
func (c *ClientWithResponses) GetOperatorsCanonicalWithResponse(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*GetOperatorsCanonicalResponse, error)
GetOperatorsCanonicalWithResponse Get the canonical code of an operator for API usage.
Returns all possible matches for a given operator code (ICAO or IATA). An optional country code can be provided to refine ambiguous IATA codes to a single result. The country code should represent a country the operator operates within.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /operators/{id}/canonical (the `GetOperatorsCanonical` operationId).
func (*ClientWithResponses) GetRoutesBetweenAirportsWithResponse ¶
func (c *ClientWithResponses) GetRoutesBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetRoutesBetweenAirportsResponse, error)
GetRoutesBetweenAirportsWithResponse Get routes between 2 airports
Returns information about assigned IFR routings between two airports.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /airports/{id}/routes/{dest_id} (the `GetRoutesBetweenAirports` operationId).
func (*ClientWithResponses) GetSchedulesByDateWithResponse ¶
func (c *ClientWithResponses) GetSchedulesByDateWithResponse(ctx context.Context, dateStart string, dateEnd string, params *GetSchedulesByDateParams, reqEditors ...RequestEditorFn) (*GetSchedulesByDateResponse, error)
GetSchedulesByDateWithResponse Get scheduled flights
Returns scheduled flights that have been published by airlines. These schedules are available for up to three months in the past as well as one year into the future.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /schedules/{date_start}/{date_end} (the `GetSchedulesByDate` operationId).
func (*ClientWithResponses) PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse ¶
func (c *ClientWithResponses) PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, ident string, body PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)
PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse Submit a Flight Intent
This operation informs FlightAware of an upcoming (or recently departed) flight. This information is used solely by FlightAware for improving the accuracy of flight tracking. This method does not transmit to any ANSP/ATC facility for flight separation or operational services. Access to this endpoint requires special account authorization. The FlightAware account must also be subscribed to FlightAware Global and the specified registration or ident must be on the Global account.
Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
func (*ClientWithResponses) PostFlightsByIdentWithBodyWithResponse ¶
func (c *ClientWithResponses) PostFlightsByIdentWithBodyWithResponse(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)
PostFlightsByIdentWithBodyWithResponse Submit a Flight Intent
This operation informs FlightAware of an upcoming (or recently departed) flight. This information is used solely by FlightAware for improving the accuracy of flight tracking. This method does not transmit to any ANSP/ATC facility for flight separation or operational services. Access to this endpoint requires special account authorization. The FlightAware account must also be subscribed to FlightAware Global and the specified registration or ident must be on the Global account.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
func (*ClientWithResponses) SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse ¶
func (c *ClientWithResponses) SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)
SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse Set alert callback URL
Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI. This sets the account-wide default URL that all alerts will be delivered to unless the specific alert has a different delivery address configured for it.
Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
func (*ClientWithResponses) SetAlertsEndpointWithBodyWithResponse ¶
func (c *ClientWithResponses) SetAlertsEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)
SetAlertsEndpointWithBodyWithResponse Set alert callback URL
Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI. This sets the account-wide default URL that all alerts will be delivered to unless the specific alert has a different delivery address configured for it.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
func (*ClientWithResponses) UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse ¶
func (c *ClientWithResponses) UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)
UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse Modify specific alert
Modifies the configuration for an alert with the specified ID. If a target URL address is provided, then the alert will be delivered to that address even if it is different than the default account-wide address set through the alerts/endpoint endpoint. Updating an alert that was created with a different AeroAPI key is possible, but will not change the AeroAPI key that the alert is associated with for usage.
Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
func (*ClientWithResponses) UpdateAlertWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateAlertWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)
UpdateAlertWithBodyWithResponse Modify specific alert
Modifies the configuration for an alert with the specified ID. If a target URL address is provided, then the alert will be delivered to that address even if it is different than the default account-wide address set through the alerts/endpoint endpoint. Updating an alert that was created with a different AeroAPI key is possible, but will not change the AeroAPI key that the alert is associated with for usage.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAccountUsageWithResponse Get AeroAPI usage statistics for account
//
// Returns usage statistics for your AeroAPI account. Can be filtered
// by key and date range. Data per account is updated every 10 minutes.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /account/usage (the `GetAccountUsage` operationId).
GetAccountUsageWithResponse(ctx context.Context, params *GetAccountUsageParams, reqEditors ...RequestEditorFn) (*GetAccountUsageResponse, error)
// GetFlightTypeWithResponse Get information about an aircraft type
//
// Returns information about an aircraft type, given an ICAO aircraft type designator string.
// Data returned includes the description, type, manufacturer, engine type, and engine
// count.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /aircraft/types/{type} (the `GetFlightType` operationId).
GetFlightTypeWithResponse(ctx context.Context, pType string, reqEditors ...RequestEditorFn) (*GetFlightTypeResponse, error)
// GetAircraftBlockedWithResponse Check if a given ident is blocked
//
// Given an aircraft identification, returns true if the aircraft is blocked from
// public tracking per request from the owner/operator, false if it is not blocked.
// Any IATA-like idents will be translated to ICAO before lookup.
// When marked as blocked, no associated flight information will be visible in
// AeroAPI. FlightAware can provide aircraft owner/operators with secure access to
// their blocked flight data by [contacting FlightAware for help](https://www.flightaware.com/about/contact).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /aircraft/{ident}/blocked (the `GetAircraftBlocked` operationId).
GetAircraftBlockedWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftBlockedResponse, error)
// GetAircraftOwnerWithResponse Get the owner of an aircraft
//
// Returns information about the owner of an aircraft, given a flight number
// or aircraft registration. Data returned includes owner's name, location (typically
// city and state), and website, if any. Codeshares and alternate idents are
// automatically searched. Specific owner name information is limited to ownership
// within the US (sourced by the FAA), Australia, and New Zealand. Note that while
// this information is updated weekly, there may be a lag in upstream data sources
// reflecting a change in ownership.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /aircraft/{ident}/owner (the `GetAircraftOwner` operationId).
GetAircraftOwnerWithResponse(ctx context.Context, ident string, reqEditors ...RequestEditorFn) (*GetAircraftOwnerResponse, error)
// GetAllAirportsWithResponse Get all airports
//
// Returns the ICAO identifiers of all known airports. For airports that
// do not have an ICAO identifier, the FAA LID identifier will be used.
// Links for further information about each airport are included.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports (the `GetAllAirports` operationId).
GetAllAirportsWithResponse(ctx context.Context, params *GetAllAirportsParams, reqEditors ...RequestEditorFn) (*GetAllAirportsResponse, error)
// GetDelaysForAllAirportsWithResponse Get delay information for all airports with delays
//
// Returns a list of airports with delays. There may be multiple reasons
// returned per airport if there are multiple types of delays reported at
// an airport. Note that individual flights can be delayed without there
// being an airport-wide delay returned by this endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/delays (the `GetDelaysForAllAirports` operationId).
GetDelaysForAllAirportsWithResponse(ctx context.Context, params *GetDelaysForAllAirportsParams, reqEditors ...RequestEditorFn) (*GetDelaysForAllAirportsResponse, error)
// GetNearbyAirportsWithResponse Get airports near a location
//
// Returns a list of airports located within a given distance from the
// given location.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/nearby (the `GetNearbyAirports` operationId).
GetNearbyAirportsWithResponse(ctx context.Context, params *GetNearbyAirportsParams, reqEditors ...RequestEditorFn) (*GetNearbyAirportsResponse, error)
// GetAirportWithResponse Get static information about an airport
//
// Returns information about an airport given an ICAO or LID airport code
// such as KLAX, KIAH, O07, etc. Data returned includes airport name,
// city, state (when known), latitude, longitude, and timezone.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id} (the `GetAirport` operationId).
GetAirportWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportResponse, error)
// GetAirportsCanonicalWithResponse Get the canonical code of an airport
//
// Returns a list of ICAO airport codes corresponding to the given IATA or LID airport code.
// IATA codes can be identical to some LID codes, so if id_type is specified, only 1 ICAO
// code will be returned. If no id_type is specified and there are two possible ICAO codes,
// both will be returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/canonical (the `GetAirportsCanonical` operationId).
GetAirportsCanonicalWithResponse(ctx context.Context, id string, params *GetAirportsCanonicalParams, reqEditors ...RequestEditorFn) (*GetAirportsCanonicalResponse, error)
// GetAirportDelaysWithResponse Get airport delay information
//
// Returns a list of reason codes for delays at a specific airport. There
// may be multiple reasons returned if there are multiple types of delays
// reported at an airport. Note that individual flights may be delayed
// without there being an airport delay returned by this endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/delays (the `GetAirportDelays` operationId).
GetAirportDelaysWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportDelaysResponse, error)
// GetAirportFlightsWithResponse Get all flights for a given airport
//
// Returns all recent and upcoming flights departing from or arriving at
// the specified airport. Filtering/ordering behavior for the optional
// start and end parameters for each type (`scheduled_departures`,
// `scheduled_arrivals`, `departures`, `arrivals`) match the behavior in
// their corresponding endpoints.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights (the `GetAirportFlights` operationId).
GetAirportFlightsWithResponse(ctx context.Context, id string, params *GetAirportFlightsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsResponse, error)
// GetAirportFlightsArrivedWithResponse Get flights that have recently arrived at an airport
//
// Returns flights that have arrived at an airport, orderd by
// `actual_on` descending. The start parameter's default value is 24 hours
// before the current time. The end parameter's default value is the
// current time.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/arrivals (the `GetAirportFlightsArrived` operationId).
GetAirportFlightsArrivedWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivedResponse, error)
// GetAirportFlightsArrivalsCancellationsWithResponse Get recently cancelled flights that were scheduled to arrive at an airport
//
// Returns flights that were scheduled to arrive at an airport but have
// been cancelled, ordered by `scheduled_on` descending. Every flight
// returned by this endpoint has `cancelled` set to `true`. The optional
// start and end parameters will be compared against `scheduled_on` to
// limit the flights returned. The start parameter's default value is
// 24 hours before the current time. The end parameter's default value is
// the current time. `start` cannot be more than 10 days in the past and
// `end` cannot be more than 2 days in the future.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/arrivals/cancellations (the `GetAirportFlightsArrivalsCancellations` operationId).
GetAirportFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, params *GetAirportFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsArrivalsCancellationsResponse, error)
// GetAirportFlightsCountWithResponse Get flight counts for an airport
//
// Returns counts of flights for an airport broken down by flight status.
// The returned categories are subtly different from what is returned from
// the `/airports/{id}/flights` endpoints. Specifically, this operation
// does not include completed flights in its counts, and it does not count
// cancelled/diverted flights. It also does not strictly bound the time
// for which scheduled flights are counted, so all future flights that
// FlightAware knows about are included in the counts. See the response
// schema and documentation for the airport flights endpoints for more
// information.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/counts (the `GetAirportFlightsCount` operationId).
GetAirportFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAirportFlightsCountResponse, error)
// GetAirportFlightsDepartedWithResponse Get flights that have recently departed from an airport
//
// Returns flights that have departed from an airport and not been
// diverted, ordered by `actual_off` descending. The optional start and
// end parameters will be compared against `actual_off` to limit the
// flights returned. The start parameter's default value is 24 hours
// before the current time. The end parameter's default value is the
// current time.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/departures (the `GetAirportFlightsDeparted` operationId).
GetAirportFlightsDepartedWithResponse(ctx context.Context, id string, params *GetAirportFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDepartedResponse, error)
// GetAirportFlightsDeparturesCancellationsWithResponse Get recently cancelled flights that were scheduled to depart from an airport
//
// Returns flights that were scheduled to depart from an airport but have
// been cancelled, ordered by `scheduled_off` descending. Every flight
// returned by this endpoint has `cancelled` set to `true`. The optional
// start and end parameters will be compared against `scheduled_off` to
// limit the flights returned. The start parameter's default value is
// 24 hours before the current time. The end parameter's default value is
// the current time. `start` cannot be more than 10 days in the past and
// `end` cannot be more than 2 days in the future.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/departures/cancellations (the `GetAirportFlightsDeparturesCancellations` operationId).
GetAirportFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, params *GetAirportFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsDeparturesCancellationsResponse, error)
// GetAirportFlightsScheduledArrivalsWithResponse Get future flights arriving at an airport
//
// Returns flights that are expected to arrive at an airport. This can
// include both undeparted and en route flights. Flights are ordered by
// `estimated_on` ascending. The optional start and end parameters will
// be compared against `estimated_on` to limit the flights returned. The
// start parameter's default value is 48 hours before the current time
// (this accounts for delayed flights). The end parameter's default value
// is 24 hours after the current time.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/scheduled_arrivals (the `GetAirportFlightsScheduledArrivals` operationId).
GetAirportFlightsScheduledArrivalsWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledArrivalsParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledArrivalsResponse, error)
// GetAirportFlightsScheduledDeparturesWithResponse Get future flights departing from an airport
//
// Returns flights that are scheduled to depart from an airport or have
// recently been cancelled, ordered by `estimated_off` (or `scheduled_off`
// if `estimated_off` is missing) ascending. The optional start and end
// parameters will be compared against `scheduled_off` to limit the
// flights returned. The start parameter's default value is 2 hours before
// the current time. The end parameter's default value is 24 hours after
// the current time.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/scheduled_departures (the `GetAirportFlightsScheduledDepartures` operationId).
GetAirportFlightsScheduledDeparturesWithResponse(ctx context.Context, id string, params *GetAirportFlightsScheduledDeparturesParams, reqEditors ...RequestEditorFn) (*GetAirportFlightsScheduledDeparturesResponse, error)
// GetFlightsBetweenAirportsWithResponse Get flights with a specific origin and destination
//
// This endpoint is quite similar to the `FindFlight` operator in prior
// versions of AeroAPI. Results may include both non-stop and one-stop
// flights. Note that because the returned flights can include multiple
// legs, the response format differs from most other flight-returning
// endpoints. If the optional start or end query parameters are not
// provided start will default to 1 day in the future, while end will
// default to 7 days in the past relative to the time the query is made.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/flights/to/{dest_id} (the `GetFlightsBetweenAirports` operationId).
GetFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetFlightsBetweenAirportsResponse, error)
// GetAirportsNearAirportWithResponse Get airports near an airport
//
// Returns a list of airports located within a given distance from the
// specified airport.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/nearby (the `GetAirportsNearAirport` operationId).
GetAirportsNearAirportWithResponse(ctx context.Context, id string, params *GetAirportsNearAirportParams, reqEditors ...RequestEditorFn) (*GetAirportsNearAirportResponse, error)
// GetRoutesBetweenAirportsWithResponse Get routes between 2 airports
//
// Returns information about assigned IFR routings between two airports.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/routes/{dest_id} (the `GetRoutesBetweenAirports` operationId).
GetRoutesBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetRoutesBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetRoutesBetweenAirportsResponse, error)
// GetAirportWeatherForecastWithResponse Get weather forecast for given airport
//
// Returns the weather forecast for an airport in the form of a decoded TAF
// (Terminal Area Forecast). Only a single result is returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/weather/forecast (the `GetAirportWeatherForecast` operationId).
GetAirportWeatherForecastWithResponse(ctx context.Context, id string, params *GetAirportWeatherForecastParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherForecastResponse, error)
// GetAirportWeatherObservationsWithResponse Get weather conditions for given airport
//
// Returns weather for an airport in the form of a decoded METAR, starting
// from the latest report and working backwards in time as more data is
// requested. Data is provided in parsed, human-readable, and raw
// formats.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /airports/{id}/weather/observations (the `GetAirportWeatherObservations` operationId).
GetAirportWeatherObservationsWithResponse(ctx context.Context, id string, params *GetAirportWeatherObservationsParams, reqEditors ...RequestEditorFn) (*GetAirportWeatherObservationsResponse, error)
// GetAllAlertsWithResponse Get all configured alerts
//
// Returns all configured alerts for the FlightAware account (this
// includes alerts configured through other means by the FlightAware user
// owning the AeroAPI account like FlightAware's website or mobile apps).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alerts (the `GetAllAlerts` operationId).
GetAllAlertsWithResponse(ctx context.Context, params *GetAllAlertsParams, reqEditors ...RequestEditorFn) (*GetAllAlertsResponse, error)
// CreateAlertWithBodyWithResponse Create new alert
//
// Create a new AeroAPI flight alert. When the alert is triggered, a
// callback mechanism will be used to notify the address set via the
// /alerts/endpoint endpoint. Each callback will be charged as a query and
// count towards usage for the AeroAPI key that created the alert. If this key
// is disabled or removed, the alert will no longer be available.
// If a target_url is provided, then this specific alert will be delivered
// to that address regardless of the adress set via the /alerts/endpoint endpoint.
// Creating more than 50 duplicate alerts with the exact same configuration
// will result in a 400 error.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alerts (the `CreateAlert` operationId).
CreateAlertWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)
// CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse Create new alert
//
// Create a new AeroAPI flight alert. When the alert is triggered, a
// callback mechanism will be used to notify the address set via the
// /alerts/endpoint endpoint. Each callback will be charged as a query and
// count towards usage for the AeroAPI key that created the alert. If this key
// is disabled or removed, the alert will no longer be available.
// If a target_url is provided, then this specific alert will be delivered
// to that address regardless of the adress set via the /alerts/endpoint endpoint.
// Creating more than 50 duplicate alerts with the exact same configuration
// will result in a 400 error.
//
// Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /alerts (the `CreateAlert` operationId).
CreateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, body CreateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*CreateAlertResponse, error)
// DeleteAlertsEndpointWithResponse Remove and disable default account-wide alert callback URL
//
// Remove the default account-wide URL that will be POSTed to for alerts that are
// not configured with a specific URL. This means that any alerts that are not configured
// with a specific URL will not be delivered.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /alerts/endpoint (the `DeleteAlertsEndpoint` operationId).
DeleteAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAlertsEndpointResponse, error)
// GetAlertsEndpointWithResponse Get configured alert callback URL
//
// Returns URL that will be POSTed to for alerts that are delivered via AeroAPI.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alerts/endpoint (the `GetAlertsEndpoint` operationId).
GetAlertsEndpointWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAlertsEndpointResponse, error)
// SetAlertsEndpointWithBodyWithResponse Set alert callback URL
//
// Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI.
// This sets the account-wide default URL that all alerts will be delivered to unless
// the specific alert has a different delivery address configured for it.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
SetAlertsEndpointWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)
// SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse Set alert callback URL
//
// Updates the default URL that will be POSTed to for alerts that are delivered via AeroAPI.
// This sets the account-wide default URL that all alerts will be delivered to unless
// the specific alert has a different delivery address configured for it.
//
// Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /alerts/endpoint (the `SetAlertsEndpoint` operationId).
SetAlertsEndpointWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, body SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*SetAlertsEndpointResponse, error)
// DeleteAlertWithResponse Delete specific alert
//
// Deletes specific alert with given ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /alerts/{id} (the `DeleteAlert` operationId).
DeleteAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*DeleteAlertResponse, error)
// GetAlertWithResponse Get specific alert
//
// Returns the configuration data for an alert with the specified ID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /alerts/{id} (the `GetAlert` operationId).
GetAlertWithResponse(ctx context.Context, id int, reqEditors ...RequestEditorFn) (*GetAlertResponse, error)
// UpdateAlertWithBodyWithResponse Modify specific alert
//
// Modifies the configuration for an alert with the specified ID. If a target
// URL address is provided, then the alert will be delivered to that address
// even if it is different than the default account-wide address set through
// the alerts/endpoint endpoint. Updating an alert that was created with a
// different AeroAPI key is possible, but will not change the AeroAPI key that
// the alert is associated with for usage.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
UpdateAlertWithBodyWithResponse(ctx context.Context, id int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)
// UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse Modify specific alert
//
// Modifies the configuration for an alert with the specified ID. If a target
// URL address is provided, then the alert will be delivered to that address
// even if it is different than the default account-wide address set through
// the alerts/endpoint endpoint. Updating an alert that was created with a
// different AeroAPI key is possible, but will not change the AeroAPI key that
// the alert is associated with for usage.
//
// Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PUT /alerts/{id} (the `UpdateAlert` operationId).
UpdateAlertWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, id int, body UpdateAlertApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*UpdateAlertResponse, error)
// GetAllDisruptionCountsWithResponse Get global flight disruption statistics
//
// Returns overall flight cancellation or delay counts in the specified time period
// for either all airlines or all airports.
//
// #### Cancellation Counts ####
// A cancelled flight will be counted if their `scheduled_out`
// (or `scheduled_off` if `scheduled_out` is missing)
// time falls within the specified time period. Cancellation
// counts are calculated at query time based on airline partner
// data and only count airline-confirmed cancellations.
//
// #### Delay Counts ####
// Delays are calculated based on the timezone
// of the origin airport and per day and are counted based on the specified time period.
// Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival
// delays (estimated or actual) of 15 minutes or more for flights that are not cancelled.
// If a delayed flight is eventually cancelled, it will be removed from the statistics
// count in the next update cycle.
//
// #### Time Periods ####
// When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`,
// and `week` are used as the time period, the current day is defined by the user's
// website timezone setting and starts at 08:00 and ends at 08:00 the next day. For
// example:
//
// * `today` will represent a 24-hour span starting at the current day at 08:00.
//
// * `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending
// at today's 08:00.
//
// * `tomorrow` will represent a 24-hour span starting at 08:00 the next
// day and ending at 08:00 two days from today.
//
// * `plus2days` will represent a 24-hour span starting at 08:00 two days from
// today and ending at 08:00 three days from today.
//
// * `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago
// from today and ending at 08:00 the previous day.
//
// * `week` will represent the current 2 weeks of data indexed to the most recent Sunday's
// 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
//
// For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the
// current time defined by the user's website timezone setting:
//
// * `minus2plus12hrs` will start capturing statistics 2 hours ago from the current
// time until 12 hours after the current time.
//
// * `next36hrs` will span from the current time until 36 hours
// from the current time.
//
// For delay counts, when using `minus2plus12hrs` and `next36hrs`
// as the time period, a flight will be counted as delayed within this specified
// time period if any day encompassed by the time span window, centered around
// the user's website timezone setting, coincides with the
// delayed flight's origin airport local timezone day of delay.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /disruption_counts/{entity_type} (the `GetAllDisruptionCounts` operationId).
GetAllDisruptionCountsWithResponse(ctx context.Context, entityType string, params *GetAllDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetAllDisruptionCountsResponse, error)
// GetDisruptionCountsWithResponse Get flight disruption statistics for a particular entity
//
// Returns flight cancellation or delay counts in the specified time period for a particular airline or airport.
//
// #### Cancellation Counts ####
// A cancelled flight will be counted if their `scheduled_out`
// (or `scheduled_off` if `scheduled_out` is missing)
// time falls within the specified time period. Cancellation
// counts are calculated at query time based on airline partner
// data and only count airline-confirmed cancellations.
//
// #### Delay Counts ####
// Delays are calculated based on the timezone
// of the origin airport and per day and are counted based on the specified time period.
// Delay statistics update cycles are re-calculated every 20 minutes and represent gate arrival
// delays (estimated or actual) of 15 minutes or more for flights that are not cancelled.
// If a delayed flight is eventually cancelled, it will be removed from the statistics
// count in the next update cycle.
//
// #### Time Periods ####
// When `yesterday`, `today`, `tomorrow`, `plus2days`, `twoDaysAgo`,
// and `week` are used as the time period, the current day is defined by the user's
// website timezone setting and starts at 08:00 and ends at 08:00 the next day. For
// example:
//
// * `today` will represent a 24-hour span starting at the current day at 08:00.
//
// * `yesterday` will represent a 24-hour span starting at 08:00 the previous day and ending
// at today's 08:00.
//
// * `tomorrow` will represent a 24-hour span starting at 08:00 the next
// day and ending at 08:00 two days from today.
//
// * `plus2days` will represent a 24-hour span starting at 08:00 two days from
// today and ending at 08:00 three days from today.
//
// * `twoDaysAgo` will represent a 24-hour span starting at 08:00 two days ago
// from today and ending at 08:00 the previous day.
//
// * `week` will represent the current 2 weeks of data indexed to the most recent Sunday's
// 08:00 ending at Saturday 08:00, right before 2 weeks from that Sunday.
//
// For `minus2plus12hrs` and `next36hrs`, the time period will be centered at the
// current time defined by the user's website timezone setting:
//
// * `minus2plus12hrs` will start capturing statistics 2 hours ago from the current
// time until 12 hours after the current time.
//
// * `next36hrs` will span from the current time until 36 hours
// from the current time.
//
// For delay counts, when using `minus2plus12hrs` and `next36hrs`
// as the time period, a flight will be counted as delayed within this specified
// time period if any day encompassed by the time span window, centered around
// the user's website timezone setting, coincides with the
// delayed flight's origin airport local timezone day of delay.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /disruption_counts/{entity_type}/{id} (the `GetDisruptionCounts` operationId).
GetDisruptionCountsWithResponse(ctx context.Context, entityType string, id string, params *GetDisruptionCountsParams, reqEditors ...RequestEditorFn) (*GetDisruptionCountsResponse, error)
// GetFlightsBySearchWithResponse Search for flights
//
// Search for airborne flights by matching against various parameters including
// geospatial data. Uses a simplified query syntax compared to
// /flights/search/advanced.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/search (the `GetFlightsBySearch` operationId).
GetFlightsBySearchWithResponse(ctx context.Context, params *GetFlightsBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsBySearchResponse, error)
// GetFlightsByAdvancedSearchWithResponse Search for flights using advanced syntax
//
// Returns currently or recently airborne flights based on geospatial
// search parameters.
//
// Query parameters include a 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 of
// {operator key value} elements and returns an array of flight
// structures. Each search term must be enclosed in curly braces. Multiple
// search terms can be combined in an implicit boolean "and" by separating
// the terms with at least one space. This function only searches flight
// data representing approximately the last 24 hours. Codeshares and
// alternate idents are NOT searched when matching against the ident key.
//
// 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
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/search/advanced (the `GetFlightsByAdvancedSearch` operationId).
GetFlightsByAdvancedSearchWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchResponse, error)
// GetFlightsCountBySearchWithResponse Get count of flights matching search parameters
//
// Full search query documentation is available at the /flights/search
// endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/search/count (the `GetFlightsCountBySearch` operationId).
GetFlightsCountBySearchWithResponse(ctx context.Context, params *GetFlightsCountBySearchParams, reqEditors ...RequestEditorFn) (*GetFlightsCountBySearchResponse, error)
// GetFlightsByPositionSearchWithResponse Search for flight positions
//
// Returns flight positions based on geospatial search parameters. This
// allows you to locate flights that have ever flown within a specific a
// latitude/longitude box, groundspeed, and altitude. It takes search
// terms in a single string comprising of {operator key value} elements
// and returns an array of flight structures. Each search term must be
// enclosed in curly braces. Multiple search terms can be combined in an
// implicit boolean "and" by separating the terms with at least one space.
// This function only searches flight data representing 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.
// * cid - a three-character cid 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
// * 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)
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/search/positions (the `GetFlightsByPositionSearch` operationId).
GetFlightsByPositionSearchWithResponse(ctx context.Context, params *GetFlightsByPositionSearchParams, reqEditors ...RequestEditorFn) (*GetFlightsByPositionSearchResponse, error)
// GetFlightWithResponse Get information for a flight
//
// Returns the flight info status summary for a registration, ident, or
// fa_flight_id. If a fa_flight_id is specified then a maximum of 1
// flight is returned, unless the flight has been diverted in which case
// both the original flight and any diversions will be returned with a
// duplicate fa_flight_id. If a registration or ident is specified,
// approximately 14 days of recent and scheduled flight information is
// returned, ordered by `scheduled_out` (or `scheduled_off` if
// `scheduled_out` is missing) descending. Alternately, specify a start
// and end parameter to find your flight(s) of interest, including up to
// 10 days of flight history.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{ident} (the `GetFlight` operationId).
GetFlightWithResponse(ctx context.Context, ident string, params *GetFlightParams, reqEditors ...RequestEditorFn) (*GetFlightResponse, error)
// GetFlightsCanonicalWithResponse Get the canonical ident of a flight
//
// When the ident parameter is a code that could map to multiple other codes,
// this endpoint returns an array of information about all the possible codes.
// An optional ident type and country code can be provided to refine ambiguous
// idents to a single result. The ident type should either be designator or
// registration to describe the ident being passed in. The country code should
// represent a country the operator of the flight operates within.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{ident}/canonical (the `GetFlightsCanonical` operationId).
GetFlightsCanonicalWithResponse(ctx context.Context, ident string, params *GetFlightsCanonicalParams, reqEditors ...RequestEditorFn) (*GetFlightsCanonicalResponse, error)
// PostFlightsByIdentWithBodyWithResponse Submit a Flight Intent
//
// This operation informs FlightAware of an upcoming (or recently
// departed) flight. This information is used solely by FlightAware for
// improving the accuracy of flight tracking. This method does not
// transmit to any ANSP/ATC facility for flight separation or operational
// services. Access to this endpoint requires special account
// authorization. The FlightAware account must also be subscribed to
// FlightAware Global and the specified registration or ident must be on
// the Global account.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
PostFlightsByIdentWithBodyWithResponse(ctx context.Context, ident string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)
// PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse Submit a Flight Intent
//
// This operation informs FlightAware of an upcoming (or recently
// departed) flight. This information is used solely by FlightAware for
// improving the accuracy of flight tracking. This method does not
// transmit to any ANSP/ATC facility for flight separation or operational
// services. Access to this endpoint requires special account
// authorization. The FlightAware account must also be subscribed to
// FlightAware Global and the specified registration or ident must be on
// the Global account.
//
// Takes a body of the `application/json; charset=UTF-8` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /flights/{ident}/intents (the `PostFlightsByIdent` operationId).
PostFlightsByIdentWithApplicationJSONCharsetUTF8BodyWithResponse(ctx context.Context, ident string, body PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody, reqEditors ...RequestEditorFn) (*PostFlightsByIdentResponse, error)
// GetFlightMapWithResponse Get an image of a flight's track on a map
//
// Returns a flight's track as a base64-encoded image. Image can contain a
// variety of additional data layers beyond just the track. Data from up to 10 days
// ago can be obtained. If looking for older data, please use the corresponding
// historical endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{id}/map (the `GetFlightMap` operationId).
GetFlightMapWithResponse(ctx context.Context, id string, params *GetFlightMapParams, reqEditors ...RequestEditorFn) (*GetFlightMapResponse, error)
// GetFlightPositionWithResponse Get flight's current position
//
// Returns the latest position for a flight within the last 24-48 hours.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{id}/position (the `GetFlightPosition` operationId).
GetFlightPositionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionResponse, error)
// GetFlightRouteWithResponse Get flight's filed route
//
// Returns information about a flight's filed route including coordinates,
// names, and types of fixes along the route. Not all flight routes can
// be successfully decoded by this endpoint, particularly if the flight is
// not entirely within the continental U.S. airspace, since this function
// only has access to navaids within that area. If data on a waypoint is
// missing then the type will be listed as "UNKNOWN". Data from up to 10 days
// ago can be obtained. If looking for older data, please use the corresponding
// historical endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{id}/route (the `GetFlightRoute` operationId).
GetFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightRouteResponse, error)
// GetFlightTrackWithResponse Get flight's track
//
// Returns the track for a flight as an array of positions. By default
// only actual airborne positions will be included. Surface
// positions (aircraft taxi movement at supported airports)
// can be requested using the query-string parameters.
// Data from up to 10 days ago can be obtained.
// If looking for older data, please use the corresponding
// historical endpoint.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /flights/{id}/track (the `GetFlightTrack` operationId).
GetFlightTrackWithResponse(ctx context.Context, id string, params *GetFlightTrackParams, reqEditors ...RequestEditorFn) (*GetFlightTrackResponse, error)
// GetFlightsByAdvancedSearchWithForesightWithResponse Search for flights, responses include Foresight data
//
// Returns currently or recently airborne flights based on geospatial
// search parameters. If available, flights' predicted OOOI fields will be
// set.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /foresight/flights/search/advanced (the `GetFlightsByAdvancedSearchWithForesight` operationId).
GetFlightsByAdvancedSearchWithForesightWithResponse(ctx context.Context, params *GetFlightsByAdvancedSearchWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightsByAdvancedSearchWithForesightResponse, error)
// GetFlightWithForesightWithResponse Get information for a flight, including Foresight data
//
// Returns the flight info status summary for a registration, ident, or
// fa_flight_id, including all available predicted fields. If a
// fa_flight_id is specified then a maximum of 1 flight is returned,
// unless the flight has been diverted in which case both the original
// flight and any diversions will be returned with a duplicate fa_flight_id.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /foresight/flights/{ident} (the `GetFlightWithForesight` operationId).
GetFlightWithForesightWithResponse(ctx context.Context, ident string, params *GetFlightWithForesightParams, reqEditors ...RequestEditorFn) (*GetFlightWithForesightResponse, error)
// GetFlightPositionWithForesightWithResponse Get flight's current position, including Foresight data
//
// Returns the latest position for a flight.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /foresight/flights/{id}/position (the `GetFlightPositionWithForesight` operationId).
GetFlightPositionWithForesightWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetFlightPositionWithForesightResponse, error)
// GetHistoryAircraftLastFlightWithResponse Get aircraft's last known flight
//
// Returns flight info status summary for an aircraft's last known flight
// given its registration. The search is limited to flights flown since
// January 1, 2011. On a successful response, the body will contain a
// flights array with only 1 element. If a user queries a registration with
// it's last known flight before January 1, 2011, an empty flights array will
// be returned.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/aircraft/{registration}/last_flight (the `GetHistoryAircraftLastFlight` operationId).
GetHistoryAircraftLastFlightWithResponse(ctx context.Context, registration string, reqEditors ...RequestEditorFn) (*GetHistoryAircraftLastFlightResponse, error)
// GetHistoryAirportsFlightsArrivedWithResponse Get historical flights that were planned to arrive at an airport
//
// Returns all flights that were planned to arrive at a given airport
// between the requested start and end date, including canceled flights.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be
// populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/airports/{id}/flights/arrivals (the `GetHistoryAirportsFlightsArrived` operationId).
GetHistoryAirportsFlightsArrivedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivedResponse, error)
// GetHistoryAirportsFlightsArrivalsCancellationsWithResponse Get historical cancelled flights that were planned to arrive at an airport
//
// Returns all flights that were planned to arrive at a given airport
// between the requested start and end date but were cancelled. Every
// flight returned by this endpoint has `cancelled` set to `true`.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). `start` and `end` are required. No more than 40 pages may
// be requested at once. Data is available between 2011-01-01 00:00:00 UTC
// and up to now. The field `inbound_fa_flight_id` will not be populated
// by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/airports/{id}/flights/arrivals/cancellations (the `GetHistoryAirportsFlightsArrivalsCancellations` operationId).
GetHistoryAirportsFlightsArrivalsCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsArrivalsCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsArrivalsCancellationsResponse, error)
// GetHistoryAirportsFlightsDepartedWithResponse Get historical flights that were planned to depart from an airport
//
// Returns all flights that were planned to depart from a given airport
// between the requested start and end date, including canceled flights.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field `inbound_fa_flight_id` will not be
// populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/airports/{id}/flights/departures (the `GetHistoryAirportsFlightsDeparted` operationId).
GetHistoryAirportsFlightsDepartedWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDepartedParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDepartedResponse, error)
// GetHistoryAirportsFlightsDeparturesCancellationsWithResponse Get historical cancelled flights that were planned to depart from an airport
//
// Returns all flights that were planned to depart from a given airport
// between the requested start and end date but were cancelled. Every
// flight returned by this endpoint has `cancelled` set to `true`.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). `start` and `end` are required. No more than 40 pages may
// be requested at once. Data is available between 2011-01-01 00:00:00 UTC
// and up to now. The field `inbound_fa_flight_id` will not be populated
// by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/airports/{id}/flights/departures/cancellations (the `GetHistoryAirportsFlightsDeparturesCancellations` operationId).
GetHistoryAirportsFlightsDeparturesCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryAirportsFlightsDeparturesCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryAirportsFlightsDeparturesCancellationsResponse, error)
// GetHistoryFlightsBetweenAirportsWithResponse Get historical flights with a specific origin and destination
//
// This endpoint is the historical version of the `/airports/{id}/flights/to/{dest_id}`
// endpoint with a few differences. Returns all flights that departed from a given airport and
// arrived at a specified airport between the requested start and end date.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/airports/{id}/flights/to/{dest_id} (the `GetHistoryFlightsBetweenAirports` operationId).
GetHistoryFlightsBetweenAirportsWithResponse(ctx context.Context, id string, destId string, params *GetHistoryFlightsBetweenAirportsParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightsBetweenAirportsResponse, error)
// GetHistoryFlightWithResponse Get information for a historical flight
//
// Returns historical flight info status summary for a registration, ident,
// or fa_flight_id. If a fa_flight_id is specified then a maximum of 1
// flight is returned, unless the flight has been diverted in which case
// both the original flight and any diversions will be returned with a
// duplicate fa_flight_id. If a registraion or ident is specified then
// `start` and `end` date parameters must be specified. The span between `start`
// and `end` can be up to 7 days. No more than 40 pages may be requested
// at once. Data is available from now back to 2011-01-01 00:00:00 UTC.
//
// The field `inbound_fa_flight_id` will not be populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/flights/{ident} (the `GetHistoryFlight` operationId).
GetHistoryFlightWithResponse(ctx context.Context, ident string, params *GetHistoryFlightParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightResponse, error)
// GetHistoryFlightMapWithResponse Get an image of a historical flight's track on a map
//
// Returns a historical flight's track as a base64-encoded image. Image can contain a
// variety of additional data layers beyond just the track. Data is available from now back to
// 2011-01-01T00:00:00Z.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/flights/{id}/map (the `GetHistoryFlightMap` operationId).
GetHistoryFlightMapWithResponse(ctx context.Context, id string, params *GetHistoryFlightMapParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightMapResponse, error)
// GetHistoryFlightRouteWithResponse Get historical flight's filed route
//
// Returns information about a historical flight's filed route including
// coordinates, names, and types of fixes along the route. Not all flight
// routes can be successfully decoded by this endpoint, particularly if the
// flight is not entirely within the continental U.S. airspace, since this function
// only has access to navaids within that area. If data on a waypoint is
// missing then the type will be listed as "UNKNOWN". Data is available from now back to
// 2011-01-01T00:00:00Z.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/flights/{id}/route (the `GetHistoryFlightRoute` operationId).
GetHistoryFlightRouteWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHistoryFlightRouteResponse, error)
// GetHistoryFlightTrackWithResponse Get historical information for a flight's track
//
// Returns the track for a historical flight as an array of positions.
// By default only actual airborne positions will be included. Surface
// positions (aircraft taxi movement at supported airports) can be
// requested using the query-string parameters.
// Data is available from now back to 2011-01-01T00:00:00Z.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/flights/{id}/track (the `GetHistoryFlightTrack` operationId).
GetHistoryFlightTrackWithResponse(ctx context.Context, id string, params *GetHistoryFlightTrackParams, reqEditors ...RequestEditorFn) (*GetHistoryFlightTrackResponse, error)
// GetHistoryOperatorsFlightsWithResponse Get historical flights for a given operator
//
// This endpoint is the historical version of the `/operators/{id}/flights`
// endpoint with a few differences. Returns all flights from a given operator
// between the requested start and end date.
// The span between `start` and `end` date parameters can be up to 1 day
// (24 hours). No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. Results only include non-stop flights. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/operators/{id}/flights (the `GetHistoryOperatorsFlights` operationId).
GetHistoryOperatorsFlightsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsResponse, error)
// GetHistoryOperatorsFlightsCancellationsWithResponse Get historical cancelled flights for a given operator
//
// Returns all flights from a given operator that were cancelled between
// the requested start and end date. Every flight returned by this
// endpoint has `cancelled` set to `true`. The span between `start` and
// `end` date parameters can be up to 1 day (24 hours). `start` and `end`
// are required. No more than 40 pages may be requested at once. Data is
// available between 2011-01-01 00:00:00 UTC and up to now. The field
// `inbound_fa_flight_id` will not be populated by this resource.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /history/operators/{id}/flights/cancellations (the `GetHistoryOperatorsFlightsCancellations` operationId).
GetHistoryOperatorsFlightsCancellationsWithResponse(ctx context.Context, id string, params *GetHistoryOperatorsFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*GetHistoryOperatorsFlightsCancellationsResponse, error)
// GetAllOperatorsWithResponse Get all operators.
//
// Returns list of operator references (ICAO/IATA codes and URLs to access
// more information).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators (the `GetAllOperators` operationId).
GetAllOperatorsWithResponse(ctx context.Context, params *GetAllOperatorsParams, reqEditors ...RequestEditorFn) (*GetAllOperatorsResponse, error)
// GetOperatorWithResponse Get static information for an operator.
//
// Returns information for an operator such as their name, ICAO/IATA
// codes, headquarter location, etc.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id} (the `GetOperator` operationId).
GetOperatorWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorResponse, error)
// GetOperatorsCanonicalWithResponse Get the canonical code of an operator for API usage.
//
// Returns all possible matches for a given operator code (ICAO or IATA).
// An optional country code can be provided to refine ambiguous IATA codes
// to a single result. The country code should represent a country the
// operator operates within.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/canonical (the `GetOperatorsCanonical` operationId).
GetOperatorsCanonicalWithResponse(ctx context.Context, id string, params *GetOperatorsCanonicalParams, reqEditors ...RequestEditorFn) (*GetOperatorsCanonicalResponse, error)
// GetOperatorFlightsWithResponse Get all of an operator's flights
//
// Returns all recent and upcoming flights for this operator. Behaviour for
// optional start and end dates for each type returned (`scheduled`, `arrivals`,
// `enroute`) match the behaviour in their corresponding endpoints.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights (the `GetOperatorFlights` operationId).
GetOperatorFlightsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsResponse, error)
// GetOperatorFlightsArrivedWithResponse Get arrived flights
//
// Returns flights for this operator that have departed and subsequently
// arrived, ordered by `actual_on` descending. The optional start and end
// parameters will be compared against `actual_on` to limit the flights
// returned. The start parameter's default value is 24 hours before the
// current time. The end parameter's default value is the current time.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights/arrivals (the `GetOperatorFlightsArrived` operationId).
GetOperatorFlightsArrivedWithResponse(ctx context.Context, id string, params *GetOperatorFlightsArrivedParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsArrivedResponse, error)
// GetOperatorFlightsCancellationsWithResponse Get recently cancelled flights for an operator
//
// Returns flights for this operator that have been cancelled, ordered by
// `scheduled_off` descending. Every flight returned by this endpoint has
// `cancelled` set to `true`. The optional start and end parameters will
// be compared against `scheduled_off` to limit the flights returned. The
// start parameter's default value is 24 hours before the current time.
// The end parameter's default value is the current time. `start` cannot
// be more than 10 days in the past and `end` cannot be more than 2 days
// in the future.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights/cancellations (the `GetOperatorFlightsCancellations` operationId).
GetOperatorFlightsCancellationsWithResponse(ctx context.Context, id string, params *GetOperatorFlightsCancellationsParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCancellationsResponse, error)
// GetOperatorFlightsCountWithResponse Get flight counts for operator
//
// Returns counts of both airborne and recently operated flights for
// operator.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights/counts (the `GetOperatorFlightsCount` operationId).
GetOperatorFlightsCountWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetOperatorFlightsCountResponse, error)
// GetOperatorFlightsEnrouteWithResponse Get en route flights
//
// Returns flights for this operator that have departed and are currently
// en route, ordered by `estimated_on` ascending. The optional start and
// end parameters will be compared against `estimated_on` to limit the
// flights returned. The start parameter's default value is 48 hours
// before the current time (this accounts for delayed flights). There is
// no default end bound.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights/enroute (the `GetOperatorFlightsEnroute` operationId).
GetOperatorFlightsEnrouteWithResponse(ctx context.Context, id string, params *GetOperatorFlightsEnrouteParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsEnrouteResponse, error)
// GetOperatorFlightsScheduledWithResponse Get scheduled flights
//
// Returns flights for this operator that are scheduled to depart or have
// recently been cancelled, ordered by `estimated_off` (or `scheduled_off`
// if `estimated_off` is missing) ascending. The optional start and end
// parameters will be compared against `scheduled_off` to limit the
// flights returned. If start is not specified, flights with a
// `scheduled_off` or cancellation time no further than two hours into the
// past will be returned. If end is not specified, there is no guaranteed
// bound for how far in the future scheduled flights will be returned (it
// will typically be around 48 hours in the future for commercial flights,
// though).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /operators/{id}/flights/scheduled (the `GetOperatorFlightsScheduled` operationId).
GetOperatorFlightsScheduledWithResponse(ctx context.Context, id string, params *GetOperatorFlightsScheduledParams, reqEditors ...RequestEditorFn) (*GetOperatorFlightsScheduledResponse, error)
// GetSchedulesByDateWithResponse Get scheduled flights
//
// Returns scheduled flights that have been published by airlines. These
// schedules are available for up to three months in the past as well as
// one year into the future.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /schedules/{date_start}/{date_end} (the `GetSchedulesByDate` operationId).
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 CreateAlertApplicationJSONCharsetUTF8Body ¶
type CreateAlertApplicationJSONCharsetUTF8Body 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"`
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"`
// 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.
//
//
// Example: [5,10,15]
ImpendingArrival *[]int `json:"impending_arrival,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingDeparture *[]int `json:"impending_departure,omitempty"`
// 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"`
}
CreateAlertApplicationJSONCharsetUTF8Body defines parameters for CreateAlert.
type CreateAlertApplicationJSONCharsetUTF8RequestBody ¶
type CreateAlertApplicationJSONCharsetUTF8RequestBody CreateAlertApplicationJSONCharsetUTF8Body
CreateAlertApplicationJSONCharsetUTF8RequestBody defines body for CreateAlert for application/json; charset=UTF-8 ContentType.
type CreateAlertResponse ¶
type CreateAlertResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateAlertResponse201Headers
}
func ParseCreateAlertResponse ¶
func ParseCreateAlertResponse(rsp *http.Response) (*CreateAlertResponse, error)
ParseCreateAlertResponse parses an HTTP response from a CreateAlertWithResponse call
func (CreateAlertResponse) ContentType ¶
func (r CreateAlertResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateAlertResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r CreateAlertResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (CreateAlertResponse) GetBody ¶
func (r CreateAlertResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 CreateAlertResponse201Headers ¶
type CreateAlertResponse201Headers struct {
Location *string
}
CreateAlertResponse201Headers the declared response headers of an HTTP 201 response for CreateAlert
type DeleteAlertResponse ¶
type DeleteAlertResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseDeleteAlertResponse ¶
func ParseDeleteAlertResponse(rsp *http.Response) (*DeleteAlertResponse, error)
ParseDeleteAlertResponse parses an HTTP response from a DeleteAlertWithResponse call
func (DeleteAlertResponse) ContentType ¶
func (r DeleteAlertResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAlertResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r DeleteAlertResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (DeleteAlertResponse) GetBody ¶
func (r DeleteAlertResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseDeleteAlertsEndpointResponse ¶
func ParseDeleteAlertsEndpointResponse(rsp *http.Response) (*DeleteAlertsEndpointResponse, error)
ParseDeleteAlertsEndpointResponse parses an HTTP response from a DeleteAlertsEndpointWithResponse call
func (DeleteAlertsEndpointResponse) ContentType ¶
func (r DeleteAlertsEndpointResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r DeleteAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (DeleteAlertsEndpointResponse) GetBody ¶
func (r DeleteAlertsEndpointResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteAlertsEndpointResponse) Status ¶
func (r DeleteAlertsEndpointResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAlertsEndpointResponse) StatusCode ¶
func (r DeleteAlertsEndpointResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeliverAlertApplicationJSONCharsetUTF8Body ¶
type DeliverAlertApplicationJSONCharsetUTF8Body struct {
AlertId int `json:"alert_id"`
EventCode DeliverAlertApplicationJSONCharsetUTF8BodyEventCode `json:"event_code"`
Flight struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in,omitempty"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off,omitempty"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on,omitempty"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out,omitempty"`
// 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,omitempty"`
// AtcIdent Alternate ident for flight, possibly assigned by ATC.
AtcIdent *string `json:"atc_ident,omitempty"`
// BaggageClaim Baggage claim location at the destination airport.
BaggageClaim *string `json:"baggage_claim,omitempty"`
// Blocked Flag indicating whether this flight is blocked from public viewing.
Blocked *bool `json:"blocked,omitempty"`
// Cancelled Flag indicating whether this flight was cancelled.
Cancelled *bool `json:"cancelled,omitempty"`
// Destination The ICAO, IATA, or LID identifier for the destination airport
Destination *string `json:"destination,omitempty"`
// DestinationIata The IATA identifier for the destination airport
DestinationIata *string `json:"destination_iata,omitempty"`
// DestinationIcao The ICAO identifier for the destination airport
DestinationIcao *string `json:"destination_icao,omitempty"`
// DestinationLid The LID identifier for the destination airport
DestinationLid *string `json:"destination_lid,omitempty"`
// Diverted Flag indicating whether this flight was diverted.
Diverted *bool `json:"diverted,omitempty"`
// Error Will contain error information in the event that
// a problem is encountered assembling the flight details
Error *string `json:"error,omitempty"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in,omitempty"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off,omitempty"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on,omitempty"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOut *time.Time `json:"estimated_out,omitempty"`
// 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"`
// FiledAirspeedKts Filed IFR airspeed (knots).
FiledAirspeedKts *int `json:"filed_airspeed_kts,omitempty"`
// FiledAltitude Filed IFR altitude (100s of feet).
FiledAltitude *int `json:"filed_altitude,omitempty"`
// FiledEte Runway-to-runway filed duration (seconds).
FiledEte *int `json:"filed_ete,omitempty"`
// GateDestination Arrival gate at the destination airport.
GateDestination *string `json:"gate_destination,omitempty"`
// GateOrigin Departure gate at the origin airport.
GateOrigin *string `json:"gate_origin,omitempty"`
// Ident Either the operator code (ICAO or IATA) followed by the flight number for the flight
// (for commercial flights) or the aircraft's tail number (for general
// aviation).
Ident *string `json:"ident,omitempty"`
// IdentIata The IATA operator code followed by the flight number for the flight.
IdentIata *string `json:"ident_iata,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight.
IdentIcao *string `json:"ident_icao,omitempty"`
// Origin The ICAO, IATA, or LID identifier for the origin airport
Origin *string `json:"origin,omitempty"`
// OriginIata The IATA identifier for the origin airport
OriginIata *string `json:"origin_iata,omitempty"`
// OriginIcao The ICAO identifier for the origin airport
OriginIcao *string `json:"origin_icao,omitempty"`
// OriginLid The LID identifier for the origin airport
OriginLid *string `json:"origin_lid,omitempty"`
// PositionOnly Flag indicating that this flight does not have a flight plan, schedule, or other indication of intent available.
PositionOnly *bool `json:"position_only,omitempty"`
// Registration Aircraft registration (tail number) of the aircraft, when known.
Registration *string `json:"registration,omitempty"`
// Route The textual description of the flight's route
Route *string `json:"route,omitempty"`
// RouteDistance Planned flight distance (statute miles) based on the filed route. May
// vary from actual flown distance.
RouteDistance *int `json:"route_distance,omitempty"`
// ScheduledIn Scheduled gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in,omitempty"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off,omitempty"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on,omitempty"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOut *time.Time `json:"scheduled_out,omitempty"`
// TerminalDestination Arrival terminal at the destination airport.
TerminalDestination *string `json:"terminal_destination,omitempty"`
// TerminalOrigin Departure terminal at the origin airport.
TerminalOrigin *string `json:"terminal_origin,omitempty"`
} `json:"flight"`
LongDescription string `json:"long_description"`
ShortDescription string `json:"short_description"`
Summary string `json:"summary"`
}
DeliverAlertApplicationJSONCharsetUTF8Body defines parameters for DeliverAlert.
type DeliverAlertApplicationJSONCharsetUTF8BodyEventCode ¶
type DeliverAlertApplicationJSONCharsetUTF8BodyEventCode string
DeliverAlertApplicationJSONCharsetUTF8BodyEventCode defines parameters for DeliverAlert.
const ( Arrival DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "arrival" Cancelled DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "cancelled" Change DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "change" Departure DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "departure" Diverted DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "diverted" Filed DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "filed" FruArrival DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "fru_arrival" HoldEntry DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "hold_entry" HoldExit DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "hold_exit" ImpendingDeparture DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "impending_departure" In DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "in" MinutesOut DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "minutes_out" NonairportArrival DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "nonairport_arrival" NonairportDeparture DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "nonairport_departure" NonairportFiled DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "nonairport_filed" Off DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "off" On DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "on" Out DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "out" PositionOnlyArrival DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "position_only_arrival" PositionOnlyDeparture DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "position_only_departure" PowerOn DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "power_on" Uncancelled DeliverAlertApplicationJSONCharsetUTF8BodyEventCode = "uncancelled" )
Defines values for DeliverAlertApplicationJSONCharsetUTF8BodyEventCode.
func (DeliverAlertApplicationJSONCharsetUTF8BodyEventCode) Valid ¶
func (e DeliverAlertApplicationJSONCharsetUTF8BodyEventCode) Valid() bool
Valid indicates whether the value is a known member of the DeliverAlertApplicationJSONCharsetUTF8BodyEventCode enum.
type DeliverAlertApplicationJSONCharsetUTF8RequestBody ¶
type DeliverAlertApplicationJSONCharsetUTF8RequestBody DeliverAlertApplicationJSONCharsetUTF8Body
DeliverAlertApplicationJSONCharsetUTF8RequestBody defines body for DeliverAlert for application/json; charset=UTF-8 ContentType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAccountUsageResponse ¶
func ParseGetAccountUsageResponse(rsp *http.Response) (*GetAccountUsageResponse, error)
ParseGetAccountUsageResponse parses an HTTP response from a GetAccountUsageWithResponse call
func (GetAccountUsageResponse) ContentType ¶
func (r GetAccountUsageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAccountUsageResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAccountUsageResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAccountUsageResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAccountUsageResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAccountUsageResponse) GetBody ¶
func (r GetAccountUsageResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// Blocked Set to true if the aircraft or ident is blocked from tracking.
Blocked bool `json:"blocked"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAircraftBlockedResponse ¶
func ParseGetAircraftBlockedResponse(rsp *http.Response) (*GetAircraftBlockedResponse, error)
ParseGetAircraftBlockedResponse parses an HTTP response from a GetAircraftBlockedWithResponse call
func (GetAircraftBlockedResponse) ContentType ¶
func (r GetAircraftBlockedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8200() *struct { // Blocked Set to true if the aircraft or ident is blocked from tracking. Blocked bool `json:"blocked"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAircraftBlockedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAircraftBlockedResponse) GetBody ¶
func (r GetAircraftBlockedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAircraftBlockedResponse) Status ¶
func (r GetAircraftBlockedResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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,omitempty"`
// Location2 Street address of the registered owner
Location2 *string `json:"location2,omitempty"`
// Name Name of the registered owner of the aircraft
Name *string `json:"name,omitempty"`
// Website Website for the owner if available
Website *string `json:"website,omitempty"`
} `json:"owner,omitempty"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAircraftOwnerResponse ¶
func ParseGetAircraftOwnerResponse(rsp *http.Response) (*GetAircraftOwnerResponse, error)
ParseGetAircraftOwnerResponse parses an HTTP response from a GetAircraftOwnerWithResponse call
func (GetAircraftOwnerResponse) ContentType ¶
func (r GetAircraftOwnerResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8200() *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,omitempty"` // Location2 Street address of the registered owner Location2 *string `json:"location2,omitempty"` // Name Name of the registered owner of the aircraft Name *string `json:"name,omitempty"` // Website Website for the owner if available Website *string `json:"website,omitempty"` } `json:"owner,omitempty"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAircraftOwnerResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAircraftOwnerResponse) GetBody ¶
func (r GetAircraftOwnerResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType ¶
type GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType string
GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType defines parameters for GetAirport.
const ( GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeAirport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Airport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeBalloonport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Balloonport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeGliderport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Gliderport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeHeliport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Heliport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeLessThannil GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "<nil>" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeSeaplaneBase GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Seaplane Base" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeStolport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Stolport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesTypeUltralight GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType = "Ultralight" )
Defines values for GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType.
func (GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType) Valid ¶
func (e GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType) Valid() bool
Valid indicates whether the value is a known member of the GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType enum.
type GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType ¶
type GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType string
GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType defines parameters for GetAirport.
const ( GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeAirport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Airport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeBalloonport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Balloonport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeGliderport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Gliderport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeHeliport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Heliport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeLessThannil GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "<nil>" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeSeaplaneBase GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Seaplane Base" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeStolport GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Stolport" GetAirport200ApplicationJSONCharsetUTF8ResponseBodyTypeUltralight GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType = "Ultralight" )
Defines values for GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType.
func (GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType) Valid ¶
func (e GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType) Valid() bool
Valid indicates whether the value is a known member of the GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType enum.
type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor ¶
type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor string
GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor defines parameters for GetAirportDelays.
const ( GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColorGreen GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor = "green" GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColorRed GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor = "red" GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColorYellow GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor = "yellow" )
Defines values for GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor.
func (GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor) Valid ¶
func (e GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor) Valid() bool
Valid indicates whether the value is a known member of the GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor enum.
type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor ¶
type GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor string
GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor defines parameters for GetAirportDelays.
const ( GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColorGreen GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor = "green" GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColorRed GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor = "red" GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColorYellow GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor = "yellow" )
Defines values for GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor.
type GetAirportDelaysResponse ¶
type GetAirportDelaysResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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 GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor `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 GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportDelaysResponse ¶
func ParseGetAirportDelaysResponse(rsp *http.Response) (*GetAirportDelaysResponse, error)
ParseGetAirportDelaysResponse parses an HTTP response from a GetAirportDelaysWithResponse call
func (GetAirportDelaysResponse) ContentType ¶
func (r GetAirportDelaysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8200() *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 GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyColor `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 GetAirportDelays200ApplicationJSONCharsetUTF8ResponseBodyReasonsColor `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportDelaysResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportDelaysResponse) GetBody ¶
func (r GetAirportDelaysResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetAirportFlights.
const ( GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType ¶
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType string
GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType defines parameters for GetAirportFlights.
const ( GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeAirline GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "Airline" GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeGeneralAviation GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "General_Aviation" )
Defines values for GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType.
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType ¶
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType string
GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType defines parameters for GetAirportFlights.
const ( GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsTypeAirline GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType = "Airline" GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsTypeGeneralAviation GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType = "General_Aviation" )
Defines values for GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType.
func (GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType) Valid ¶
func (e GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType enum.
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType ¶
type GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType string
GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType defines parameters for GetAirportFlights.
const ( GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesTypeAirline GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType = "Airline" GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesTypeGeneralAviation GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType = "General_Aviation" )
Defines values for GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType.
func (GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType) Valid ¶
func (e GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType enum.
type GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetAirportFlightsArrivalsCancellations.
const ( GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
func (GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid ¶
func (e GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType enum.
type GetAirportFlightsArrivalsCancellationsParams ¶
type GetAirportFlightsArrivalsCancellationsParams 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 *GetAirportFlightsArrivalsCancellationsParamsType `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"`
}
GetAirportFlightsArrivalsCancellationsParams defines parameters for GetAirportFlightsArrivalsCancellations.
type GetAirportFlightsArrivalsCancellationsParamsType ¶
type GetAirportFlightsArrivalsCancellationsParamsType string
GetAirportFlightsArrivalsCancellationsParamsType defines parameters for GetAirportFlightsArrivalsCancellations.
const ( GetAirportFlightsArrivalsCancellationsParamsTypeAirline GetAirportFlightsArrivalsCancellationsParamsType = "Airline" GetAirportFlightsArrivalsCancellationsParamsTypeGeneralAviation GetAirportFlightsArrivalsCancellationsParamsType = "General_Aviation" )
Defines values for GetAirportFlightsArrivalsCancellationsParamsType.
func (GetAirportFlightsArrivalsCancellationsParamsType) Valid ¶
func (e GetAirportFlightsArrivalsCancellationsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsArrivalsCancellationsParamsType enum.
type GetAirportFlightsArrivalsCancellationsResponse ¶
type GetAirportFlightsArrivalsCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsArrivalsCancellationsResponse ¶
func ParseGetAirportFlightsArrivalsCancellationsResponse(rsp *http.Response) (*GetAirportFlightsArrivalsCancellationsResponse, error)
ParseGetAirportFlightsArrivalsCancellationsResponse parses an HTTP response from a GetAirportFlightsArrivalsCancellationsWithResponse call
func (GetAirportFlightsArrivalsCancellationsResponse) ContentType ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsArrivalsCancellationsResponse) GetBody ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsArrivalsCancellationsResponse) Status ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsArrivalsCancellationsResponse) StatusCode ¶
func (r GetAirportFlightsArrivalsCancellationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetAirportFlightsArrived.
const ( GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
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.
func (GetAirportFlightsArrivedParamsType) Valid ¶
func (e GetAirportFlightsArrivedParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsArrivedParamsType enum.
type GetAirportFlightsArrivedResponse ¶
type GetAirportFlightsArrivedResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsArrivedResponse ¶
func ParseGetAirportFlightsArrivedResponse(rsp *http.Response) (*GetAirportFlightsArrivedResponse, error)
ParseGetAirportFlightsArrivedResponse parses an HTTP response from a GetAirportFlightsArrivedWithResponse call
func (GetAirportFlightsArrivedResponse) ContentType ¶
func (r GetAirportFlightsArrivedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsArrivedResponse) GetBody ¶
func (r GetAirportFlightsArrivedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsArrivedResponse) Status ¶
func (r GetAirportFlightsArrivedResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsCountResponse ¶
func ParseGetAirportFlightsCountResponse(rsp *http.Response) (*GetAirportFlightsCountResponse, error)
ParseGetAirportFlightsCountResponse parses an HTTP response from a GetAirportFlightsCountWithResponse call
func (GetAirportFlightsCountResponse) ContentType ¶
func (r GetAirportFlightsCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsCountResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsCountResponse) GetBody ¶
func (r GetAirportFlightsCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsCountResponse) Status ¶
func (r GetAirportFlightsCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsCountResponse) StatusCode ¶
func (r GetAirportFlightsCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType ¶
type GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType string
GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType defines parameters for GetAirportFlightsDeparted.
const ( GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeAirline GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "Airline" GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeGeneralAviation GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "General_Aviation" )
Defines values for GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType.
func (GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid ¶
func (e GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType enum.
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.
func (GetAirportFlightsDepartedParamsType) Valid ¶
func (e GetAirportFlightsDepartedParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsDepartedParamsType enum.
type GetAirportFlightsDepartedResponse ¶
type GetAirportFlightsDepartedResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Departures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsDepartedResponse ¶
func ParseGetAirportFlightsDepartedResponse(rsp *http.Response) (*GetAirportFlightsDepartedResponse, error)
ParseGetAirportFlightsDepartedResponse parses an HTTP response from a GetAirportFlightsDepartedWithResponse call
func (GetAirportFlightsDepartedResponse) ContentType ¶
func (r GetAirportFlightsDepartedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200() *struct { Departures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsDepartedResponse) GetBody ¶
func (r GetAirportFlightsDepartedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsDepartedResponse) Status ¶
func (r GetAirportFlightsDepartedResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsDepartedResponse) StatusCode ¶
func (r GetAirportFlightsDepartedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType ¶
type GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType string
GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType defines parameters for GetAirportFlightsDeparturesCancellations.
const ( GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeAirline GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "Airline" GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeGeneralAviation GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "General_Aviation" )
Defines values for GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType.
func (GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid ¶
func (e GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType enum.
type GetAirportFlightsDeparturesCancellationsParams ¶
type GetAirportFlightsDeparturesCancellationsParams 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 *GetAirportFlightsDeparturesCancellationsParamsType `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"`
}
GetAirportFlightsDeparturesCancellationsParams defines parameters for GetAirportFlightsDeparturesCancellations.
type GetAirportFlightsDeparturesCancellationsParamsType ¶
type GetAirportFlightsDeparturesCancellationsParamsType string
GetAirportFlightsDeparturesCancellationsParamsType defines parameters for GetAirportFlightsDeparturesCancellations.
const ( GetAirportFlightsDeparturesCancellationsParamsTypeAirline GetAirportFlightsDeparturesCancellationsParamsType = "Airline" GetAirportFlightsDeparturesCancellationsParamsTypeGeneralAviation GetAirportFlightsDeparturesCancellationsParamsType = "General_Aviation" )
Defines values for GetAirportFlightsDeparturesCancellationsParamsType.
func (GetAirportFlightsDeparturesCancellationsParamsType) Valid ¶
func (e GetAirportFlightsDeparturesCancellationsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsDeparturesCancellationsParamsType enum.
type GetAirportFlightsDeparturesCancellationsResponse ¶
type GetAirportFlightsDeparturesCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Departures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsDeparturesCancellationsResponse ¶
func ParseGetAirportFlightsDeparturesCancellationsResponse(rsp *http.Response) (*GetAirportFlightsDeparturesCancellationsResponse, error)
ParseGetAirportFlightsDeparturesCancellationsResponse parses an HTTP response from a GetAirportFlightsDeparturesCancellationsWithResponse call
func (GetAirportFlightsDeparturesCancellationsResponse) ContentType ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Departures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsDeparturesCancellationsResponse) GetBody ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsDeparturesCancellationsResponse) Status ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsDeparturesCancellationsResponse) StatusCode ¶
func (r GetAirportFlightsDeparturesCancellationsResponse) 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.
func (GetAirportFlightsParamsType) Valid ¶
func (e GetAirportFlightsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsParamsType enum.
type GetAirportFlightsResponse ¶
type GetAirportFlightsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `json:"type"`
} `json:"arrivals"`
Departures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType `json:"type"`
} `json:"scheduled_arrivals"`
ScheduledDepartures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType `json:"type"`
} `json:"scheduled_departures"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsResponse ¶
func ParseGetAirportFlightsResponse(rsp *http.Response) (*GetAirportFlightsResponse, error)
ParseGetAirportFlightsResponse parses an HTTP response from a GetAirportFlightsWithResponse call
func (GetAirportFlightsResponse) ContentType ¶
func (r GetAirportFlightsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `json:"type"` } `json:"arrivals"` Departures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType `json:"type"` } `json:"scheduled_arrivals"` ScheduledDepartures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType `json:"type"` } `json:"scheduled_departures"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsResponse) GetBody ¶
func (r GetAirportFlightsResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType ¶
type GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType string
GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType defines parameters for GetAirportFlightsScheduledArrivals.
const ( GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsTypeAirline GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType = "Airline" GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsTypeGeneralAviation GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType = "General_Aviation" )
Defines values for GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType.
func (GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType) Valid ¶
func (e GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType enum.
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.
func (GetAirportFlightsScheduledArrivalsParamsType) Valid ¶
func (e GetAirportFlightsScheduledArrivalsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsScheduledArrivalsParamsType enum.
type GetAirportFlightsScheduledArrivalsResponse ¶
type GetAirportFlightsScheduledArrivalsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType `json:"type"`
} `json:"scheduled_arrivals"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsScheduledArrivalsResponse ¶
func ParseGetAirportFlightsScheduledArrivalsResponse(rsp *http.Response) (*GetAirportFlightsScheduledArrivalsResponse, error)
ParseGetAirportFlightsScheduledArrivalsResponse parses an HTTP response from a GetAirportFlightsScheduledArrivalsWithResponse call
func (GetAirportFlightsScheduledArrivalsResponse) ContentType ¶
func (r GetAirportFlightsScheduledArrivalsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8200() *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. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsScheduledArrivals200ApplicationJSONCharsetUTF8ResponseBodyScheduledArrivalsType `json:"type"` } `json:"scheduled_arrivals"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsScheduledArrivalsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsScheduledArrivalsResponse) GetBody ¶
func (r GetAirportFlightsScheduledArrivalsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsScheduledArrivalsResponse) Status ¶
func (r GetAirportFlightsScheduledArrivalsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsScheduledArrivalsResponse) StatusCode ¶
func (r GetAirportFlightsScheduledArrivalsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType ¶
type GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType string
GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType defines parameters for GetAirportFlightsScheduledDepartures.
const ( GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesTypeAirline GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType = "Airline" GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesTypeGeneralAviation GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType = "General_Aviation" )
Defines values for GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType.
func (GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType) Valid ¶
func (e GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType enum.
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.
func (GetAirportFlightsScheduledDeparturesParamsType) Valid ¶
func (e GetAirportFlightsScheduledDeparturesParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportFlightsScheduledDeparturesParamsType enum.
type GetAirportFlightsScheduledDeparturesResponse ¶
type GetAirportFlightsScheduledDeparturesResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType `json:"type"`
} `json:"scheduled_departures"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportFlightsScheduledDeparturesResponse ¶
func ParseGetAirportFlightsScheduledDeparturesResponse(rsp *http.Response) (*GetAirportFlightsScheduledDeparturesResponse, error)
ParseGetAirportFlightsScheduledDeparturesResponse parses an HTTP response from a GetAirportFlightsScheduledDeparturesWithResponse call
func (GetAirportFlightsScheduledDeparturesResponse) ContentType ¶
func (r GetAirportFlightsScheduledDeparturesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8200() *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. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetAirportFlightsScheduledDepartures200ApplicationJSONCharsetUTF8ResponseBodyScheduledDeparturesType `json:"type"` } `json:"scheduled_departures"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportFlightsScheduledDeparturesResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportFlightsScheduledDeparturesResponse) GetBody ¶
func (r GetAirportFlightsScheduledDeparturesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportFlightsScheduledDeparturesResponse) Status ¶
func (r GetAirportFlightsScheduledDeparturesResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportFlightsScheduledDeparturesResponse) StatusCode ¶
func (r GetAirportFlightsScheduledDeparturesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportResponse ¶
type GetAirportResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
//
// Example: KHOU
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 airport matches
Alternatives *[]struct {
// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
//
// Example: KHOU
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
//
// Example: HOU
CodeIata *string `json:"code_iata,omitempty"`
// CodeIcao ICAO identifier for the airport if known
//
// Example: KHOU
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID identifier for the airport if known
//
// Example: HOU
CodeLid *string `json:"code_lid,omitempty"`
// 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
//
// Example: William P Hobby
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
//
// Example: America/Chicago
Timezone string `json:"timezone"`
// Type Type of airport
Type *GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType `json:"type,omitempty"`
// WikiUrl Link to the wikipedia page for the airport
WikiUrl *string `json:"wiki_url"`
} `json:"alternatives,omitempty"`
// City Closest city to the airport
City string `json:"city"`
// CodeIata IATA identifier for the airport if known
//
// Example: HOU
CodeIata *string `json:"code_iata,omitempty"`
// CodeIcao ICAO identifier for the airport if known
//
// Example: KHOU
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID identifier for the airport if known
//
// Example: HOU
CodeLid *string `json:"code_lid,omitempty"`
// 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
//
// Example: William P Hobby
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
//
// Example: America/Chicago
Timezone string `json:"timezone"`
// Type Type of airport
Type *GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType `json:"type,omitempty"`
// WikiUrl Link to the wikipedia page for the airport
WikiUrl *string `json:"wiki_url"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportResponse ¶
func ParseGetAirportResponse(rsp *http.Response) (*GetAirportResponse, error)
ParseGetAirportResponse parses an HTTP response from a GetAirportWithResponse call
func (GetAirportResponse) ContentType ¶
func (r GetAirportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportResponse) GetApplicationjsonCharsetUTF8200() *struct { // AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code // // Example: KHOU 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 airport matches Alternatives *[]struct { // AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code // // Example: KHOU 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 // // Example: HOU CodeIata *string `json:"code_iata,omitempty"` // CodeIcao ICAO identifier for the airport if known // // Example: KHOU CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID identifier for the airport if known // // Example: HOU CodeLid *string `json:"code_lid,omitempty"` // 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 // // Example: William P Hobby 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 // // Example: America/Chicago Timezone string `json:"timezone"` // Type Type of airport Type *GetAirport200ApplicationJSONCharsetUTF8ResponseBodyAlternativesType `json:"type,omitempty"` // WikiUrl Link to the wikipedia page for the airport WikiUrl *string `json:"wiki_url"` } `json:"alternatives,omitempty"` // City Closest city to the airport City string `json:"city"` // CodeIata IATA identifier for the airport if known // // Example: HOU CodeIata *string `json:"code_iata,omitempty"` // CodeIcao ICAO identifier for the airport if known // // Example: KHOU CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID identifier for the airport if known // // Example: HOU CodeLid *string `json:"code_lid,omitempty"` // 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 // // Example: William P Hobby 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 // // Example: America/Chicago Timezone string `json:"timezone"` // Type Type of airport Type *GetAirport200ApplicationJSONCharsetUTF8ResponseBodyType `json:"type,omitempty"` // WikiUrl Link to the wikipedia page for the airport WikiUrl *string `json:"wiki_url"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportResponse) GetBody ¶
func (r GetAirportResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage ¶
type GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage string
GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage defines parameters for GetAirportWeatherForecast.
const ( GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageBroken GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "broken" GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageFew GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "few" GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageLessThannil GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "<nil>" GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageOvercast GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "overcast" GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageScattered GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "scattered" GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverageSkyClear GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage = "sky_clear" )
Defines values for GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage.
func (GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage) Valid ¶
func (e GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage) Valid() bool
Valid indicates whether the value is a known member of the GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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 Example: 2021-12-31T19:59:59Z
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 *GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage `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
//
// Example: 2021-12-31T19:59:59Z
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
//
// Example: 2021-12-31T19:59:59Z
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 Example: 2021-12-31T19:59:59Z
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.
//
// Example: 2021-12-31T19:59:59Z
Time time.Time `json:"time"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetAirportWeatherForecastResponse ¶
func ParseGetAirportWeatherForecastResponse(rsp *http.Response) (*GetAirportWeatherForecastResponse, error)
ParseGetAirportWeatherForecastResponse parses an HTTP response from a GetAirportWeatherForecastWithResponse call
func (GetAirportWeatherForecastResponse) ContentType ¶
func (r GetAirportWeatherForecastResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8200() *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 Example: 2021-12-31T19:59:59Z 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 *GetAirportWeatherForecast200ApplicationJSONCharsetUTF8ResponseBodyDecodedForecastLinesCloudsCoverage `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 // // Example: 2021-12-31T19:59:59Z 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 // // Example: 2021-12-31T19:59:59Z 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 Example: 2021-12-31T19:59:59Z 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. // // Example: 2021-12-31T19:59:59Z Time time.Time `json:"time"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetAirportWeatherForecastResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetAirportWeatherForecastResponse) GetBody ¶
func (r GetAirportWeatherForecastResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportWeatherForecastResponse) Status ¶
func (r GetAirportWeatherForecastResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportWeatherForecastResponse) StatusCode ¶
func (r GetAirportWeatherForecastResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits ¶
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits string
GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits defines parameters for GetAirportWeatherObservations.
const ( GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnitsInHg GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits = "in Hg" GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnitsLessThannil GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits = "<nil>" GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnitsMb GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits = "mb" )
Defines values for GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits.
func (GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits) Valid ¶
func (e GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits) Valid() bool
Valid indicates whether the value is a known member of the GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits enum.
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits ¶
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits string
GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits defines parameters for GetAirportWeatherObservations.
const ( GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnitsLessThannil GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits = "<nil>" GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnitsMeters GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits = "meters" GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnitsSM GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits = "SM" )
Defines values for GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits.
func (GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits) Valid ¶
func (e GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits) Valid() bool
Valid indicates whether the value is a known member of the GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits enum.
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits ¶
type GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits string
GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits defines parameters for GetAirportWeatherObservations.
const ( KT GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits = "KT" MPS GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits = "MPS" )
Defines values for GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits.
func (GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits) Valid ¶
func (e GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits) Valid() bool
Valid indicates whether the value is a known member of the GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits enum.
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.
const ( GetAirportWeatherObservationsParamsTemperatureUnitsC GetAirportWeatherObservationsParamsTemperatureUnits = "C" GetAirportWeatherObservationsParamsTemperatureUnitsCelsius GetAirportWeatherObservationsParamsTemperatureUnits = "Celsius" GetAirportWeatherObservationsParamsTemperatureUnitsF GetAirportWeatherObservationsParamsTemperatureUnits = "F" GetAirportWeatherObservationsParamsTemperatureUnitsFahrenheit GetAirportWeatherObservationsParamsTemperatureUnits = "Fahrenheit" )
Defines values for GetAirportWeatherObservationsParamsTemperatureUnits.
func (GetAirportWeatherObservationsParamsTemperatureUnits) Valid ¶
func (e GetAirportWeatherObservationsParamsTemperatureUnits) Valid() bool
Valid indicates whether the value is a known member of the GetAirportWeatherObservationsParamsTemperatureUnits enum.
type GetAirportWeatherObservationsResponse ¶
type GetAirportWeatherObservationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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.
//
//
// Example: Overcast skies
CloudFriendly *string `json:"cloud_friendly"`
// Clouds Array of cloud data
Clouds []struct {
// Altitude Height in feet (AGL) of cloud base
Altitude *int `json:"altitude,omitempty"`
// 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
//
// Example: BR
Conditions *string `json:"conditions"`
// Pressure Air pressure (see pressure_units field for units)
Pressure *float32 `json:"pressure"`
// PressureUnits Units for air pressure
PressureUnits *GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits `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
//
// Example: 2021-12-31T19:59:59Z
Time time.Time `json:"time"`
// Visibility Horizontal visibility distance (see visibility_units for units)
Visibility *float32 `json:"visibility"`
// VisibilityUnits Units for visibility
VisibilityUnits *GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits `json:"visibility_units"`
// WindDirection Heading direction of wind (degrees)
WindDirection int `json:"wind_direction"`
// WindFriendly Human-friendly summary of winds
//
// Example: Very windy
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 GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits `json:"wind_units"`
} `json:"observations"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportWeatherObservationsResponse ¶
func ParseGetAirportWeatherObservationsResponse(rsp *http.Response) (*GetAirportWeatherObservationsResponse, error)
ParseGetAirportWeatherObservationsResponse parses an HTTP response from a GetAirportWeatherObservationsWithResponse call
func (GetAirportWeatherObservationsResponse) ContentType ¶
func (r GetAirportWeatherObservationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8200() *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. // // // Example: Overcast skies CloudFriendly *string `json:"cloud_friendly"` // Clouds Array of cloud data Clouds []struct { // Altitude Height in feet (AGL) of cloud base Altitude *int `json:"altitude,omitempty"` // 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 // // Example: BR Conditions *string `json:"conditions"` // Pressure Air pressure (see pressure_units field for units) Pressure *float32 `json:"pressure"` // PressureUnits Units for air pressure PressureUnits *GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsPressureUnits `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 // // Example: 2021-12-31T19:59:59Z Time time.Time `json:"time"` // Visibility Horizontal visibility distance (see visibility_units for units) Visibility *float32 `json:"visibility"` // VisibilityUnits Units for visibility VisibilityUnits *GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsVisibilityUnits `json:"visibility_units"` // WindDirection Heading direction of wind (degrees) WindDirection int `json:"wind_direction"` // WindFriendly Human-friendly summary of winds // // Example: Very windy 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 GetAirportWeatherObservations200ApplicationJSONCharsetUTF8ResponseBodyObservationsWindUnits `json:"wind_units"` } `json:"observations"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportWeatherObservationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportWeatherObservationsResponse) GetBody ¶
func (r GetAirportWeatherObservationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportWeatherObservationsResponse) Status ¶
func (r GetAirportWeatherObservationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportWeatherObservationsResponse) StatusCode ¶
func (r GetAirportWeatherObservationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType ¶
type GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType string
GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType defines parameters for GetAirportsCanonical.
const ( GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdTypeIata GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType = "iata" GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdTypeIcao GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType = "icao" GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdTypeLid GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType = "lid" )
Defines values for GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType.
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.
const ( GetAirportsCanonicalParamsIdTypeIata GetAirportsCanonicalParamsIdType = "iata" GetAirportsCanonicalParamsIdTypeIcao GetAirportsCanonicalParamsIdType = "icao" GetAirportsCanonicalParamsIdTypeLid GetAirportsCanonicalParamsIdType = "lid" )
Defines values for GetAirportsCanonicalParamsIdType.
func (GetAirportsCanonicalParamsIdType) Valid ¶
func (e GetAirportsCanonicalParamsIdType) Valid() bool
Valid indicates whether the value is a known member of the GetAirportsCanonicalParamsIdType enum.
type GetAirportsCanonicalResponse ¶
type GetAirportsCanonicalResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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 GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType `json:"id_type"`
} `json:"airports"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportsCanonicalResponse ¶
func ParseGetAirportsCanonicalResponse(rsp *http.Response) (*GetAirportsCanonicalResponse, error)
ParseGetAirportsCanonicalResponse parses an HTTP response from a GetAirportsCanonicalWithResponse call
func (GetAirportsCanonicalResponse) ContentType ¶
func (r GetAirportsCanonicalResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8200() *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 GetAirportsCanonical200ApplicationJSONCharsetUTF8ResponseBodyAirportsIdType `json:"id_type"` } `json:"airports"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportsCanonicalResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportsCanonicalResponse) GetBody ¶
func (r GetAirportsCanonicalResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportsCanonicalResponse) Status ¶
func (r GetAirportsCanonicalResponse) Status() string
Status returns HTTPResponse.Status
func (GetAirportsCanonicalResponse) StatusCode ¶
func (r GetAirportsCanonicalResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection ¶
type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection string
GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection defines parameters for GetAirportsNearAirport.
const ( GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionE GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "E" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionN GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "N" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionNE GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "NE" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionNW GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "NW" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionS GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "S" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionSE GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "SE" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionSW GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "SW" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionW GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "W" )
Defines values for GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection.
func (GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection) Valid ¶
func (e GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection) Valid() bool
Valid indicates whether the value is a known member of the GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection enum.
type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType ¶
type GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType string
GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType defines parameters for GetAirportsNearAirport.
const ( GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeAirport GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Airport" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeBalloonport GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Balloonport" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeGliderport GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Gliderport" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeHeliport GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Heliport" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeLessThannil GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "<nil>" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeSeaplaneBase GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Seaplane Base" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeStolport GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Stolport" GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeUltralight GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Ultralight" )
Defines values for GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Airports []struct {
// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
//
// Example: KHOU
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
//
// Example: HOU
CodeIata *string `json:"code_iata,omitempty"`
// CodeIcao ICAO identifier for the airport if known
//
// Example: KHOU
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID identifier for the airport if known
//
// Example: HOU
CodeLid *string `json:"code_lid,omitempty"`
// 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 GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection `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
//
// Example: William P Hobby
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
//
// Example: America/Chicago
Timezone string `json:"timezone"`
// Type Type of airport
Type *GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType `json:"type,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAirportsNearAirportResponse ¶
func ParseGetAirportsNearAirportResponse(rsp *http.Response) (*GetAirportsNearAirportResponse, error)
ParseGetAirportsNearAirportResponse parses an HTTP response from a GetAirportsNearAirportWithResponse call
func (GetAirportsNearAirportResponse) ContentType ¶
func (r GetAirportsNearAirportResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8200() *struct { Airports []struct { // AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code // // Example: KHOU 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 // // Example: HOU CodeIata *string `json:"code_iata,omitempty"` // CodeIcao ICAO identifier for the airport if known // // Example: KHOU CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID identifier for the airport if known // // Example: HOU CodeLid *string `json:"code_lid,omitempty"` // 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 GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection `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 // // Example: William P Hobby 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 // // Example: America/Chicago Timezone string `json:"timezone"` // Type Type of airport Type *GetAirportsNearAirport200ApplicationJSONCharsetUTF8ResponseBodyAirportsType `json:"type,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAirportsNearAirportResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAirportsNearAirportResponse) GetBody ¶
func (r GetAirportsNearAirportResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAirportsNearAirportResponse) Status ¶
func (r GetAirportsNearAirportResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// AircraftType Aircraft type ICAO code to alert on.
AircraftType *string `json:"aircraft_type"`
// Changed Time that the alert was last modified.
//
// Example: 2021-12-31T19:59:59Z
Changed time.Time `json:"changed"`
// Created Time that the alert was created.
//
// Example: 2021-12-31T19:59:59Z
Created time.Time `json:"created"`
// Description Server-generated textual description of alert. May include carrier,
// flight number, origin, destination, etc.
Description string `json:"description"`
// 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,omitempty"`
// DestinationIcao Destination airport ICAO code to alert on.
DestinationIcao *string `json:"destination_icao,omitempty"`
// DestinationLid Destination airport LID code to alert on.
DestinationLid *string `json:"destination_lid,omitempty"`
// Enabled Whether alert is enabled.
Enabled bool `json:"enabled"`
// 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"`
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"`
// Id Unique ID for alert, can be used to update or delete alert.
Id int `json:"id"`
// 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,omitempty"`
// IdentIcao ICAO ident to alert on
IdentIcao *string `json:"ident_icao,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingArrival *[]int `json:"impending_arrival,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingDeparture *[]int `json:"impending_departure,omitempty"`
// 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,omitempty"`
// OriginIcao Origin airport ICAO code to alert on.
OriginIcao *string `json:"origin_icao,omitempty"`
// OriginLid Origin airport LID code to alert on.
OriginLid *string `json:"origin_lid,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetAlertResponse ¶
func ParseGetAlertResponse(rsp *http.Response) (*GetAlertResponse, error)
ParseGetAlertResponse parses an HTTP response from a GetAlertWithResponse call
func (GetAlertResponse) ContentType ¶
func (r GetAlertResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAlertResponse) GetApplicationjsonCharsetUTF8200() *struct { // AircraftType Aircraft type ICAO code to alert on. AircraftType *string `json:"aircraft_type"` // Changed Time that the alert was last modified. // // Example: 2021-12-31T19:59:59Z Changed time.Time `json:"changed"` // Created Time that the alert was created. // // Example: 2021-12-31T19:59:59Z Created time.Time `json:"created"` // Description Server-generated textual description of alert. May include carrier, // flight number, origin, destination, etc. Description string `json:"description"` // 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,omitempty"` // DestinationIcao Destination airport ICAO code to alert on. DestinationIcao *string `json:"destination_icao,omitempty"` // DestinationLid Destination airport LID code to alert on. DestinationLid *string `json:"destination_lid,omitempty"` // Enabled Whether alert is enabled. Enabled bool `json:"enabled"` // 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"` 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"` // Id Unique ID for alert, can be used to update or delete alert. Id int `json:"id"` // 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,omitempty"` // IdentIcao ICAO ident to alert on IdentIcao *string `json:"ident_icao,omitempty"` // 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. // // // Example: [5,10,15] ImpendingArrival *[]int `json:"impending_arrival,omitempty"` // 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. // // // Example: [5,10,15] ImpendingDeparture *[]int `json:"impending_departure,omitempty"` // 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,omitempty"` // OriginIcao Origin airport ICAO code to alert on. OriginIcao *string `json:"origin_icao,omitempty"` // OriginLid Origin airport LID code to alert on. OriginLid *string `json:"origin_lid,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAlertResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetAlertResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetAlertResponse) GetBody ¶
func (r GetAlertResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// Url Default account-wide URL that will be POSTed to for flight alerts.
Url *string `json:"url"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAlertsEndpointResponse ¶
func ParseGetAlertsEndpointResponse(rsp *http.Response) (*GetAlertsEndpointResponse, error)
ParseGetAlertsEndpointResponse parses an HTTP response from a GetAlertsEndpointWithResponse call
func (GetAlertsEndpointResponse) ContentType ¶
func (r GetAlertsEndpointResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8200() *struct { // Url Default account-wide URL that will be POSTed to for flight alerts. Url *string `json:"url"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAlertsEndpointResponse) GetBody ¶
func (r GetAlertsEndpointResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
}
func ParseGetAllAirportsResponse ¶
func ParseGetAllAirportsResponse(rsp *http.Response) (*GetAllAirportsResponse, error)
ParseGetAllAirportsResponse parses an HTTP response from a GetAllAirportsWithResponse call
func (GetAllAirportsResponse) ContentType ¶
func (r GetAllAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAllAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAllAirportsResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAllAirportsResponse) GetBody ¶
func (r GetAllAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Alerts []struct {
// AircraftType Aircraft type ICAO code to alert on.
AircraftType *string `json:"aircraft_type"`
// Changed Time that the alert was last modified.
//
// Example: 2021-12-31T19:59:59Z
Changed time.Time `json:"changed"`
// Created Time that the alert was created.
//
// Example: 2021-12-31T19:59:59Z
Created time.Time `json:"created"`
// Description Server-generated textual description of alert. May include carrier,
// flight number, origin, destination, etc.
Description string `json:"description"`
// 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,omitempty"`
// DestinationIcao Destination airport ICAO code to alert on.
DestinationIcao *string `json:"destination_icao,omitempty"`
// DestinationLid Destination airport LID code to alert on.
DestinationLid *string `json:"destination_lid,omitempty"`
// Enabled Whether alert is enabled.
Enabled bool `json:"enabled"`
// 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"`
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"`
// Id Unique ID for alert, can be used to update or delete alert.
Id int `json:"id"`
// 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,omitempty"`
// IdentIcao ICAO ident to alert on
IdentIcao *string `json:"ident_icao,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingArrival *[]int `json:"impending_arrival,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingDeparture *[]int `json:"impending_departure,omitempty"`
// 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,omitempty"`
// OriginIcao Origin airport ICAO code to alert on.
OriginIcao *string `json:"origin_icao,omitempty"`
// OriginLid Origin airport LID code to alert on.
OriginLid *string `json:"origin_lid,omitempty"`
// 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,omitempty"`
// NumPages Number of pages returned
NumPages *int `json:"num_pages,omitempty"`
}
}
func ParseGetAllAlertsResponse ¶
func ParseGetAllAlertsResponse(rsp *http.Response) (*GetAllAlertsResponse, error)
ParseGetAllAlertsResponse parses an HTTP response from a GetAllAlertsWithResponse call
func (GetAllAlertsResponse) ContentType ¶
func (r GetAllAlertsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAllAlertsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAllAlertsResponse) GetApplicationjsonCharsetUTF8200() *struct { Alerts []struct { // AircraftType Aircraft type ICAO code to alert on. AircraftType *string `json:"aircraft_type"` // Changed Time that the alert was last modified. // // Example: 2021-12-31T19:59:59Z Changed time.Time `json:"changed"` // Created Time that the alert was created. // // Example: 2021-12-31T19:59:59Z Created time.Time `json:"created"` // Description Server-generated textual description of alert. May include carrier, // flight number, origin, destination, etc. Description string `json:"description"` // 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,omitempty"` // DestinationIcao Destination airport ICAO code to alert on. DestinationIcao *string `json:"destination_icao,omitempty"` // DestinationLid Destination airport LID code to alert on. DestinationLid *string `json:"destination_lid,omitempty"` // Enabled Whether alert is enabled. Enabled bool `json:"enabled"` // 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"` 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"` // Id Unique ID for alert, can be used to update or delete alert. Id int `json:"id"` // 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,omitempty"` // IdentIcao ICAO ident to alert on IdentIcao *string `json:"ident_icao,omitempty"` // 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. // // // Example: [5,10,15] ImpendingArrival *[]int `json:"impending_arrival,omitempty"` // 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. // // // Example: [5,10,15] ImpendingDeparture *[]int `json:"impending_departure,omitempty"` // 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,omitempty"` // OriginIcao Origin airport ICAO code to alert on. OriginIcao *string `json:"origin_icao,omitempty"` // OriginLid Origin airport LID code to alert on. OriginLid *string `json:"origin_lid,omitempty"` // 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,omitempty"` // NumPages Number of pages returned NumPages *int `json:"num_pages,omitempty"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAllAlertsResponse) GetBody ¶
func (r GetAllAlertsResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetAllDisruptionCountsResponse ¶
func ParseGetAllDisruptionCountsResponse(rsp *http.Response) (*GetAllDisruptionCountsResponse, error)
ParseGetAllDisruptionCountsResponse parses an HTTP response from a GetAllDisruptionCountsWithResponse call
func (GetAllDisruptionCountsResponse) ContentType ¶
func (r GetAllDisruptionCountsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetAllDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetAllDisruptionCountsResponse) GetBody ¶
func (r GetAllDisruptionCountsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetAllDisruptionCountsResponse) Status ¶
func (r GetAllDisruptionCountsResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
}
func ParseGetAllOperatorsResponse ¶
func ParseGetAllOperatorsResponse(rsp *http.Response) (*GetAllOperatorsResponse, error)
ParseGetAllOperatorsResponse parses an HTTP response from a GetAllOperatorsWithResponse call
func (GetAllOperatorsResponse) ContentType ¶
func (r GetAllOperatorsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetAllOperatorsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetAllOperatorsResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetAllOperatorsResponse) GetBody ¶
func (r GetAllOperatorsResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor ¶
type GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor string
GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor defines parameters for GetDelaysForAllAirports.
const ( GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColorGreen GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor = "green" GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColorRed GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor = "red" GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColorYellow GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor = "yellow" )
Defines values for GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor.
type GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor ¶
type GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor string
GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor defines parameters for GetDelaysForAllAirports.
const ( GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColorGreen GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor = "green" GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColorRed GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor = "red" GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColorYellow GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor = "yellow" )
Defines values for GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor.
func (GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor) Valid ¶
func (e GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor) Valid() bool
Valid indicates whether the value is a known member of the GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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 GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor `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 GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor `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"`
}
}
func ParseGetDelaysForAllAirportsResponse ¶
func ParseGetDelaysForAllAirportsResponse(rsp *http.Response) (*GetDelaysForAllAirportsResponse, error)
ParseGetDelaysForAllAirportsResponse parses an HTTP response from a GetDelaysForAllAirportsWithResponse call
func (GetDelaysForAllAirportsResponse) ContentType ¶
func (r GetDelaysForAllAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDelaysForAllAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetDelaysForAllAirportsResponse) GetApplicationjsonCharsetUTF8200() *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 GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysColor `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 GetDelaysForAllAirports200ApplicationJSONCharsetUTF8ResponseBodyDelaysReasonsColor `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetDelaysForAllAirportsResponse) GetBody ¶
func (r GetDelaysForAllAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDelaysForAllAirportsResponse) Status ¶
func (r GetDelaysForAllAirportsResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetDisruptionCountsResponse ¶
func ParseGetDisruptionCountsResponse(rsp *http.Response) (*GetDisruptionCountsResponse, error)
ParseGetDisruptionCountsResponse parses an HTTP response from a GetDisruptionCountsWithResponse call
func (GetDisruptionCountsResponse) ContentType ¶
func (r GetDisruptionCountsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetDisruptionCountsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetDisruptionCountsResponse) GetBody ¶
func (r GetDisruptionCountsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDisruptionCountsResponse) Status ¶
func (r GetDisruptionCountsResponse) Status() string
Status returns HTTPResponse.Status
func (GetDisruptionCountsResponse) StatusCode ¶
func (r GetDisruptionCountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetFlight.
const ( GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
func (GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid ¶
func (e GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid() bool
Valid indicates whether the value is a known member of the GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType enum.
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.
func (GetFlightMapParamsLayerOff) Valid ¶
func (e GetFlightMapParamsLayerOff) Valid() bool
Valid indicates whether the value is a known member of the GetFlightMapParamsLayerOff enum.
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.
func (GetFlightMapParamsLayerOn) Valid ¶
func (e GetFlightMapParamsLayerOn) Valid() bool
Valid indicates whether the value is a known member of the GetFlightMapParamsLayerOn enum.
type GetFlightMapResponse ¶
type GetFlightMapResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Map []byte `json:"map"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightMapResponse ¶
func ParseGetFlightMapResponse(rsp *http.Response) (*GetFlightMapResponse, error)
ParseGetFlightMapResponse parses an HTTP response from a GetFlightMapWithResponse call
func (GetFlightMapResponse) ContentType ¶
func (r GetFlightMapResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightMapResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightMapResponse) GetApplicationjsonCharsetUTF8200() *struct { Map []byte `json:"map"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightMapResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightMapResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightMapResponse) GetBody ¶
func (r GetFlightMapResponse) GetBody() []byte
GetBody returns the raw response body bytes
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.
func (GetFlightParamsIdentType) Valid ¶
func (e GetFlightParamsIdentType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightParamsIdentType enum.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeC GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "C" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeD GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "D" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeMinus GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "-" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange.
func (GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange) Valid ¶
func (e GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange enum.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeA GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "A" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeD GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "D" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeLessThannil GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "<nil>" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeM GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "M" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeO GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "O" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeP GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "P" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeS GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "S" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeV GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "V" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeX GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "X" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeZ GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "Z" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType.
func (GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType) Valid ¶
func (e GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType enum.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceForesight GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "Foresight" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceHistoricalAverage GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "Historical Average" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceLessThannil GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "<nil>" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceForesight GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "Foresight" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceHistoricalAverage GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "Historical Average" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceLessThannil GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "<nil>" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceForesight GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "Foresight" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceHistoricalAverage GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "Historical Average" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceLessThannil GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "<nil>" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource.
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource ¶
type GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource string
GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource defines parameters for GetFlightPosition.
const ( GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceForesight GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "Foresight" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceHistoricalAverage GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "Historical Average" GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceLessThannil GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "<nil>" )
Defines values for GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource.
type GetFlightPositionResponse ¶
type GetFlightPositionResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
FirstPositionTime *time.Time `json:"first_position_time"`
// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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 GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType `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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource `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,omitempty"`
// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
Waypoints []float32 `json:"waypoints"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightPositionResponse ¶
func ParseGetFlightPositionResponse(rsp *http.Response) (*GetFlightPositionResponse, error)
ParseGetFlightPositionResponse parses an HTTP response from a GetFlightPositionWithResponse call
func (GetFlightPositionResponse) ContentType ¶
func (r GetFlightPositionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightPositionResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightPositionResponse) GetApplicationjsonCharsetUTF8200() *struct { // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z FirstPositionTime *time.Time `json:"first_position_time"` // ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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 GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType `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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource `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 *GetFlightPosition200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource `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,omitempty"` // Waypoints Route waypoints as an array of alternating latitudes and longitudes. Waypoints []float32 `json:"waypoints"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightPositionResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightPositionResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightPositionResponse) GetBody ¶
func (r GetFlightPositionResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeC GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "C" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeD GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "D" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChangeMinus GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange = "-" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeA GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "A" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeD GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "D" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "<nil>" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeM GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "M" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeO GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "O" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeP GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "P" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeS GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "S" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeV GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "V" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeX GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "X" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateTypeZ GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType = "Z" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceForesight GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "Foresight" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceHistoricalAverage GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "Historical Average" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSourceLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource = "<nil>" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceForesight GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "Foresight" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceHistoricalAverage GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "Historical Average" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSourceLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource = "<nil>" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceForesight GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "Foresight" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceHistoricalAverage GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "Historical Average" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSourceLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource = "<nil>" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceForesight GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "Foresight" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceHistoricalAverage GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "Historical Average" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSourceLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource = "<nil>" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource enum.
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource ¶
type GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource string
GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource defines parameters for GetFlightPositionWithForesight.
const ( GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSourceForesight GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource = "Foresight" GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSourceLessThannil GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource = "<nil>" )
Defines values for GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource.
func (GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource) Valid ¶
func (e GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource enum.
type GetFlightPositionWithForesightResponse ¶
type GetFlightPositionWithForesightResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
FirstPositionTime *time.Time `json:"first_position_time"`
// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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 GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType `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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"origin"`
// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedIn *time.Time `json:"predicted_in"`
// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedInSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource `json:"predicted_in_source"`
// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOff *time.Time `json:"predicted_off"`
// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOffSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource `json:"predicted_off_source"`
// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOn *time.Time `json:"predicted_on"`
// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOnSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource `json:"predicted_on_source"`
// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOut *time.Time `json:"predicted_out"`
// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedOutSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource `json:"predicted_out_source"`
// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
//
// Example: 1234
PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`
// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedTaxiOutDurationSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource `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,omitempty"`
// Waypoints Route waypoints as an array of alternating latitudes and longitudes.
Waypoints []float32 `json:"waypoints"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightPositionWithForesightResponse ¶
func ParseGetFlightPositionWithForesightResponse(rsp *http.Response) (*GetFlightPositionWithForesightResponse, error)
ParseGetFlightPositionWithForesightResponse parses an HTTP response from a GetFlightPositionWithForesightWithResponse call
func (GetFlightPositionWithForesightResponse) ContentType ¶
func (r GetFlightPositionWithForesightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8200() *struct { // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z FirstPositionTime *time.Time `json:"first_position_time"` // ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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 GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyLastPositionUpdateType `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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"origin"` // PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedIn *time.Time `json:"predicted_in"` // PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints. // // Example: Foresight PredictedInSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedInSource `json:"predicted_in_source"` // PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOff *time.Time `json:"predicted_off"` // PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOffSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOffSource `json:"predicted_off_source"` // PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOn *time.Time `json:"predicted_on"` // PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOnSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOnSource `json:"predicted_on_source"` // PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOut *time.Time `json:"predicted_out"` // PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedOutSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedOutSource `json:"predicted_out_source"` // PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints. // // Example: 1234 PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"` // PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedTaxiOutDurationSource *GetFlightPositionWithForesight200ApplicationJSONCharsetUTF8ResponseBodyPredictedTaxiOutDurationSource `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,omitempty"` // Waypoints Route waypoints as an array of alternating latitudes and longitudes. Waypoints []float32 `json:"waypoints"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightPositionWithForesightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightPositionWithForesightResponse) GetBody ¶
func (r GetFlightPositionWithForesightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightPositionWithForesightResponse) Status ¶
func (r GetFlightPositionWithForesightResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightPositionWithForesightResponse) StatusCode ¶
func (r GetFlightPositionWithForesightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightResponse ¶
type GetFlightResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightResponse ¶
func ParseGetFlightResponse(rsp *http.Response) (*GetFlightResponse, error)
ParseGetFlightResponse parses an HTTP response from a GetFlightWithResponse call
func (GetFlightResponse) ContentType ¶
func (r GetFlightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightResponse) GetBody ¶
func (r GetFlightResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetFlightRouteResponse ¶
func ParseGetFlightRouteResponse(rsp *http.Response) (*GetFlightRouteResponse, error)
ParseGetFlightRouteResponse parses an HTTP response from a GetFlightRouteWithResponse call
func (GetFlightRouteResponse) ContentType ¶
func (r GetFlightRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightRouteResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightRouteResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightRouteResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetFlightRouteResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetFlightRouteResponse) GetBody ¶
func (r GetFlightRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange ¶
type GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange string
GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange defines parameters for GetFlightTrack.
const ( GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeC GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "C" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeD GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "D" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeMinus GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "-" )
Defines values for GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange.
func (GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid ¶
func (e GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange enum.
type GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType ¶
type GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType string
GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType defines parameters for GetFlightTrack.
const ( GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeA GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "A" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeD GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "D" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeLessThannil GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "<nil>" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeM GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "M" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeO GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "O" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeP GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "P" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeS GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "S" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeV GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "V" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeX GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "X" GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeZ GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "Z" )
Defines values for GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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,omitempty"`
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 GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"`
} `json:"positions,omitempty"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetFlightTrackResponse ¶
func ParseGetFlightTrackResponse(rsp *http.Response) (*GetFlightTrackResponse, error)
ParseGetFlightTrackResponse parses an HTTP response from a GetFlightTrackWithResponse call
func (GetFlightTrackResponse) ContentType ¶
func (r GetFlightTrackResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightTrackResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8200() *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,omitempty"` 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 GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"` } `json:"positions,omitempty"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightTrackResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightTrackResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetFlightTrackResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetFlightTrackResponse) GetBody ¶
func (r GetFlightTrackResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// Description A short description of the aircraft
Description *string `json:"description,omitempty"`
// EngineCount Number of engines
EngineCount *int `json:"engine_count,omitempty"`
// EngineType Type of engine
EngineType *string `json:"engine_type,omitempty"`
// Manufacturer Manufacturer of aircraft
Manufacturer *string `json:"manufacturer,omitempty"`
// Type Type of aircraft
Type *string `json:"type,omitempty"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightTypeResponse ¶
func ParseGetFlightTypeResponse(rsp *http.Response) (*GetFlightTypeResponse, error)
ParseGetFlightTypeResponse parses an HTTP response from a GetFlightTypeWithResponse call
func (GetFlightTypeResponse) ContentType ¶
func (r GetFlightTypeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightTypeResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightTypeResponse) GetApplicationjsonCharsetUTF8200() *struct { // Description A short description of the aircraft Description *string `json:"description,omitempty"` // EngineCount Number of engines EngineCount *int `json:"engine_count,omitempty"` // EngineType Type of engine EngineType *string `json:"engine_type,omitempty"` // Manufacturer Manufacturer of aircraft Manufacturer *string `json:"manufacturer,omitempty"` // Type Type of aircraft Type *string `json:"type,omitempty"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightTypeResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightTypeResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightTypeResponse) GetBody ¶
func (r GetFlightTypeResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceForesight GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Foresight" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceHistoricalAverage GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Historical Average" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceLessThannil GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "<nil>" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource.
func (GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid ¶
func (e GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource enum.
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceForesight GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Foresight" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceHistoricalAverage GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Historical Average" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceLessThannil GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "<nil>" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource.
func (GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid ¶
func (e GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource enum.
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceForesight GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Foresight" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceHistoricalAverage GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Historical Average" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceLessThannil GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "<nil>" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource.
func (GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid ¶
func (e GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource enum.
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceForesight GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Foresight" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceHistoricalAverage GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Historical Average" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceLessThannil GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "<nil>" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource.
func (GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid ¶
func (e GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource enum.
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSourceForesight GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource = "Foresight" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSourceLessThannil GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource = "<nil>" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource.
func (GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource) Valid ¶
func (e GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource enum.
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetFlightWithForesight.
const ( GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
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.
func (GetFlightWithForesightParamsIdentType) Valid ¶
func (e GetFlightWithForesightParamsIdentType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightWithForesightParamsIdentType enum.
type GetFlightWithForesightResponse ¶
type GetFlightWithForesightResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
PredictedIn *time.Time `json:"predicted_in"`
// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedInSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `json:"predicted_in_source"`
// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOff *time.Time `json:"predicted_off"`
// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOffSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `json:"predicted_off_source"`
// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOn *time.Time `json:"predicted_on"`
// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOnSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `json:"predicted_on_source"`
// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOut *time.Time `json:"predicted_out"`
// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedOutSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `json:"predicted_out_source"`
// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
//
// Example: 1234
PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`
// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedTaxiOutDurationSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightWithForesightResponse ¶
func ParseGetFlightWithForesightResponse(rsp *http.Response) (*GetFlightWithForesightResponse, error)
ParseGetFlightWithForesightResponse parses an HTTP response from a GetFlightWithForesightWithResponse call
func (GetFlightWithForesightResponse) ContentType ¶
func (r GetFlightWithForesightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z PredictedIn *time.Time `json:"predicted_in"` // PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints. // // Example: Foresight PredictedInSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `json:"predicted_in_source"` // PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOff *time.Time `json:"predicted_off"` // PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOffSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `json:"predicted_off_source"` // PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOn *time.Time `json:"predicted_on"` // PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOnSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `json:"predicted_on_source"` // PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOut *time.Time `json:"predicted_out"` // PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedOutSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `json:"predicted_out_source"` // PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints. // // Example: 1234 PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"` // PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedTaxiOutDurationSource *GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetFlightWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightWithForesightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightWithForesightResponse) GetBody ¶
func (r GetFlightWithForesightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightWithForesightResponse) Status ¶
func (r GetFlightWithForesightResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightWithForesightResponse) StatusCode ¶
func (r GetFlightWithForesightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType ¶
type GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType string
GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType defines parameters for GetFlightsBetweenAirports.
const ( GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsTypeAirline GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType = "Airline" GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsTypeGeneralAviation GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType = "General_Aviation" )
Defines values for GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType.
func (GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType) Valid ¶
func (e GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType enum.
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.
const ( Nonstop GetFlightsBetweenAirportsParamsConnection = "nonstop" Onestop GetFlightsBetweenAirportsParamsConnection = "onestop" )
Defines values for GetFlightsBetweenAirportsParamsConnection.
func (GetFlightsBetweenAirportsParamsConnection) Valid ¶
func (e GetFlightsBetweenAirportsParamsConnection) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBetweenAirportsParamsConnection enum.
type GetFlightsBetweenAirportsParamsType ¶
type GetFlightsBetweenAirportsParamsType string
GetFlightsBetweenAirportsParamsType defines parameters for GetFlightsBetweenAirports.
const ( GetFlightsBetweenAirportsParamsTypeAirline GetFlightsBetweenAirportsParamsType = "Airline" GetFlightsBetweenAirportsParamsTypeGeneralAviation GetFlightsBetweenAirportsParamsType = "General_Aviation" )
Defines values for GetFlightsBetweenAirportsParamsType.
func (GetFlightsBetweenAirportsParamsType) Valid ¶
func (e GetFlightsBetweenAirportsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBetweenAirportsParamsType enum.
type GetFlightsBetweenAirportsResponse ¶
type GetFlightsBetweenAirportsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
Segments []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsBetweenAirportsResponse ¶
func ParseGetFlightsBetweenAirportsResponse(rsp *http.Response) (*GetFlightsBetweenAirportsResponse, error)
ParseGetFlightsBetweenAirportsResponse parses an HTTP response from a GetFlightsBetweenAirportsWithResponse call
func (GetFlightsBetweenAirportsResponse) ContentType ¶
func (r GetFlightsBetweenAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { Segments []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsSegmentsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsBetweenAirportsResponse) GetBody ¶
func (r GetFlightsBetweenAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsBetweenAirportsResponse) Status ¶
func (r GetFlightsBetweenAirportsResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsBetweenAirportsResponse) StatusCode ¶
func (r GetFlightsBetweenAirportsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeC GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "C" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeD GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "D" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeMinus GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "-" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange enum.
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeA GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "A" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeD GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "D" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeLessThannil GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "<nil>" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeM GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "M" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeO GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "O" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeP GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "P" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeS GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "S" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeV GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "V" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeX GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "X" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeZ GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "Z" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType enum.
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceForesight GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Foresight" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceHistoricalAverage GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Historical Average" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceLessThannil GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource enum.
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceForesight GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Foresight" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceHistoricalAverage GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Historical Average" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceLessThannil GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource enum.
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceForesight GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Foresight" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceHistoricalAverage GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Historical Average" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceLessThannil GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource enum.
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource ¶
type GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource string
GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource defines parameters for GetFlightsByAdvancedSearch.
const ( GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceForesight GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Foresight" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceHistoricalAverage GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Historical Average" GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceLessThannil GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource.
func (GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid ¶
func (e GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
FirstPositionTime *time.Time `json:"first_position_time"`
// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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 GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `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,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsByAdvancedSearchResponse ¶
func ParseGetFlightsByAdvancedSearchResponse(rsp *http.Response) (*GetFlightsByAdvancedSearchResponse, error)
ParseGetFlightsByAdvancedSearchResponse parses an HTTP response from a GetFlightsByAdvancedSearchWithResponse call
func (GetFlightsByAdvancedSearchResponse) ContentType ¶
func (r GetFlightsByAdvancedSearchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z FirstPositionTime *time.Time `json:"first_position_time"` // ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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 GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `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 *GetFlightsByAdvancedSearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `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,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsByAdvancedSearchResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsByAdvancedSearchResponse) GetBody ¶
func (r GetFlightsByAdvancedSearchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsByAdvancedSearchResponse) Status ¶
func (r GetFlightsByAdvancedSearchResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsByAdvancedSearchResponse) StatusCode ¶
func (r GetFlightsByAdvancedSearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeC GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "C" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeD GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "D" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeMinus GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "-" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeA GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "A" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeD GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "D" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "<nil>" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeM GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "M" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeO GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "O" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeP GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "P" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeS GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "S" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeV GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "V" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeX GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "X" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeZ GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "Z" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceForesight GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Foresight" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceHistoricalAverage GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Historical Average" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceForesight GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Foresight" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceHistoricalAverage GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Historical Average" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceForesight GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Foresight" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceHistoricalAverage GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Historical Average" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceForesight GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Foresight" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceHistoricalAverage GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Historical Average" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource enum.
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource ¶
type GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource string
GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource defines parameters for GetFlightsByAdvancedSearchWithForesight.
const ( GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSourceForesight GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource = "Foresight" GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSourceLessThannil GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource = "<nil>" )
Defines values for GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource.
func (GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource) Valid ¶
func (e GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
FirstPositionTime *time.Time `json:"first_position_time"`
// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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 GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"origin"`
// PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedIn *time.Time `json:"predicted_in"`
// PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedInSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `json:"predicted_in_source"`
// PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOff *time.Time `json:"predicted_off"`
// PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOffSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `json:"predicted_off_source"`
// PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOn *time.Time `json:"predicted_on"`
// PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints.
//
// Example: Historical Average
PredictedOnSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `json:"predicted_on_source"`
// PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints.
//
// Example: 2021-12-31T19:59:59Z
PredictedOut *time.Time `json:"predicted_out"`
// PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedOutSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `json:"predicted_out_source"`
// PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints.
//
// Example: 1234
PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"`
// PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints.
//
// Example: Foresight
PredictedTaxiOutDurationSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource `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,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsByAdvancedSearchWithForesightResponse ¶
func ParseGetFlightsByAdvancedSearchWithForesightResponse(rsp *http.Response) (*GetFlightsByAdvancedSearchWithForesightResponse, error)
ParseGetFlightsByAdvancedSearchWithForesightResponse parses an HTTP response from a GetFlightsByAdvancedSearchWithForesightWithResponse call
func (GetFlightsByAdvancedSearchWithForesightResponse) ContentType ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z FirstPositionTime *time.Time `json:"first_position_time"` // ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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 GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"origin"` // PredictedIn Predicted time of gate arrival event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedIn *time.Time `json:"predicted_in"` // PredictedInSource Source indicator of the predicted time of the gate arrival event. Only available from /foresight endpoints. // // Example: Foresight PredictedInSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `json:"predicted_in_source"` // PredictedOff Predicted time of runway departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOff *time.Time `json:"predicted_off"` // PredictedOffSource Source indicator of the predicted time of the runway departure event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOffSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `json:"predicted_off_source"` // PredictedOn Predicted time of runway arrival event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOn *time.Time `json:"predicted_on"` // PredictedOnSource Source indicator of the predicted time of the runway arrival event. Only available from /foresight endpoints. // // Example: Historical Average PredictedOnSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `json:"predicted_on_source"` // PredictedOut Predicted time of gate departure event. Only available from /foresight endpoints. // // Example: 2021-12-31T19:59:59Z PredictedOut *time.Time `json:"predicted_out"` // PredictedOutSource Source indicator of the predicted time of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedOutSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `json:"predicted_out_source"` // PredictedTaxiOutDuration Predicted duration in seconds of gate departure event. Only available from /foresight endpoints. // // Example: 1234 PredictedTaxiOutDuration *float32 `json:"predicted_taxi_out_duration"` // PredictedTaxiOutDurationSource Source indicator of the predicted duration of the gate departure event. Only available from /foresight endpoints. // // Example: Foresight PredictedTaxiOutDurationSource *GetFlightsByAdvancedSearchWithForesight200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedTaxiOutDurationSource `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,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsByAdvancedSearchWithForesightResponse) GetBody ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsByAdvancedSearchWithForesightResponse) Status ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsByAdvancedSearchWithForesightResponse) StatusCode ¶
func (r GetFlightsByAdvancedSearchWithForesightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange ¶
type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange string
GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange defines parameters for GetFlightsByPositionSearch.
const ( GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeC GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "C" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeD GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "D" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeMinus GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "-" )
Defines values for GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange.
func (GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid ¶
func (e GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange enum.
type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType ¶
type GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType string
GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType defines parameters for GetFlightsByPositionSearch.
const ( GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeA GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "A" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeD GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "D" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeLessThannil GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "<nil>" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeM GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "M" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeO GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "O" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeP GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "P" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeS GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "S" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeV GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "V" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeX GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "X" GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeZ GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "Z" )
Defines values for GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType.
func (GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType) Valid ¶
func (e GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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 GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"`
} `json:"positions"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsByPositionSearchResponse ¶
func ParseGetFlightsByPositionSearchResponse(rsp *http.Response) (*GetFlightsByPositionSearchResponse, error)
ParseGetFlightsByPositionSearchResponse parses an HTTP response from a GetFlightsByPositionSearchWithResponse call
func (GetFlightsByPositionSearchResponse) ContentType ¶
func (r GetFlightsByPositionSearchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8200() *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 GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightsByPositionSearch200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"` } `json:"positions"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsByPositionSearchResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsByPositionSearchResponse) GetBody ¶
func (r GetFlightsByPositionSearchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsByPositionSearchResponse) Status ¶
func (r GetFlightsByPositionSearchResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsByPositionSearchResponse) StatusCode ¶
func (r GetFlightsByPositionSearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeC GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "C" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeD GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "D" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChangeMinus GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange = "-" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange enum.
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeA GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "A" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeD GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "D" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeLessThannil GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "<nil>" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeM GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "M" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeO GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "O" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeP GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "P" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeS GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "S" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeV GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "V" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeX GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "X" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateTypeZ GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType = "Z" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType enum.
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceForesight GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Foresight" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceHistoricalAverage GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "Historical Average" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSourceLessThannil GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource = "<nil>" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource enum.
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceForesight GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Foresight" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceHistoricalAverage GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "Historical Average" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSourceLessThannil GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource = "<nil>" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource enum.
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceForesight GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Foresight" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceHistoricalAverage GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "Historical Average" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSourceLessThannil GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource = "<nil>" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource enum.
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource ¶
type GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource string
GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource defines parameters for GetFlightsBySearch.
const ( GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceForesight GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Foresight" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceHistoricalAverage GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "Historical Average" GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSourceLessThannil GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource = "<nil>" )
Defines values for GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource.
func (GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid ¶
func (e GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
// Example: 2021-12-31T19:59:59Z
FirstPositionTime *time.Time `json:"first_position_time"`
// ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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 GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `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,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsBySearchResponse ¶
func ParseGetFlightsBySearchResponse(rsp *http.Response) (*GetFlightsBySearchResponse, error)
ParseGetFlightsBySearchResponse parses an HTTP response from a GetFlightsBySearchWithResponse call
func (GetFlightsBySearchResponse) ContentType ¶
func (r GetFlightsBySearchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // Example: 2021-12-31T19:59:59Z FirstPositionTime *time.Time `json:"first_position_time"` // ForesightPredictionsAvailable Indicates if Foresight predictions are available for AeroAPI /foresight endpoints. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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 GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsLastPositionUpdateType `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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedInSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOffSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOnSource `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 *GetFlightsBySearch200ApplicationJSONCharsetUTF8ResponseBodyFlightsPredictedOutSource `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,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsBySearchResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsBySearchResponse) GetBody ¶
func (r GetFlightsBySearchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsBySearchResponse) Status ¶
func (r GetFlightsBySearchResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsBySearchResponse) StatusCode ¶
func (r GetFlightsBySearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType ¶
type GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType string
GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType defines parameters for GetFlightsCanonical.
const ( GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentTypeDesignator GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType = "designator" GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentTypeRegistration GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType = "registration" )
Defines values for GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType.
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.
func (GetFlightsCanonicalParamsIdentType) Valid ¶
func (e GetFlightsCanonicalParamsIdentType) Valid() bool
Valid indicates whether the value is a known member of the GetFlightsCanonicalParamsIdentType enum.
type GetFlightsCanonicalResponse ¶
type GetFlightsCanonicalResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Idents []struct {
// Ident Canonical ident
Ident string `json:"ident"`
// IdentType Type of ident given in id
IdentType GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType `json:"ident_type"`
} `json:"idents"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetFlightsCanonicalResponse ¶
func ParseGetFlightsCanonicalResponse(rsp *http.Response) (*GetFlightsCanonicalResponse, error)
ParseGetFlightsCanonicalResponse parses an HTTP response from a GetFlightsCanonicalWithResponse call
func (GetFlightsCanonicalResponse) ContentType ¶
func (r GetFlightsCanonicalResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8200() *struct { Idents []struct { // Ident Canonical ident Ident string `json:"ident"` // IdentType Type of ident given in id IdentType GetFlightsCanonical200ApplicationJSONCharsetUTF8ResponseBodyIdentsIdentType `json:"ident_type"` } `json:"idents"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetFlightsCanonicalResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetFlightsCanonicalResponse) GetBody ¶
func (r GetFlightsCanonicalResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsCanonicalResponse) Status ¶
func (r GetFlightsCanonicalResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Count int `json:"count"`
}
}
func ParseGetFlightsCountBySearchResponse ¶
func ParseGetFlightsCountBySearchResponse(rsp *http.Response) (*GetFlightsCountBySearchResponse, error)
ParseGetFlightsCountBySearchResponse parses an HTTP response from a GetFlightsCountBySearchWithResponse call
func (GetFlightsCountBySearchResponse) ContentType ¶
func (r GetFlightsCountBySearchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetFlightsCountBySearchResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetFlightsCountBySearchResponse) GetApplicationjsonCharsetUTF8200() *struct { Count int `json:"count"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetFlightsCountBySearchResponse) GetBody ¶
func (r GetFlightsCountBySearchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetFlightsCountBySearchResponse) Status ¶
func (r GetFlightsCountBySearchResponse) Status() string
Status returns HTTPResponse.Status
func (GetFlightsCountBySearchResponse) StatusCode ¶
func (r GetFlightsCountBySearchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetHistoryAircraftLastFlight.
const ( GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
func (GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid ¶
func (e GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType enum.
type GetHistoryAircraftLastFlightResponse ¶
type GetHistoryAircraftLastFlightResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `json:"type"`
} `json:"flights"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryAircraftLastFlightResponse ¶
func ParseGetHistoryAircraftLastFlightResponse(rsp *http.Response) (*GetHistoryAircraftLastFlightResponse, error)
ParseGetHistoryAircraftLastFlightResponse parses an HTTP response from a GetHistoryAircraftLastFlightWithResponse call
func (GetHistoryAircraftLastFlightResponse) ContentType ¶
func (r GetHistoryAircraftLastFlightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryAircraftLastFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `json:"type"` } `json:"flights"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryAircraftLastFlightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryAircraftLastFlightResponse) GetBody ¶
func (r GetHistoryAircraftLastFlightResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryAircraftLastFlightResponse) Status ¶
func (r GetHistoryAircraftLastFlightResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryAircraftLastFlightResponse) StatusCode ¶
func (r GetHistoryAircraftLastFlightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetHistoryAirportsFlightsArrivalsCancellations.
const ( GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
func (GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid ¶
func (e GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType enum.
type GetHistoryAirportsFlightsArrivalsCancellationsParams ¶
type GetHistoryAirportsFlightsArrivalsCancellationsParams 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 *GetHistoryAirportsFlightsArrivalsCancellationsParamsType `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 no further than now. 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 no further than now. 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"`
}
GetHistoryAirportsFlightsArrivalsCancellationsParams defines parameters for GetHistoryAirportsFlightsArrivalsCancellations.
type GetHistoryAirportsFlightsArrivalsCancellationsParamsType ¶
type GetHistoryAirportsFlightsArrivalsCancellationsParamsType string
GetHistoryAirportsFlightsArrivalsCancellationsParamsType defines parameters for GetHistoryAirportsFlightsArrivalsCancellations.
const ( GetHistoryAirportsFlightsArrivalsCancellationsParamsTypeAirline GetHistoryAirportsFlightsArrivalsCancellationsParamsType = "Airline" GetHistoryAirportsFlightsArrivalsCancellationsParamsTypeGeneralAviation GetHistoryAirportsFlightsArrivalsCancellationsParamsType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsArrivalsCancellationsParamsType.
func (GetHistoryAirportsFlightsArrivalsCancellationsParamsType) Valid ¶
func (e GetHistoryAirportsFlightsArrivalsCancellationsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsArrivalsCancellationsParamsType enum.
type GetHistoryAirportsFlightsArrivalsCancellationsResponse ¶
type GetHistoryAirportsFlightsArrivalsCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryAirportsFlightsArrivalsCancellationsResponse ¶
func ParseGetHistoryAirportsFlightsArrivalsCancellationsResponse(rsp *http.Response) (*GetHistoryAirportsFlightsArrivalsCancellationsResponse, error)
ParseGetHistoryAirportsFlightsArrivalsCancellationsResponse parses an HTTP response from a GetHistoryAirportsFlightsArrivalsCancellationsWithResponse call
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) ContentType ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryAirportsFlightsArrivalsCancellations200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetBody ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) Status ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryAirportsFlightsArrivalsCancellationsResponse) StatusCode ¶
func (r GetHistoryAirportsFlightsArrivalsCancellationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetHistoryAirportsFlightsArrived.
const ( GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
func (GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid ¶
func (e GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType enum.
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 no further than now. 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 no further than now. 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.
func (GetHistoryAirportsFlightsArrivedParamsType) Valid ¶
func (e GetHistoryAirportsFlightsArrivedParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsArrivedParamsType enum.
type GetHistoryAirportsFlightsArrivedResponse ¶
type GetHistoryAirportsFlightsArrivedResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryAirportsFlightsArrivedResponse ¶
func ParseGetHistoryAirportsFlightsArrivedResponse(rsp *http.Response) (*GetHistoryAirportsFlightsArrivedResponse, error)
ParseGetHistoryAirportsFlightsArrivedResponse parses an HTTP response from a GetHistoryAirportsFlightsArrivedWithResponse call
func (GetHistoryAirportsFlightsArrivedResponse) ContentType ¶
func (r GetHistoryAirportsFlightsArrivedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryAirportsFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryAirportsFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsArrivedResponse) GetBody ¶
func (r GetHistoryAirportsFlightsArrivedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryAirportsFlightsArrivedResponse) Status ¶
func (r GetHistoryAirportsFlightsArrivedResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryAirportsFlightsArrivedResponse) StatusCode ¶
func (r GetHistoryAirportsFlightsArrivedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType ¶
type GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType string
GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType defines parameters for GetHistoryAirportsFlightsDeparted.
const ( GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeAirline GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "Airline" GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeGeneralAviation GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType.
func (GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid ¶
func (e GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType enum.
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 no further than now. 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 no further than now. 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.
func (GetHistoryAirportsFlightsDepartedParamsType) Valid ¶
func (e GetHistoryAirportsFlightsDepartedParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsDepartedParamsType enum.
type GetHistoryAirportsFlightsDepartedResponse ¶
type GetHistoryAirportsFlightsDepartedResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Departures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryAirportsFlightsDepartedResponse ¶
func ParseGetHistoryAirportsFlightsDepartedResponse(rsp *http.Response) (*GetHistoryAirportsFlightsDepartedResponse, error)
ParseGetHistoryAirportsFlightsDepartedResponse parses an HTTP response from a GetHistoryAirportsFlightsDepartedWithResponse call
func (GetHistoryAirportsFlightsDepartedResponse) ContentType ¶
func (r GetHistoryAirportsFlightsDepartedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8200() *struct { Departures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryAirportsFlightsDeparted200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryAirportsFlightsDepartedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsDepartedResponse) GetBody ¶
func (r GetHistoryAirportsFlightsDepartedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryAirportsFlightsDepartedResponse) Status ¶
func (r GetHistoryAirportsFlightsDepartedResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryAirportsFlightsDepartedResponse) StatusCode ¶
func (r GetHistoryAirportsFlightsDepartedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType ¶
type GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType string
GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType defines parameters for GetHistoryAirportsFlightsDeparturesCancellations.
const ( GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeAirline GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "Airline" GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesTypeGeneralAviation GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType.
func (GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid ¶
func (e GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType enum.
type GetHistoryAirportsFlightsDeparturesCancellationsParams ¶
type GetHistoryAirportsFlightsDeparturesCancellationsParams 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 *GetHistoryAirportsFlightsDeparturesCancellationsParamsType `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 no further than now. 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 no further than now. 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"`
}
GetHistoryAirportsFlightsDeparturesCancellationsParams defines parameters for GetHistoryAirportsFlightsDeparturesCancellations.
type GetHistoryAirportsFlightsDeparturesCancellationsParamsType ¶
type GetHistoryAirportsFlightsDeparturesCancellationsParamsType string
GetHistoryAirportsFlightsDeparturesCancellationsParamsType defines parameters for GetHistoryAirportsFlightsDeparturesCancellations.
const ( GetHistoryAirportsFlightsDeparturesCancellationsParamsTypeAirline GetHistoryAirportsFlightsDeparturesCancellationsParamsType = "Airline" GetHistoryAirportsFlightsDeparturesCancellationsParamsTypeGeneralAviation GetHistoryAirportsFlightsDeparturesCancellationsParamsType = "General_Aviation" )
Defines values for GetHistoryAirportsFlightsDeparturesCancellationsParamsType.
func (GetHistoryAirportsFlightsDeparturesCancellationsParamsType) Valid ¶
func (e GetHistoryAirportsFlightsDeparturesCancellationsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryAirportsFlightsDeparturesCancellationsParamsType enum.
type GetHistoryAirportsFlightsDeparturesCancellationsResponse ¶
type GetHistoryAirportsFlightsDeparturesCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Departures []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryAirportsFlightsDeparturesCancellationsResponse ¶
func ParseGetHistoryAirportsFlightsDeparturesCancellationsResponse(rsp *http.Response) (*GetHistoryAirportsFlightsDeparturesCancellationsResponse, error)
ParseGetHistoryAirportsFlightsDeparturesCancellationsResponse parses an HTTP response from a GetHistoryAirportsFlightsDeparturesCancellationsWithResponse call
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) ContentType ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Departures []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryAirportsFlightsDeparturesCancellations200ApplicationJSONCharsetUTF8ResponseBodyDeparturesType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetBody ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) Status ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryAirportsFlightsDeparturesCancellationsResponse) StatusCode ¶
func (r GetHistoryAirportsFlightsDeparturesCancellationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetHistoryFlight.
const ( GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
func (GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid ¶
func (e GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType enum.
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.
func (GetHistoryFlightMapParamsLayerOff) Valid ¶
func (e GetHistoryFlightMapParamsLayerOff) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightMapParamsLayerOff enum.
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.
func (GetHistoryFlightMapParamsLayerOn) Valid ¶
func (e GetHistoryFlightMapParamsLayerOn) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightMapParamsLayerOn enum.
type GetHistoryFlightMapResponse ¶
type GetHistoryFlightMapResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Map []byte `json:"map"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryFlightMapResponse ¶
func ParseGetHistoryFlightMapResponse(rsp *http.Response) (*GetHistoryFlightMapResponse, error)
ParseGetHistoryFlightMapResponse parses an HTTP response from a GetHistoryFlightMapWithResponse call
func (GetHistoryFlightMapResponse) ContentType ¶
func (r GetHistoryFlightMapResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8200() *struct { Map []byte `json:"map"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryFlightMapResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryFlightMapResponse) GetBody ¶
func (r GetHistoryFlightMapResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryFlightMapResponse) Status ¶
func (r GetHistoryFlightMapResponse) Status() string
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 ( GetHistoryFlightParamsIdentTypeDesignator GetHistoryFlightParamsIdentType = "designator" GetHistoryFlightParamsIdentTypeFaFlightId GetHistoryFlightParamsIdentType = "fa_flight_id" GetHistoryFlightParamsIdentTypeRegistration GetHistoryFlightParamsIdentType = "registration" )
Defines values for GetHistoryFlightParamsIdentType.
func (GetHistoryFlightParamsIdentType) Valid ¶
func (e GetHistoryFlightParamsIdentType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightParamsIdentType enum.
type GetHistoryFlightResponse ¶
type GetHistoryFlightResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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.
//
// Example: true
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryFlightResponse ¶
func ParseGetHistoryFlightResponse(rsp *http.Response) (*GetHistoryFlightResponse, error)
ParseGetHistoryFlightResponse parses an HTTP response from a GetHistoryFlightWithResponse call
func (GetHistoryFlightResponse) ContentType ¶
func (r GetHistoryFlightResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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. // // Example: true 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryFlight200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryFlightResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryFlightResponse) GetBody ¶
func (r GetHistoryFlightResponse) GetBody() []byte
GetBody returns the raw response body bytes
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryFlightRouteResponse ¶
func ParseGetHistoryFlightRouteResponse(rsp *http.Response) (*GetHistoryFlightRouteResponse, error)
ParseGetHistoryFlightRouteResponse parses an HTTP response from a GetHistoryFlightRouteWithResponse call
func (GetHistoryFlightRouteResponse) ContentType ¶
func (r GetHistoryFlightRouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryFlightRouteResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryFlightRouteResponse) GetBody ¶
func (r GetHistoryFlightRouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryFlightRouteResponse) Status ¶
func (r GetHistoryFlightRouteResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryFlightRouteResponse) StatusCode ¶
func (r GetHistoryFlightRouteResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange ¶
type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange string
GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange defines parameters for GetHistoryFlightTrack.
const ( GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeC GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "C" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeD GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "D" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChangeMinus GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange = "-" )
Defines values for GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange.
func (GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid ¶
func (e GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange enum.
type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType ¶
type GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType string
GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType defines parameters for GetHistoryFlightTrack.
const ( GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeA GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "A" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeD GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "D" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeLessThannil GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "<nil>" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeM GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "M" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeO GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "O" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeP GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "P" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeS GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "S" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeV GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "V" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeX GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "X" GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateTypeZ GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType = "Z" )
Defines values for GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType.
func (GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType) Valid ¶
func (e GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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,omitempty"`
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 GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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
//
// Example: 2021-12-31T19:59:59Z
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 *GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"`
} `json:"positions,omitempty"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryFlightTrackResponse ¶
func ParseGetHistoryFlightTrackResponse(rsp *http.Response) (*GetHistoryFlightTrackResponse, error)
ParseGetHistoryFlightTrackResponse parses an HTTP response from a GetHistoryFlightTrackWithResponse call
func (GetHistoryFlightTrackResponse) ContentType ¶
func (r GetHistoryFlightTrackResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8200() *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,omitempty"` 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 GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsAltitudeChange `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 // // Example: 2021-12-31T19:59:59Z 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 *GetHistoryFlightTrack200ApplicationJSONCharsetUTF8ResponseBodyPositionsUpdateType `json:"update_type"` } `json:"positions,omitempty"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryFlightTrackResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryFlightTrackResponse) GetBody ¶
func (r GetHistoryFlightTrackResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryFlightTrackResponse) Status ¶
func (r GetHistoryFlightTrackResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryFlightTrackResponse) StatusCode ¶
func (r GetHistoryFlightTrackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetHistoryFlightsBetweenAirports.
const ( GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
func (GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid ¶
func (e GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType enum.
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 no further than now. 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 no further than now. 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.
func (GetHistoryFlightsBetweenAirportsParamsType) Valid ¶
func (e GetHistoryFlightsBetweenAirportsParamsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryFlightsBetweenAirportsParamsType enum.
type GetHistoryFlightsBetweenAirportsResponse ¶
type GetHistoryFlightsBetweenAirportsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryFlightsBetweenAirportsResponse ¶
func ParseGetHistoryFlightsBetweenAirportsResponse(rsp *http.Response) (*GetHistoryFlightsBetweenAirportsResponse, error)
ParseGetHistoryFlightsBetweenAirportsResponse parses an HTTP response from a GetHistoryFlightsBetweenAirportsWithResponse call
func (GetHistoryFlightsBetweenAirportsResponse) ContentType ¶
func (r GetHistoryFlightsBetweenAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryFlightsBetweenAirports200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryFlightsBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryFlightsBetweenAirportsResponse) GetBody ¶
func (r GetHistoryFlightsBetweenAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryFlightsBetweenAirportsResponse) Status ¶
func (r GetHistoryFlightsBetweenAirportsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryFlightsBetweenAirportsResponse) StatusCode ¶
func (r GetHistoryFlightsBetweenAirportsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType ¶
type GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType string
GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType defines parameters for GetHistoryOperatorsFlights.
const ( GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeAirline GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "Airline" GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsTypeGeneralAviation GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType = "General_Aviation" )
Defines values for GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType.
func (GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid ¶
func (e GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType enum.
type GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType ¶
type GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType string
GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType defines parameters for GetHistoryOperatorsFlightsCancellations.
const ( GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsTypeAirline GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType = "Airline" GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsTypeGeneralAviation GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType = "General_Aviation" )
Defines values for GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType.
func (GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType) Valid ¶
func (e GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType) Valid() bool
Valid indicates whether the value is a known member of the GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType enum.
type GetHistoryOperatorsFlightsCancellationsParams ¶
type GetHistoryOperatorsFlightsCancellationsParams 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 no further than now. 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 no further than now. 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"`
}
GetHistoryOperatorsFlightsCancellationsParams defines parameters for GetHistoryOperatorsFlightsCancellations.
type GetHistoryOperatorsFlightsCancellationsResponse ¶
type GetHistoryOperatorsFlightsCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Cancellations []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType `json:"type"`
} `json:"cancellations"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetHistoryOperatorsFlightsCancellationsResponse ¶
func ParseGetHistoryOperatorsFlightsCancellationsResponse(rsp *http.Response) (*GetHistoryOperatorsFlightsCancellationsResponse, error)
ParseGetHistoryOperatorsFlightsCancellationsResponse parses an HTTP response from a GetHistoryOperatorsFlightsCancellationsWithResponse call
func (GetHistoryOperatorsFlightsCancellationsResponse) ContentType ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Cancellations []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryOperatorsFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType `json:"type"` } `json:"cancellations"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetHistoryOperatorsFlightsCancellationsResponse) GetBody ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryOperatorsFlightsCancellationsResponse) Status ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryOperatorsFlightsCancellationsResponse) StatusCode ¶
func (r GetHistoryOperatorsFlightsCancellationsResponse) StatusCode() int
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 no further than now. 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 no further than now. 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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Flights []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetHistoryOperatorsFlightsResponse ¶
func ParseGetHistoryOperatorsFlightsResponse(rsp *http.Response) (*GetHistoryOperatorsFlightsResponse, error)
ParseGetHistoryOperatorsFlightsResponse parses an HTTP response from a GetHistoryOperatorsFlightsWithResponse call
func (GetHistoryOperatorsFlightsResponse) ContentType ¶
func (r GetHistoryOperatorsFlightsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8200() *struct { Flights []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetHistoryOperatorsFlights200ApplicationJSONCharsetUTF8ResponseBodyFlightsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetHistoryOperatorsFlightsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetHistoryOperatorsFlightsResponse) GetBody ¶
func (r GetHistoryOperatorsFlightsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetHistoryOperatorsFlightsResponse) Status ¶
func (r GetHistoryOperatorsFlightsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHistoryOperatorsFlightsResponse) StatusCode ¶
func (r GetHistoryOperatorsFlightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection ¶
type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection string
GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection defines parameters for GetNearbyAirports.
const ( GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionE GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "E" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionN GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "N" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionNE GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "NE" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionNW GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "NW" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionS GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "S" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionSE GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "SE" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionSW GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "SW" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirectionW GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection = "W" )
Defines values for GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection.
type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType ¶
type GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType string
GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType defines parameters for GetNearbyAirports.
const ( GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeAirport GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Airport" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeBalloonport GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Balloonport" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeGliderport GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Gliderport" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeHeliport GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Heliport" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeLessThannil GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "<nil>" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeSeaplaneBase GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Seaplane Base" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeStolport GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Stolport" GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsTypeUltralight GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType = "Ultralight" )
Defines values for GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Airports []struct {
// AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code
//
// Example: KHOU
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
//
// Example: HOU
CodeIata *string `json:"code_iata,omitempty"`
// CodeIcao ICAO identifier for the airport if known
//
// Example: KHOU
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID identifier for the airport if known
//
// Example: HOU
CodeLid *string `json:"code_lid,omitempty"`
// 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 GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection `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
//
// Example: William P Hobby
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
//
// Example: America/Chicago
Timezone string `json:"timezone"`
// Type Type of airport
Type *GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType `json:"type,omitempty"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetNearbyAirportsResponse ¶
func ParseGetNearbyAirportsResponse(rsp *http.Response) (*GetNearbyAirportsResponse, error)
ParseGetNearbyAirportsResponse parses an HTTP response from a GetNearbyAirportsWithResponse call
func (GetNearbyAirportsResponse) ContentType ¶
func (r GetNearbyAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8200() *struct { Airports []struct { // AirportCode Default airport identifier, generally ICAO but may be IATA or LID if the airport lacks an ICAO code // // Example: KHOU 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 // // Example: HOU CodeIata *string `json:"code_iata,omitempty"` // CodeIcao ICAO identifier for the airport if known // // Example: KHOU CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID identifier for the airport if known // // Example: HOU CodeLid *string `json:"code_lid,omitempty"` // 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 GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsDirection `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 // // Example: William P Hobby 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 // // Example: America/Chicago Timezone string `json:"timezone"` // Type Type of airport Type *GetNearbyAirports200ApplicationJSONCharsetUTF8ResponseBodyAirportsType `json:"type,omitempty"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetNearbyAirportsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetNearbyAirportsResponse) GetBody ¶
func (r GetNearbyAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetOperatorFlights.
const ( GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType ¶
type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType string
GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType defines parameters for GetOperatorFlights.
const ( GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteTypeAirline GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType = "Airline" GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteTypeGeneralAviation GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType = "General_Aviation" )
Defines values for GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType.
type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType ¶
type GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType string
GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType defines parameters for GetOperatorFlights.
const ( GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledTypeAirline GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType = "Airline" GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledTypeGeneralAviation GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType = "General_Aviation" )
Defines values for GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType.
type GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType ¶
type GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType string
GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType defines parameters for GetOperatorFlightsArrived.
const ( GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeAirline GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "Airline" GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsTypeGeneralAviation GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType = "General_Aviation" )
Defines values for GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType.
func (GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid ¶
func (e GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType) Valid() bool
Valid indicates whether the value is a known member of the GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsArrivedResponse ¶
func ParseGetOperatorFlightsArrivedResponse(rsp *http.Response) (*GetOperatorFlightsArrivedResponse, error)
ParseGetOperatorFlightsArrivedResponse parses an HTTP response from a GetOperatorFlightsArrivedWithResponse call
func (GetOperatorFlightsArrivedResponse) ContentType ¶
func (r GetOperatorFlightsArrivedResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlightsArrived200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsArrivedResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsArrivedResponse) GetBody ¶
func (r GetOperatorFlightsArrivedResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsArrivedResponse) Status ¶
func (r GetOperatorFlightsArrivedResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperatorFlightsArrivedResponse) StatusCode ¶
func (r GetOperatorFlightsArrivedResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType ¶
type GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType string
GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType defines parameters for GetOperatorFlightsCancellations.
const ( GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsTypeAirline GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType = "Airline" GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsTypeGeneralAviation GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType = "General_Aviation" )
Defines values for GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType.
func (GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType) Valid ¶
func (e GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType) Valid() bool
Valid indicates whether the value is a known member of the GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType enum.
type GetOperatorFlightsCancellationsParams ¶
type GetOperatorFlightsCancellationsParams 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"`
}
GetOperatorFlightsCancellationsParams defines parameters for GetOperatorFlightsCancellations.
type GetOperatorFlightsCancellationsResponse ¶
type GetOperatorFlightsCancellationsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Cancellations []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType `json:"type"`
} `json:"cancellations"`
// 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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsCancellationsResponse ¶
func ParseGetOperatorFlightsCancellationsResponse(rsp *http.Response) (*GetOperatorFlightsCancellationsResponse, error)
ParseGetOperatorFlightsCancellationsResponse parses an HTTP response from a GetOperatorFlightsCancellationsWithResponse call
func (GetOperatorFlightsCancellationsResponse) ContentType ¶
func (r GetOperatorFlightsCancellationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8200() *struct { Cancellations []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlightsCancellations200ApplicationJSONCharsetUTF8ResponseBodyCancellationsType `json:"type"` } `json:"cancellations"` // 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsCancellationsResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCancellationsResponse) GetBody ¶
func (r GetOperatorFlightsCancellationsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsCancellationsResponse) Status ¶
func (r GetOperatorFlightsCancellationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperatorFlightsCancellationsResponse) StatusCode ¶
func (r GetOperatorFlightsCancellationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperatorFlightsCountResponse ¶
type GetOperatorFlightsCountResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsCountResponse ¶
func ParseGetOperatorFlightsCountResponse(rsp *http.Response) (*GetOperatorFlightsCountResponse, error)
ParseGetOperatorFlightsCountResponse parses an HTTP response from a GetOperatorFlightsCountWithResponse call
func (GetOperatorFlightsCountResponse) ContentType ¶
func (r GetOperatorFlightsCountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8200() *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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsCountResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsCountResponse) GetBody ¶
func (r GetOperatorFlightsCountResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsCountResponse) Status ¶
func (r GetOperatorFlightsCountResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperatorFlightsCountResponse) StatusCode ¶
func (r GetOperatorFlightsCountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType ¶
type GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType string
GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType defines parameters for GetOperatorFlightsEnroute.
const ( GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteTypeAirline GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType = "Airline" GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteTypeGeneralAviation GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType = "General_Aviation" )
Defines values for GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Enroute []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsEnrouteResponse ¶
func ParseGetOperatorFlightsEnrouteResponse(rsp *http.Response) (*GetOperatorFlightsEnrouteResponse, error)
ParseGetOperatorFlightsEnrouteResponse parses an HTTP response from a GetOperatorFlightsEnrouteWithResponse call
func (GetOperatorFlightsEnrouteResponse) ContentType ¶
func (r GetOperatorFlightsEnrouteResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8200() *struct { Enroute []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlightsEnroute200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsEnrouteResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsEnrouteResponse) GetBody ¶
func (r GetOperatorFlightsEnrouteResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsEnrouteResponse) Status ¶
func (r GetOperatorFlightsEnrouteResponse) Status() string
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Arrivals []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `json:"type"`
} `json:"arrivals"`
Enroute []struct {
// ActualIn Actual gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType `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.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType `json:"type"`
} `json:"scheduled"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsResponse ¶
func ParseGetOperatorFlightsResponse(rsp *http.Response) (*GetOperatorFlightsResponse, error)
ParseGetOperatorFlightsResponse parses an HTTP response from a GetOperatorFlightsWithResponse call
func (GetOperatorFlightsResponse) ContentType ¶
func (r GetOperatorFlightsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8200() *struct { Arrivals []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyArrivalsType `json:"type"` } `json:"arrivals"` Enroute []struct { // ActualIn Actual gate arrival time. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyEnrouteType `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. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlights200ApplicationJSONCharsetUTF8ResponseBodyScheduledType `json:"type"` } `json:"scheduled"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsResponse) GetBody ¶
func (r GetOperatorFlightsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsResponse) Status ¶
func (r GetOperatorFlightsResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperatorFlightsResponse) StatusCode ¶
func (r GetOperatorFlightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType ¶
type GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType string
GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType defines parameters for GetOperatorFlightsScheduled.
const ( GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledTypeAirline GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType = "Airline" GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledTypeGeneralAviation GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType = "General_Aviation" )
Defines values for GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType.
func (GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType) Valid ¶
func (e GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType) Valid() bool
Valid indicates whether the value is a known member of the GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType enum.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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.
//
//
// Example: 2021-12-31T19:59:59Z
ActualIn *time.Time `json:"actual_in"`
// ActualOff Actual runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOff *time.Time `json:"actual_off"`
// ActualOn Actual runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOn *time.Time `json:"actual_on"`
// ActualOut Actual gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ActualOut *time.Time `json:"actual_out"`
// ActualRunwayOff Actual departure runway at origin, when known
ActualRunwayOff *string `json:"actual_runway_off,omitempty"`
// ActualRunwayOn Actual arrival runway at destination, when known
ActualRunwayOn *string `json:"actual_runway_on,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `json:"destination"`
// Diverted Flag indicating whether this flight was diverted.
Diverted bool `json:"diverted"`
// EstimatedIn Estimated gate arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedIn *time.Time `json:"estimated_in"`
// EstimatedOff Estimated runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOff *time.Time `json:"estimated_off"`
// EstimatedOn Estimated runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
EstimatedOn *time.Time `json:"estimated_on"`
// EstimatedOut Estimated gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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,omitempty"`
// IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights)
IdentIcao *string `json:"ident_icao,omitempty"`
// 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,omitempty"`
// 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
//
//
// Example: New York
City *string `json:"city,omitempty"`
// 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,omitempty"`
// CodeIcao ICAO code
CodeIcao *string `json:"code_icao,omitempty"`
// CodeLid LID code
CodeLid *string `json:"code_lid,omitempty"`
// Name Common name of airport
//
//
// Example: LaGuardia
Name *string `json:"name,omitempty"`
// Timezone Applicable timezone for the airport, in the TZ database format
//
//
// Example: America/New_York
Timezone *string `json:"timezone,omitempty"`
} `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.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn *time.Time `json:"scheduled_in"`
// ScheduledOff Scheduled runway departure time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOff *time.Time `json:"scheduled_off"`
// ScheduledOn Scheduled runway arrival time.
//
//
// Example: 2021-12-31T19:59:59Z
ScheduledOn *time.Time `json:"scheduled_on"`
// ScheduledOut Scheduled gate departure time.
//
//
// Example: 2021-12-31T19:59:59Z
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 GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType `json:"type"`
} `json:"scheduled"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorFlightsScheduledResponse ¶
func ParseGetOperatorFlightsScheduledResponse(rsp *http.Response) (*GetOperatorFlightsScheduledResponse, error)
ParseGetOperatorFlightsScheduledResponse parses an HTTP response from a GetOperatorFlightsScheduledWithResponse call
func (GetOperatorFlightsScheduledResponse) ContentType ¶
func (r GetOperatorFlightsScheduledResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8200() *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. // // // Example: 2021-12-31T19:59:59Z ActualIn *time.Time `json:"actual_in"` // ActualOff Actual runway departure time. // // // Example: 2021-12-31T19:59:59Z ActualOff *time.Time `json:"actual_off"` // ActualOn Actual runway arrival time. // // // Example: 2021-12-31T19:59:59Z ActualOn *time.Time `json:"actual_on"` // ActualOut Actual gate departure time. // // // Example: 2021-12-31T19:59:59Z ActualOut *time.Time `json:"actual_out"` // ActualRunwayOff Actual departure runway at origin, when known ActualRunwayOff *string `json:"actual_runway_off,omitempty"` // ActualRunwayOn Actual arrival runway at destination, when known ActualRunwayOn *string `json:"actual_runway_on,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `json:"destination"` // Diverted Flag indicating whether this flight was diverted. Diverted bool `json:"diverted"` // EstimatedIn Estimated gate arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedIn *time.Time `json:"estimated_in"` // EstimatedOff Estimated runway departure time. // // // Example: 2021-12-31T19:59:59Z EstimatedOff *time.Time `json:"estimated_off"` // EstimatedOn Estimated runway arrival time. // // // Example: 2021-12-31T19:59:59Z EstimatedOn *time.Time `json:"estimated_on"` // EstimatedOut Estimated gate departure time. // // // Example: 2021-12-31T19:59:59Z 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,omitempty"` // IdentIcao The ICAO operator code followed by the flight number for the flight (for commercial flights) IdentIcao *string `json:"ident_icao,omitempty"` // 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,omitempty"` // 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 // // // Example: New York City *string `json:"city,omitempty"` // 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,omitempty"` // CodeIcao ICAO code CodeIcao *string `json:"code_icao,omitempty"` // CodeLid LID code CodeLid *string `json:"code_lid,omitempty"` // Name Common name of airport // // // Example: LaGuardia Name *string `json:"name,omitempty"` // Timezone Applicable timezone for the airport, in the TZ database format // // // Example: America/New_York Timezone *string `json:"timezone,omitempty"` } `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. // // // Example: 2021-12-31T19:59:59Z ScheduledIn *time.Time `json:"scheduled_in"` // ScheduledOff Scheduled runway departure time. // // // Example: 2021-12-31T19:59:59Z ScheduledOff *time.Time `json:"scheduled_off"` // ScheduledOn Scheduled runway arrival time. // // // Example: 2021-12-31T19:59:59Z ScheduledOn *time.Time `json:"scheduled_on"` // ScheduledOut Scheduled gate departure time. // // // Example: 2021-12-31T19:59:59Z 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 GetOperatorFlightsScheduled200ApplicationJSONCharsetUTF8ResponseBodyScheduledType `json:"type"` } `json:"scheduled"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorFlightsScheduledResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorFlightsScheduledResponse) GetBody ¶
func (r GetOperatorFlightsScheduledResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorFlightsScheduledResponse) Status ¶
func (r GetOperatorFlightsScheduledResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperatorFlightsScheduledResponse) StatusCode ¶
func (r GetOperatorFlightsScheduledResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperatorResponse ¶
type GetOperatorResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
// Alternatives An array of other possible operator matches
Alternatives *[]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"`
} `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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorResponse ¶
func ParseGetOperatorResponse(rsp *http.Response) (*GetOperatorResponse, error)
ParseGetOperatorResponse parses an HTTP response from a GetOperatorWithResponse call
func (GetOperatorResponse) ContentType ¶
func (r GetOperatorResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8200() *struct { // Alternatives An array of other possible operator matches Alternatives *[]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"` } `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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorResponse) GetBody ¶
func (r GetOperatorResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType ¶
type GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType string
GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType defines parameters for GetOperatorsCanonical.
const ( GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdTypeIata GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType = "iata" GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdTypeIcao GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType = "icao" )
Defines values for GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType.
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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *struct {
Operators []struct {
// Id Operator id for use in the API
Id string `json:"id"`
// IdType Operator id type
IdType GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType `json:"id_type"`
} `json:"operators"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseGetOperatorsCanonicalResponse ¶
func ParseGetOperatorsCanonicalResponse(rsp *http.Response) (*GetOperatorsCanonicalResponse, error)
ParseGetOperatorsCanonicalResponse parses an HTTP response from a GetOperatorsCanonicalWithResponse call
func (GetOperatorsCanonicalResponse) ContentType ¶
func (r GetOperatorsCanonicalResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8200() *struct { Operators []struct { // Id Operator id for use in the API Id string `json:"id"` // IdType Operator id type IdType GetOperatorsCanonical200ApplicationJSONCharsetUTF8ResponseBodyOperatorsIdType `json:"id_type"` } `json:"operators"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r GetOperatorsCanonicalResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (GetOperatorsCanonicalResponse) GetBody ¶
func (r GetOperatorsCanonicalResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetOperatorsCanonicalResponse) Status ¶
func (r GetOperatorsCanonicalResponse) Status() string
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.
func (GetRoutesBetweenAirportsParamsSortBy) Valid ¶
func (e GetRoutesBetweenAirportsParamsSortBy) Valid() bool
Valid indicates whether the value is a known member of the GetRoutesBetweenAirportsParamsSortBy enum.
type GetRoutesBetweenAirportsResponse ¶
type GetRoutesBetweenAirportsResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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
//
// Example: 2021-12-31T19:59:59Z
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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetRoutesBetweenAirportsResponse ¶
func ParseGetRoutesBetweenAirportsResponse(rsp *http.Response) (*GetRoutesBetweenAirportsResponse, error)
ParseGetRoutesBetweenAirportsResponse parses an HTTP response from a GetRoutesBetweenAirportsWithResponse call
func (GetRoutesBetweenAirportsResponse) ContentType ¶
func (r GetRoutesBetweenAirportsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8200() *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 // // Example: 2021-12-31T19:59:59Z 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetRoutesBetweenAirportsResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetRoutesBetweenAirportsResponse) GetBody ¶
func (r GetRoutesBetweenAirportsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetRoutesBetweenAirportsResponse) Status ¶
func (r GetRoutesBetweenAirportsResponse) Status() string
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 *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
// ApplicationjsonCharsetUTF8200 the response for an HTTP 200 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8200 *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
//
// Example: 2021-12-31T19:59:59Z
ScheduledIn time.Time `json:"scheduled_in"`
// ScheduledOut Scheduled time of departure from gate
//
// Example: 2021-12-31T19:59:59Z
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"`
}
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseGetSchedulesByDateResponse ¶
func ParseGetSchedulesByDateResponse(rsp *http.Response) (*GetSchedulesByDateResponse, error)
ParseGetSchedulesByDateResponse parses an HTTP response from a GetSchedulesByDateWithResponse call
func (GetSchedulesByDateResponse) ContentType ¶
func (r GetSchedulesByDateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8200 ¶
func (r GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8200() *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 // // Example: 2021-12-31T19:59:59Z ScheduledIn time.Time `json:"scheduled_in"` // ScheduledOut Scheduled time of departure from gate // // Example: 2021-12-31T19:59:59Z 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"` }
GetApplicationjsonCharsetUTF8200 returns the response for an HTTP 200 `application/json; charset=UTF-8` response
func (GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r GetSchedulesByDateResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (GetSchedulesByDateResponse) GetBody ¶
func (r GetSchedulesByDateResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSchedulesByDateResponse) Status ¶
func (r GetSchedulesByDateResponse) Status() string
Status returns HTTPResponse.Status
func (GetSchedulesByDateResponse) StatusCode ¶
func (r GetSchedulesByDateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PostFlightsByIdentApplicationJSONCharsetUTF8Body ¶
type PostFlightsByIdentApplicationJSONCharsetUTF8Body struct {
// AircraftType Aircraft type ICAO code.
//
// Example: C162
AircraftType string `json:"aircraft_type"`
// Airspeed Cruising airspeed (knots).
//
// Example: 86
Airspeed *int `json:"airspeed,omitempty"`
// Altitude Cruising altitude (feet).
//
// Example: 3500
Altitude *int `json:"altitude,omitempty"`
// Destination Destination airport ICAO code or LID.
//
// Example: 50R
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.
//
//
// Example: 2021-10-16T21:30:00Z
IntendedOff time.Time `json:"intended_off"`
// IntendedOn Intended runway arrival time of flight.
//
// Example: 2021-10-16T22:50:00Z
IntendedOn time.Time `json:"intended_on"`
// Origin Origin airport ICAO code or LID.
//
// Example: KSGR
Origin string `json:"origin"`
// Route Flight route as a series of space-separate waypoints.
//
// Example: MAPGP VICUC
Route *string `json:"route,omitempty"`
}
PostFlightsByIdentApplicationJSONCharsetUTF8Body defines parameters for PostFlightsByIdent.
type PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody ¶
type PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody PostFlightsByIdentApplicationJSONCharsetUTF8Body
PostFlightsByIdentApplicationJSONCharsetUTF8RequestBody defines body for PostFlightsByIdent for application/json; charset=UTF-8 ContentType.
type PostFlightsByIdentResponse ¶
type PostFlightsByIdentResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParsePostFlightsByIdentResponse ¶
func ParsePostFlightsByIdentResponse(rsp *http.Response) (*PostFlightsByIdentResponse, error)
ParsePostFlightsByIdentResponse parses an HTTP response from a PostFlightsByIdentWithResponse call
func (PostFlightsByIdentResponse) ContentType ¶
func (r PostFlightsByIdentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PostFlightsByIdentResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r PostFlightsByIdentResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (PostFlightsByIdentResponse) GetBody ¶
func (r PostFlightsByIdentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PostFlightsByIdentResponse) Status ¶
func (r PostFlightsByIdentResponse) Status() string
Status returns HTTPResponse.Status
func (PostFlightsByIdentResponse) StatusCode ¶
func (r PostFlightsByIdentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SetAlertsEndpointApplicationJSONCharsetUTF8Body ¶
type SetAlertsEndpointApplicationJSONCharsetUTF8Body struct {
// Url Default account-wide URL that will be POSTed to for flight alerts.
Url *string `json:"url"`
}
SetAlertsEndpointApplicationJSONCharsetUTF8Body defines parameters for SetAlertsEndpoint.
type SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody ¶
type SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody SetAlertsEndpointApplicationJSONCharsetUTF8Body
SetAlertsEndpointApplicationJSONCharsetUTF8RequestBody defines body for SetAlertsEndpoint for application/json; charset=UTF-8 ContentType.
type SetAlertsEndpointResponse ¶
type SetAlertsEndpointResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
}
func ParseSetAlertsEndpointResponse ¶
func ParseSetAlertsEndpointResponse(rsp *http.Response) (*SetAlertsEndpointResponse, error)
ParseSetAlertsEndpointResponse parses an HTTP response from a SetAlertsEndpointWithResponse call
func (SetAlertsEndpointResponse) ContentType ¶
func (r SetAlertsEndpointResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r SetAlertsEndpointResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (SetAlertsEndpointResponse) GetBody ¶
func (r SetAlertsEndpointResponse) GetBody() []byte
GetBody returns the raw response body bytes
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 UpdateAlertApplicationJSONCharsetUTF8Body ¶
type UpdateAlertApplicationJSONCharsetUTF8Body struct {
// AircraftType Aircraft type ICAO code to alert on.
AircraftType *string `json:"aircraft_type,omitempty"`
// Destination Destination airport ICAO, IATA, or LID code to alert on.
Destination *string `json:"destination,omitempty"`
// Enabled Whether alert is enabled.
Enabled bool `json:"enabled"`
// End End date of alert (inclusive). Should be in departure airport's
// timezone.
End *openapi_types.Date `json:"end,omitempty"`
// 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,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingArrival *[]int `json:"impending_arrival,omitempty"`
// 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.
//
//
// Example: [5,10,15]
ImpendingDeparture *[]int `json:"impending_departure,omitempty"`
// 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,omitempty"`
// Start Start date of alert. Should be in departure airport's
// timezone.
Start *openapi_types.Date `json:"start,omitempty"`
// 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,omitempty"`
}
UpdateAlertApplicationJSONCharsetUTF8Body defines parameters for UpdateAlert.
type UpdateAlertApplicationJSONCharsetUTF8RequestBody ¶
type UpdateAlertApplicationJSONCharsetUTF8RequestBody UpdateAlertApplicationJSONCharsetUTF8Body
UpdateAlertApplicationJSONCharsetUTF8RequestBody defines body for UpdateAlert for application/json; charset=UTF-8 ContentType.
type UpdateAlertResponse ¶
type UpdateAlertResponse struct {
Body []byte
HTTPResponse *http.Response
// ApplicationjsonCharsetUTF8400 the response for an HTTP 400 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8400 *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"`
}
// ApplicationjsonCharsetUTF8404 the response for an HTTP 404 `application/json; charset=UTF-8` response
ApplicationjsonCharsetUTF8404 *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"`
}
}
func ParseUpdateAlertResponse ¶
func ParseUpdateAlertResponse(rsp *http.Response) (*UpdateAlertResponse, error)
ParseUpdateAlertResponse parses an HTTP response from a UpdateAlertWithResponse call
func (UpdateAlertResponse) ContentType ¶
func (r UpdateAlertResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateAlertResponse) GetApplicationjsonCharsetUTF8400 ¶
func (r UpdateAlertResponse) GetApplicationjsonCharsetUTF8400() *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"` }
GetApplicationjsonCharsetUTF8400 returns the response for an HTTP 400 `application/json; charset=UTF-8` response
func (UpdateAlertResponse) GetApplicationjsonCharsetUTF8404 ¶
func (r UpdateAlertResponse) GetApplicationjsonCharsetUTF8404() *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"` }
GetApplicationjsonCharsetUTF8404 returns the response for an HTTP 404 `application/json; charset=UTF-8` response
func (UpdateAlertResponse) GetBody ¶
func (r UpdateAlertResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateAlertResponse) Status ¶
func (r UpdateAlertResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateAlertResponse) StatusCode ¶
func (r UpdateAlertResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode