View Source GoogleApi.TravelImpactModel.V1.Model.FlightWithEmissions (google_api_travel_impact_model v0.2.0)

Direct flight with emission estimates.

Attributes

  • emissionsGramsPerPax (type: GoogleApi.TravelImpactModel.V1.Model.EmissionsGramsPerPax.t, default: nil) - Optional. Per-passenger emission estimate numbers. Will not be present if emissions could not be computed. For the list of reasons why emissions could not be computed, see ComputeFlightEmissions. Note this field is currently equivalent to ttw_emissions_grams_per_pax until TIM version 1.X.0 which will update this to be total wtw emissions aka wtt_emissions_grams_per_pax + ttw_emissions_grams_per_pax.
  • flight (type: GoogleApi.TravelImpactModel.V1.Model.Flight.t, default: nil) - Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.TravelImpactModel.V1.Model.FlightWithEmissions{
  emissionsGramsPerPax:
    GoogleApi.TravelImpactModel.V1.Model.EmissionsGramsPerPax.t() | nil,
  flight: GoogleApi.TravelImpactModel.V1.Model.Flight.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.