Introduction
The CO2 API is a Restful API capable of calculating carbon emissions (CO2) on a specific route, as well as fuel consumption data, taking into account the values provided in the req [...]
The CO2 API is a Restful API capable of calculating carbon emissions (CO2) on a specific route, as well as fuel consumption data, taking into account the values provided in the req [...]
Before you can start using the API, you will need to obtain the authentication token. The following headers will be required, where the word token must be replaced by the token obt [...]
Mandatory parameters Each source used for the calculation has its own list of available fuels. The possible values are: source fuelType Description GHG_PROTOCOL GASOLINE Petrol BR_ [...]
In the following example, we will use the independent endpoint to calculate the amount of CO2 emitted on an 80.7 km route, using gasoline as fuel in a vehicle with an average consu [...]
The CO2 API can be used in conjunction with the Trip API. The process consists of simply adding the CO2 API parameters to the body of the request to the Trip API. You don’t n [...]
The CO2 API can be integrated with the Toll for Maps API, so in addition to the return of toll fares, the calculation of carbon emissions will also be provided. The process consist [...]
Below is the table with the status codes for each endpoint available in the CO2 API: Code Method Endpoint Description 200 PUT https://api.maplink.global/emission/v1/calculations OK [...]
The following table shows all the error messages that can be returned by the API in the response body: Error code Message Description VALIDATION_FAILED or VALIDATION_ERROR { messag [...]