Skip to content

Commit b63b5da

Browse files
feat(travelimpactmodel): update the api
#### travelimpactmodel:v1 The following keys were added: - schemas.EasaLabelMetadata (Total Keys: 7) - schemas.FlightWithEmissions.properties.contrailsImpactBucket.type (Total Keys: 1) - schemas.FlightWithEmissions.properties.easaLabelMetadata.$ref (Total Keys: 1) - schemas.FlightWithEmissions.properties.source.type (Total Keys: 1)
1 parent 73cabcc commit b63b5da

File tree

2 files changed

+75
-1
lines changed

2 files changed

+75
-1
lines changed

docs/dyn/travelimpactmodel_v1.flights.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,21 @@ <h3>Method Details</h3>
124124
{ # Output definition for the ComputeFlightEmissions response.
125125
&quot;flightEmissions&quot;: [ # List of flight legs with emission estimates.
126126
{ # Direct flight with emission estimates.
127+
&quot;contrailsImpactBucket&quot;: &quot;A String&quot;, # Optional. The significance of contrails warming impact compared to the total CO2e emissions impact.
128+
&quot;easaLabelMetadata&quot;: { # Metadata about the EASA Flight Emissions Label. # Optional. Metadata about the EASA Flight Emissions Label. Only set when the emissions data source is EASA.
129+
&quot;labelExpiryDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the label expires. The label can be displayed until the end of this date.
130+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
131+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
132+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
133+
},
134+
&quot;labelIssueDate&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # The date when the label was issued.
135+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
136+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
137+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
138+
},
139+
&quot;labelVersion&quot;: &quot;A String&quot;, # Version of the label.
140+
&quot;safDiscountPercentage&quot;: 3.14, # Sustainable Aviation Fuel (SAF) emissions discount percentage applied to the label. It is a percentage as a decimal. The values are in the interval [0,1]. For example, 0.0021 means 0.21%. This discount and reduction in emissions are reported by the EASA label but they are not included in the CO2e estimates distributed by this API.
141+
},
127142
&quot;emissionsGramsPerPax&quot;: { # 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.
128143
&quot;business&quot;: 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.
129144
&quot;economy&quot;: 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.
@@ -141,6 +156,7 @@ <h3>Method Details</h3>
141156
&quot;operatingCarrierCode&quot;: &quot;A String&quot;, # Required. IATA carrier code, e.g. &quot;AA&quot;.
142157
&quot;origin&quot;: &quot;A String&quot;, # Required. IATA airport code for flight origin, e.g. &quot;LHR&quot;.
143158
},
159+
&quot;source&quot;: &quot;A String&quot;, # Optional. The source of the emissions data.
144160
},
145161
],
146162
&quot;modelVersion&quot;: { # 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.

googleapiclient/discovery_cache/documents/travelimpactmodel.v1.json

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
}
132132
}
133133
},
134-
"revision": "20250605",
134+
"revision": "20250624",
135135
"rootUrl": "https://travelimpactmodel.googleapis.com/",
136136
"schemas": {
137137
"ComputeFlightEmissionsRequest": {
@@ -220,6 +220,30 @@
220220
},
221221
"type": "object"
222222
},
223+
"EasaLabelMetadata": {
224+
"description": "Metadata about the EASA Flight Emissions Label.",
225+
"id": "EasaLabelMetadata",
226+
"properties": {
227+
"labelExpiryDate": {
228+
"$ref": "Date",
229+
"description": "The date when the label expires. The label can be displayed until the end of this date."
230+
},
231+
"labelIssueDate": {
232+
"$ref": "Date",
233+
"description": "The date when the label was issued."
234+
},
235+
"labelVersion": {
236+
"description": "Version of the label.",
237+
"type": "string"
238+
},
239+
"safDiscountPercentage": {
240+
"description": "Sustainable Aviation Fuel (SAF) emissions discount percentage applied to the label. It is a percentage as a decimal. The values are in the interval [0,1]. For example, 0.0021 means 0.21%. This discount and reduction in emissions are reported by the EASA label but they are not included in the CO2e estimates distributed by this API.",
241+
"format": "double",
242+
"type": "number"
243+
}
244+
},
245+
"type": "object"
246+
},
223247
"EmissionsGramsPerPax": {
224248
"description": "Grouped emissions per seating class results.",
225249
"id": "EmissionsGramsPerPax",
@@ -279,13 +303,47 @@
279303
"description": "Direct flight with emission estimates.",
280304
"id": "FlightWithEmissions",
281305
"properties": {
306+
"contrailsImpactBucket": {
307+
"description": "Optional. The significance of contrails warming impact compared to the total CO2e emissions impact.",
308+
"enum": [
309+
"CONTRAILS_IMPACT_UNSPECIFIED",
310+
"CONTRAILS_IMPACT_NEGLIGIBLE",
311+
"CONTRAILS_IMPACT_MODERATE",
312+
"CONTRAILS_IMPACT_SEVERE"
313+
],
314+
"enumDescriptions": [
315+
"The contrails impact is unspecified.",
316+
"The contrails impact is negligible compared to the total CO2e emissions.",
317+
"The contrails impact is comparable to the total CO2e emissions.",
318+
"The contrails impact is higher than the total CO2e emissions impact."
319+
],
320+
"type": "string"
321+
},
322+
"easaLabelMetadata": {
323+
"$ref": "EasaLabelMetadata",
324+
"description": "Optional. Metadata about the EASA Flight Emissions Label. Only set when the emissions data source is EASA."
325+
},
282326
"emissionsGramsPerPax": {
283327
"$ref": "EmissionsGramsPerPax",
284328
"description": "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."
285329
},
286330
"flight": {
287331
"$ref": "Flight",
288332
"description": "Required. Matches the flight identifiers in the request. Note: all IATA codes are capitalized."
333+
},
334+
"source": {
335+
"description": "Optional. The source of the emissions data.",
336+
"enum": [
337+
"SOURCE_UNSPECIFIED",
338+
"TIM",
339+
"EASA"
340+
],
341+
"enumDescriptions": [
342+
"The source of the emissions data is unspecified.",
343+
"The emissions data is from the Travel Impact Model.",
344+
"The emissions data is from the EASA environmental labels."
345+
],
346+
"type": "string"
289347
}
290348
},
291349
"type": "object"

0 commit comments

Comments
 (0)