POST /v1/flights:computeFlightEmissions
Changed onRetrieves emission estimates. 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 1000 flight legs. If the request has more than 1000 direct flights, if 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
Input definition for the ComputeFlightEmissions request.
Required. Direct flights to return emission estimates for.
Response
Successful response
Output definition for the ComputeFlightEmissions response.
List of flight legs with emission estimates.
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
- breaking