flights

POST /v1/flights:computeDetailedFlightEmissions

Changed on

Retrieves detailed emission estimates. Detailed Flight Emissions are transparent per-passenger greenhouse gas emission estimates supplemented by comprehensive metadata detailing the calculation methodology, emissions breakdown, contrail impact, and data provenance. Details on how emission estimates are computed are in GitHub. 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 100 flight legs. If the request has more than 100 flight legs, it will fail with an INVALID_ARGUMENT error.

Request

  • Base URL
    https://travelimpactmodel.googleapis.com
  • Auth
    none declared

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Request body

ComputeDetailedFlightEmissionsRequest required

Input definition for the ComputeDetailedFlightEmissions request.

flights, Flight[]

Required. Direct flights to return emission estimates for.

Response

Successful response

ComputeDetailedFlightEmissionsResponse required

Output definition for the ComputeDetailedFlightEmissions response.

flightsWithDetailedEmissions, FlightWithDetailedEmissions[]

List of flight legs with emission estimates.

modelVersion, ModelVersion

Travel Impact Model version. For more information about the model versioning see GitHub.

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status