Co2 Calculation
Changed onget/co2calculation
Request
- Base URLhttps://api.cargoai.co/solutions
- URLhttps://api.cargoai.co/solutions/co2calculation
- AuthAPI key in header x-api-key
Query parameters
awbstring
Booking's AWB prefix and number
flightnumberinteger
Flight Number of a specific flight
datestring
Flight departure date in local time at origin
weightinteger
Shipment's total weight (kg)
originstring
Flight origin
destinationstring
Flight destination
aircraftstring
Flight Aircraft IATA code (ex: 73Y)
Response
200
Example response
{
"origin": "CDG",
"destination": "JFK",
"aircraft": "330",
"distance": {
"value": 5833.6,
"unit": "km"
},
"weight": {
"value": 100,
"unit": "kg"
},
"co2TTW": {
"value": 128.47,
"unit": "kg"
},
"co2WTW": {
"value": 157.02,
"unit": "kg"
},
"co2eTTW": {
"value": 129.69,
"unit": "kg"
},
"co2eWTW": {
"value": 158.24,
"unit": "kg"
},
"co2EfficiencyScore": 100,
"co2EfficiencyIndustry": 86
}Changes
- info
endpoint added
- info