electricitymaps / bloom-contrib

Making carbon footprint data available to everyone.
https://www.bloomclimate.com
MIT License
434 stars 104 forks source link

Transportation: have fallback trip times when endDatetime is not available #407

Closed corradio closed 4 years ago

cameronnapoli commented 4 years ago

@corradio Hey Olivier, is this fixing an existing bug? If not, what is the purpose of this?

corradio commented 4 years ago

Hello @cameronnapoli , Thank you for forcing me to write a bit more context ;-) We've discovered that some trips created by several integrations (e.g. TripIt) sometimes have a missing duration. We'd like to be able to show an estimated footprint for those as well. The solution is therefore to assume a certain fallback duration per transportation mode in the transportation carbon model, in the case where duration is missing.