GoogleApi.TravelImpactModel.V1.Model.Flight (google_api_travel_impact_model v0.3.1)

View Source

All details related to a single request item for a direct flight emission estimates.

Attributes

  • departureDate (type: GoogleApi.TravelImpactModel.V1.Model.Date.t, default: nil) - Required. Date of the flight in the time zone of the origin airport. Must be a date in the present or future.
  • destination (type: String.t, default: nil) - Required. IATA airport code for flight destination, e.g. "JFK".
  • flightNumber (type: integer(), default: nil) - Required. Flight number, e.g. 324.
  • operatingCarrierCode (type: String.t, default: nil) - Required. IATA carrier code, e.g. "AA".
  • origin (type: String.t, default: nil) - Required. IATA airport code for flight origin, e.g. "LHR".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.TravelImpactModel.V1.Model.Flight{
  departureDate: GoogleApi.TravelImpactModel.V1.Model.Date.t() | nil,
  destination: String.t() | nil,
  flightNumber: integer() | nil,
  operatingCarrierCode: String.t() | nil,
  origin: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.