XavB64 / lowtrip

A web app to compute travel CO2eq for different means of transport worldwide
https://lowtrip.fr
GNU Affero General Public License v3.0
56 stars 6 forks source link

Use ADEME API for updated co2e values #74

Closed tomasbastien closed 5 months ago

tomasbastien commented 5 months ago

Hello there !

ADEME org now provides API to query multiples entries from their database, including km to co2e conversion. You can freely ask for an API key (Bearer Auth) to use it at impactco2@ademe.fr, more details on : https://impactco2.fr/api-doc

It could replace local values that are actually used in this tool.

I've been working on a similar tool on my side, hightly motivated by volonteering for POW France (available on https://protectourwinters.fr/outil-co2e/ and code on https://github.com/tomasbastien/co2e-calculator), I'll be sharing common concerns that I encountered in separated issues in this repo

XavB64 commented 5 months ago

Hello!

The emission factor values are stored in the parameters.py file and these values don't usually change very often, so we don't think it would be necessary to use another API to get it.

Also, you'll find that some values are different from the ones used in ADEME, notably for trains and electric vehicles as we account for country-specific emission factors ;)

I will close the issue for now, but thanks for sharing this tool with us ! 👍