Road shipments
Calculate the CO₂e emissions for a shipment by road using one of two methods:- 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 gas
- lpg: Liquefied petroleum gas
- lng: Liquefied natural gas
- bio-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_vantruck_generic_hgvtruck_articulated_40ttruck_articulated_60ttruck_na_generalGranular 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_typefuelgradientload_factorempty_runs_factorsituationemission_standardrefrigeratedmethod 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.Include the Authorization header with your API Key as a Bearer Token. To associate the emission calculation with a specific client account, add either a Lune-Account header or a client account object to your request.
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.
