POST /v1/flights:computeTypicalFlightEmissions
Changed onRetrieves 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 URLhttps://travelimpactmodel.googleapis.com
- Authnone declared
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
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 2.0 token for the current user.
Returns response with indentations and line breaks.
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.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Request body
A list of pair of airports (markets) to request the typical emissions for.
Required. Request the typical flight emissions estimates for this market pair. A maximum of 1000 markets can be requested.
Response
Successful response
The response includes the emissions but also the model version.
Travel Impact Model version. For more information about the model versioning see GitHub.
Market's Typical Flight Emissions requested.
Changes
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status
- breaking