Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display CO2 emissions information for itineraries #820

Open
hbruch opened this issue Nov 19, 2024 · 3 comments
Open

Display CO2 emissions information for itineraries #820

hbruch opened this issue Nov 19, 2024 · 3 comments
Assignees

Comments

@hbruch
Copy link

hbruch commented Nov 19, 2024

For each itinerary, stadtnavi should show the CO2 emissions per trip.

This functionality has been implemented by upstream already and should be backported to stadtnavi.

If code needs to be changed to get it working, consider bringing stadtnavi closer to upstream.

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).

HSLdevcom@92eb64d
HSLdevcom@15a09fd

@andreashelms
Copy link
Collaborator

@hbruch
Do we only need this component from upstream?

image

Or also the compared emissions produced by a car?
image

@hbruch
Copy link
Author

hbruch commented Nov 19, 2024

When is this component shown? and which content is linked there? We should add a link to an explaining text as well, IMHO an external page. @stadtnavimanager could you create a page in the stadtnavi CMS where we explain the calculations?

@andreashelms
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants