HSLdevcom / HSLdevcom/digitransit-ui
Display CO2 savings for walking and cycling routes in detail view
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 267
- Forks
- 145
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 75
Description
Description:
For Public Transport and Intermodal Routes, the overview displays the CO2 emissions, and the detail view additionally shows how much CO2 is saved compared to a car trip. However, for walking and cycling routes, this information is missing in the detail view.
It would be great to also show the CO2 savings compared to a car trip in the detail view for walking and cycling routes. (See attached screenshots for reference.)
Steps to reproduce:
- Perform a route search, e.g. https://opas.matka.fi/reitti/Piitie%201%2C%20Vantaa%3A%3A60.291831728250386%2C24.987936615943912/Kaunokkitie%209%2C%20Vantaa%3A%3A60.29857301873039%2C25.002350807189945?locale=en&time=1733997446
- Compare the information displayed in the detail view for:
- Public transport or intermodal routes (CO2 emissions and savings shown).
- Walking or cycling routes (no CO2 savings displayed).
Observed behavior:
CO2 savings compared to a car trip are not displayed in the detail view for walking and cycling routes.
Expected behavior:
The detail view for walking and cycling routes should include CO2 savings information, similar to other route types.
Screenshots:
Environment:
- Browser: Edge
Additional information:
Adding CO2 savings information for walking and cycling routes would highlight their environmental benefits and encourage users to choose sustainable travel modes.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the route detail view and tracing how CO2 emissions and savings are rendered for public transport and intermodal routes. Compare that behavior with walking and cycling routes; done when their detail views also display CO2 savings compared with a car trip.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100