HSLdevcom / HSLdevcom/digitransit-ui

Display CO2 savings for walking and cycling routes in detail view

Open
#5,199 1 comment 0 reactions 0 assignees View on GitHub

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:

  1. 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
  2. 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:

image
image
image


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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.