- Simple estimate: A single input method requiring only truck type.
- Granular estimate: A detailed method allowing inputs for any type of fuel, including sustainable fuels or fuel blends. Inputs for road gradients and emission standards are also available.
Pre-requisites
Complete the following setup steps before using this guide:Generate an API key and authenticate your account.
Set up Client Accounts to track emissions for your individual customers.
Review how to calculate emissions for multi-leg shipments using the API.
1. Gather shipment details
Simple estimate
To calculate a simple estimate, select the appropriate value for themethod
property.There are many possible options. Each value represents a combination of three key parameters: truck type, fuel, and load characteristics.The values follow a consistent naming pattern to convey detailed information:- Truck type: The category of the vehicle, by GVW. For example, vans, MGVs, and HGVs.
- Fuels type: Specifies the fuel used. Diesel is assumed if the vehicle is not electric or if no fuel type is specified.
cng
: Compressed natural gaslpg
: Liquefied petroleum gaslng
: Liquefied natural gasbio-lng
: Liquefied biomethane
- Load characteristics: Specified using keywords such as
light_load
,heavy_load
, orcontainer
. Average load is assumed if no load characteristics are indicated.
refrigerated
or tanker
. Some truck types are prefixed with na
to indicate a North American vehicle.All method
values start with truck
and use underscores (_
) to separate components. The most commonly used method
values are shown below.truck_generic_van
truck_generic_hgv
truck_articulated_40t
truck_articulated_60t
truck_na_general
Granular estimate
To calculate a granular estimate, provide, at minimum, the vehicle type and fuel. For example, to calculate an emission estimate of a truck using a fuel blend, the method object would look like:
vehicle_type
fuel
gradient
load_factor
empty_runs_factor
situation
emission_standard
method
object for a rigid diesel truck traveling on flat roads in a city with heavy traffic will look like this:
2. Make the API request
To calculate emissions for road shipments, use the estimates/shipping/multi-leg/ endpoint. Send aPOST
request to this endpoint to create an emissions estimate.Remember to add the Authorization header with your generated Bearer Token, as well as a Lune Account header with the client account that this emission is being calculated for.
Sample request
Below is an example of a simple emission estimate calculation for a 4.36 tonne shipment traveling 592 miles using an average heavy goods vehicle:
What to do next...
Offset the calculated emissions by purchasing carbon credits through the API.
Generate an analytics report for your customers about their emissions.