Scope3FlightSegment
Stay organized with collections
Save and categorize content based on your preferences.
Flight parameters with which the Scope 3 emissions are fetched.
| JSON representation |
{
"departureDate": {
object (Date)
},
"cabinClass": enum (Scope3FlightSegment.CabinClass),
"origin": string,
"destination": string,
"carrierCode": string,
"flightNumber": integer,
"distanceKm": string
} |
| Fields |
departureDate |
object (Date)
Required. Date of the flight in the time zone of the origin airport. Only year is required for typical flight and distance-based emissions models (month and day values are ignored and therefore, can be either omitted, set to 0, or set to a valid date for those cases). Correspondingly, if a specific date is not provided for TIM emissions, we will fallback to typical flight (or distance-based) emissions.
|
cabinClass |
enum (Scope3FlightSegment.CabinClass)
Required. The cabin class of the flight.
|
origin |
string
Optional. 3-character IATA airport code for flight origin, e.g. YVR. This is used to match specific flight if provided alongside destination, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.
|
destination |
string
Optional. 3-character IATA airport code for flight destination, e.g. ICN. This is used to match specific flight if provided alongside origin, carrier, and flight number. If there is no match, we will first try to match the flight to a typical flight between the provided origin and destination airports. Otherwise, we will use the distance-based emissions model if the flight distance is provided.
|
carrierCode |
string
Optional. 2-character IATA carrier code, e.g. KE. This is required if specific flight matching is desired. Otherwise, this is unused for typical flight and distance-based emissions models. This could be both operating and marketing carrier code (i.e. codeshare is covered).
|
flightNumber |
integer
Optional. Up to 4-digit flight number, e.g. 71, from [1, 9999]. This is first used to match a specific flight if a flight number is specified alongside origin, destination, and carrier. If a flight number is not specified, we will first try to match the flight to a typical flight between the provided origin and destination airports. If that fails and/or origin & destination are not provided, we will use the distance-based emissions model based on the flight distance provided.
|
distanceKm |
string (int64 format)
Optional. Distance in kilometers, e.g. 2423, from [1, 1e12) km. This is used to match a flight to distance-based emissions when origin and destination are not provided or there are no matching TIM-based or typical flight emissions. Note that distance is not computed from origin and destination, so this field must be explicitly provided if you want to request or fall back to distance-based emissions.
|
Scope3FlightSegment.CabinClass
The cabin class of the flight.
| Enums |
CABIN_CLASS_UNSPECIFIED |
Unspecified cabin class. |
ECONOMY |
Economy class. |
PREMIUM_ECONOMY |
Premium economy class. |
BUSINESS |
Business class. |
FIRST |
First class. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-12-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-12-01 UTC."],[],[]]