stadtnavi / stadtnavi_app

The model project for networked mobility in Herrenberg
https://stadtnavi.de/
GNU General Public License v3.0
6 stars 2 forks source link

Display CO2 emissions information for itineraries #376

Open hbruch opened 3 days ago

hbruch commented 3 days ago

Describe the solution you'd like For each itinerary, stadtnavi should show the CO2 emissions per trip.

This functionality has been implemented by upstream digitransit already and should be ported to stadtnavi app.

Additional context See https://github.com/stadtnavi/digitransit-ui/issues/820 as the related feature request in digitransit-ui.

OTP on https://api.dev.stadtnavi.eu/ already has been configured to return the co2emissions.

The following commits introduced to core functionality to upstream digitransit (Note: the code might have been adapted in later commits, please check).

https://github.com/HSLdevcom/digitransit-ui/commit/92eb64df315167f9222bbeaf44e482273498d1de https://github.com/HSLdevcom/digitransit-ui/commit/15a09fd5bd7ccd0cb789bc32557e37bff4a5bb89

grafik grafik
MartinH-open commented 3 days ago

Interessting: whatever the CO2 emissions per trip are calculated from, there should be some link or reference star * at the displayed line to explain what "CO2 emissions" mean in this context and what the reference definition is for calculating this. Perhaps some help page explaining per transportation mode (rail, bus, bike, car, ride sharing, foot, ..) what CO2 emissions are assumed per km. Eg. for car this can only be an average value as the actual car and its type (electric?) is unknown; for a ride sharing leg you can calculate zero emissions or half / third of a car related emission. If such additional documentation is not part of this issue then we better have another one just for this purpose.