GET /carbon/flight
Calculez les émissions de CO2 emissions pour a spécifique flight route by providing origin et destination coordonnées. Uses great-circle distance et aviation emission factors to estimate le empreinte carbone in kilograms of CO2. Utile pour les travel booking apps qui display environmental impact, carbon offset calculators, et corporate travel sustainability reporting. Prend en charge tout two points on Earth.
from_lat
requis
Origin lat
from_lon
requis
Origin lon
to_lat
requis
Dest lat
to_lon
requis
Dest lon
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
from_lat |
Oui | - | Origin lat |
from_lon |
Oui | - | Origin lon |
to_lat |
Oui | - | Dest lat |
to_lon |
Oui | - | Dest lon |
curl "https://nordapi.ee/api/v1/carbon/flight?from_lat=59.9&from_lon=10.7&to_lat=40.7&to_lon=-74"
curl "https://nordapi.ee/api/v1/carbon/flight?from_lat=59.9&from_lon=10.7&to_lat=40.7&to_lon=-74"
curl "https://nordapi.ee/api/v1/carbon/flight?from_lat=51.47&from_lon=-0.46&to_lat=35.76&to_lon=140.39"
curl "https://nordapi.ee/api/v1/carbon/flight?from_lat=59.65&from_lon=17.92&to_lat=52.56&to_lon=13.29"
{
"data": {
"co2_per_person_kg": 1153.1,
"distance_km": 5913.0,
"flight_type": "long_haul",
"passengers": 1,
"total_co2_kg": 1153.1,
"train_equivalent_co2_kg": 242.5,
"trees_to_offset": 53.0
},
"success": true
}