flights

POST /v1/flights:computeTypicalFlightEmissions

Changed on

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. The request can contain up to 1000 markets. If the request has more than 1000 markets, 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

ComputeTypicalFlightEmissionsRequest required

A list of pair of airports (markets) to request the typical emissions for.

markets, Market[]

Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested.

Response

Successful response

ComputeTypicalFlightEmissionsResponse required

The response includes the emissions but also the model version.

modelVersion, ModelVersion

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

typicalFlightEmissions, TypicalFlightEmissions[]

Market's Typical Flight Emissions requested.

Changes

    • breaking

      removed the request body

    • breaking

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