Thrust Carbon

Emission comparison

Compare a segment's emissions against average or route-based values using the batch endpoint's compare object.

Introduction

One of the important aspects of our emissions API is the result comparison. Often, you will want to know how a certain segment compares to others, is it above average or below average emissions? This feature is baked into our batch emissions endpoint.

How to use it

Emission comparison is available on our batch emission endpoint:

https://api.thrustcarbon.com/api/2/emission/batch

This endpoint accepts a compare object (docs) where you can specify which route you would like to compare your segments to:

"compare": [
  {
    "type": "air",
    "origin": {
      "iata": "LHR"
    },
    "destination": {
      "iata": "JFK"
    }
  }
]

When you pass this compare object, the response will include a new comparison_emissions value in returned the compare object:

{
  "segments": {
    "0": {
      "tonnes_of_emissions": 1.2,
      ...
    },
    "1": {
      "tonnes_of_emissions": 0.7,
      ...
    }
  },
  "compare": {
    "average_emissions": 0.95,
    "comparison_emissions": 0.8,
    "comparison_emissions_method": "icao-average",
    ...
  }
}

Also returned in this response, is the comparison_emissions_method. This can be one of two values: defra or icao-average. We break these two method down below.

ICAO average method (icao-average)

For this method, we have populated a database of real world average emissions for the most popular routes worldwide. This calculation is based on the following parameters:

  • We calculate the emissions for all available routes between origin and destination within one week.
    • Note that we do not calculate averages for individual days.
  • We calculate different averages for different seasons, because different seasons will offer different options.
  • If direct flights are available, then we return average emissions for the direct flight
    • If direct flights are not available, we return average emissions for the least number of stops available.

DEFRA method (defra)

We prioritise returning an icao-average value, however as these values are created before a request takes place, we cannot cover each route combination in the world, there are an exponential number of combinations. In these instances, the defra method is a great fallback.

This method returns the estimated emissions for the comparison route calculated using a standard calculation based on the DEFRA methodology. This is an estimated carbon emission for the route based on average fuel burn, radiative forcing, domestic/international, flight distance, and other factors. For more information please refer to our methodology whitepaper.

How to display these values

The compare object will always contain the average_emissions value, and the comparison_emissions value calculated using either the defra or icao-average method.

A great implementation will dynamically use these values based on the scenario.

  • If your result set has more than 100 segments (our maximum payload for batch emissions):
    • It makes sense to compare their results to the comparison_emissions value. This is because our comparison_emissions is based on an analysis of every possible option, not just those requested in your search.
  • If your result set has fewer than 100 segments:
    • You already have all of the flight options for this particular request filter, and you may want to consider comparing each result to the other remaining options. For this approach, you would use the average_emissions value. If you want to compare the results based on a different segment configuration (ie - the results are for first class, and so you want the results to appear above average) you can still use the comparison_emissions value.

You should make the user aware of how their results are being compared for transparency, whether you're comparing their results to an average based on just their result set, all available options for that route (icao-average) or an average calculation for the route (defra).

On this page