Carbon footprint calculation
POST /v1/carbon
Estimates tailpipe CO2 for a route: distance multiplied by a default emission factor for the vehicle and fuel type. An indicative figure for comparisons; it is not an ISO 14083 / GLEC calculation (no load, empty running or fuel-production emissions) and should not be used as-is for CSRD reporting.
Parameters
locationsarray of object, requiredvehicle_typecar | van | truck_7t | truck_18t | truck_40t | motorcycle, requiredfuel_typediesel | petrol | electric | hybrid, requiredcostingauto | truck | bicycle | pedestrian | motorcycle | motor_scooter | bus | taxi- Vehicle/costing model for routing Default: "auto".
Example request
curl -X POST https://eunavigation.duckdns.org/v1/carbon \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"locations":[{"lat":44.4268,"lon":26.1025},{"lat":48.2082,"lon":16.3738}],"vehicle_type":"truck_18t","fuel_type":"diesel","costing":"truck"}'Price
See the price of /v1/carbon on the pricing page.