You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.</p>
82
+
<pclass="firstline">Stateless method to retrieve emission estimates. Details on how emission estimates are computed are in [GitHub](https://github.com/google/travel-impact-model) The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.</p>
<pclass="firstline">Retrieves typical flight emissions estimates between two airports, also known as a market. If there are no estimates available for a certain market, the response will return the market object with empty emission fields. The request will still be considered successful. Details on how the typical emissions estimates are computed are on [GitHub](https://github.com/google/travel-impact-model/blob/main/projects/typical_flight_emissions.md). The request can contain up to 1000 markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.</p>
<pre>Stateless method to retrieve emission estimates. Details on how emission estimates are computed: https://github.com/google/travel-impact-model The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
94
+
<pre>Stateless method to retrieve emission estimates. Details on how emission estimates are computed are in [GitHub](https://github.com/google/travel-impact-model) The response will contain all entries that match the input flight legs, in the same order. If there are no estimates available for a certain flight leg, the response will return the flight leg object with empty emission fields. The request will still be considered successful. Reasons for missing emission estimates include: * The flight is unknown to the server. * The input flight leg is missing one or more identifiers. * The flight date is in the past. * The aircraft type is not supported by the model. * Missing seat configuration. The request can contain up to 1000 flight legs. If the request has more than 1000 direct flights, if will fail with an INVALID_ARGUMENT error.
92
95
93
96
Args:
94
97
body: object, The request body.
@@ -121,7 +124,7 @@ <h3>Method Details</h3>
121
124
{ # Output definition for the ComputeFlightEmissions response.
122
125
"flightEmissions": [ # List of flight legs with emission estimates.
123
126
{ # Direct flight with emission estimates.
124
-
"emissionsGramsPerPax": { # Grouped emissions per seating class results. # 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. This field uses wtw emissions aka ttw_emissions_grams_per_pax + wtt_emissions_grams_per_pax.
127
+
"emissionsGramsPerPax": { # Grouped emissions per seating class results. # 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.
125
128
"business": 42, # Emissions for one passenger in business class in grams. This field is always computed and populated, regardless of whether the aircraft has business class seats or not.
126
129
"economy": 42, # Emissions for one passenger in economy class in grams. This field is always computed and populated, regardless of whether the aircraft has economy class seats or not.
127
130
"first": 42, # Emissions for one passenger in first class in grams. This field is always computed and populated, regardless of whether the aircraft has first class seats or not.
@@ -140,12 +143,61 @@ <h3>Method Details</h3>
140
143
},
141
144
},
142
145
],
143
-
"modelVersion": { # Travel Impact Model version. For more information about the model versioning see https://github.com/google/travel-impact-model/#versioning. # The model version under which emission estimates for all flights in this response were computed.
146
+
"modelVersion": { # Travel Impact Model version. For more information about the model versioning see [GitHub](https://github.com/google/travel-impact-model/#versioning). # The model version under which emission estimates for all flights in this response were computed.
147
+
"dated": "A String", # Dated versions: Model datasets are recreated with refreshed input data but no change to the algorithms regularly.
148
+
"major": 42, # Major versions: Major changes to methodology (e.g. adding new data sources to the model that lead to major output changes). Such changes will be infrequent and announced well in advance. Might involve API version changes, which will respect [Google Cloud API guidelines](https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible)
149
+
"minor": 42, # Minor versions: Changes to the model that, while being consistent across schema versions, change the model parameters or implementation.
150
+
"patch": 42, # Patch versions: Implementation changes meant to address bugs or inaccuracies in the model implementation.
<pre>Retrieves typical flight emissions estimates between two airports, also known as a market. If there are no estimates available for a certain market, the response will return the market object with empty emission fields. The request will still be considered successful. Details on how the typical emissions estimates are computed are on [GitHub](https://github.com/google/travel-impact-model/blob/main/projects/typical_flight_emissions.md). The request can contain up to 1000 markets. If the request has more than 1000 markets, it will fail with an INVALID_ARGUMENT error.
158
+
159
+
Args:
160
+
body: object, The request body.
161
+
The object takes the form of:
162
+
163
+
{ # A list of pair of airports (markets) to request the typical emissions for.
164
+
"markets": [ # Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested.
165
+
{ # A pair of airports.
166
+
"destination": "A String", # Required. IATA airport code for flight destination, e.g. "JFK".
167
+
"origin": "A String", # Required. IATA airport code for flight origin, e.g. "LHR".
168
+
},
169
+
],
170
+
}
171
+
172
+
x__xgafv: string, V1 error format.
173
+
Allowed values
174
+
1 - v1 error format
175
+
2 - v2 error format
176
+
177
+
Returns:
178
+
An object of the form:
179
+
180
+
{ # The response includes the emissions but also the model version.
181
+
"modelVersion": { # Travel Impact Model version. For more information about the model versioning see [GitHub](https://github.com/google/travel-impact-model/#versioning). # The model version under which typical flight emission estimates for all flights in this response were computed.
144
182
"dated": "A String", # Dated versions: Model datasets are recreated with refreshed input data but no change to the algorithms regularly.
145
-
"major": 42, # Major versions: Major changes to methodology (e.g. adding new data sources to the model that lead to major output changes). Such changes will be infrequent and announced well in advance. Might involve API version changes, which will respect guidelines in https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible
183
+
"major": 42, # Major versions: Major changes to methodology (e.g. adding new data sources to the model that lead to major output changes). Such changes will be infrequent and announced well in advance. Might involve API version changes, which will respect [Google Cloud API guidelines](https://cloud.google.com/endpoints/docs/openapi/versioning-an-api#backwards-incompatible)
146
184
"minor": 42, # Minor versions: Changes to the model that, while being consistent across schema versions, change the model parameters or implementation.
147
185
"patch": 42, # Patch versions: Implementation changes meant to address bugs or inaccuracies in the model implementation.
{ # Typical flight emission estimates for a certain market
189
+
"emissionsGramsPerPax": { # Grouped emissions per seating class results. # Optional. Typical flight emissions per passenger for requested market. Will not be present if a typical emissions could not be computed. For the list of reasons why typical flight emissions could not be computed, see [GitHub](https://github.com/google/travel-impact-model/blob/main/projects/typical_flight_emissions.md#step-7-validate-dataset).
190
+
"business": 42, # Emissions for one passenger in business class in grams. This field is always computed and populated, regardless of whether the aircraft has business class seats or not.
191
+
"economy": 42, # Emissions for one passenger in economy class in grams. This field is always computed and populated, regardless of whether the aircraft has economy class seats or not.
192
+
"first": 42, # Emissions for one passenger in first class in grams. This field is always computed and populated, regardless of whether the aircraft has first class seats or not.
193
+
"premiumEconomy": 42, # Emissions for one passenger in premium economy class in grams. This field is always computed and populated, regardless of whether the aircraft has premium economy class seats or not.
194
+
},
195
+
"market": { # A pair of airports. # Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized.
196
+
"destination": "A String", # Required. IATA airport code for flight destination, e.g. "JFK".
197
+
"origin": "A String", # Required. IATA airport code for flight origin, e.g. "LHR".
0 commit comments