travelimpactmodel/v1 library

Travel Impact Model API - v1

Travel Impact Model API lets you query travel carbon emission estimates.

For more information, see developers.google.com/travel/impact-model

Create an instance of TravelImpactModelApi to access these resources:

Classes

ComputeFlightEmissionsRequest
Input definition for the ComputeFlightEmissions request.
ComputeFlightEmissionsResponse
Output definition for the ComputeFlightEmissions response.
ComputeTypicalFlightEmissionsRequest
A list of pair of airports (markets) to request the typical emissions for.
ComputeTypicalFlightEmissionsResponse
The response includes the emissions but also the model version.
EasaLabelMetadata
Metadata about the EASA Flight Emissions Label.
EmissionsGramsPerPax
Grouped emissions per seating class results.
Flight
All details related to a single request item for a direct flight emission estimates.
FlightsResource
FlightWithEmissions
Direct flight with emission estimates.
Market
A pair of airports.
ModelVersion
Travel Impact Model version.
TravelImpactModelApi
Travel Impact Model API lets you query travel carbon emission estimates.
TypicalFlightEmissions
Typical flight emission estimates for a certain market

Typedefs

Date = $Date
Represents a whole or partial calendar date, such as a birthday.

Exceptions / Errors

ApiRequestError
Represents a general error reported by the API endpoint.
DetailedApiRequestError
Represents a specific error reported by the API endpoint.