Skip to content

Add configuration to display narrative distances in metric units #158

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

Open
binh-dam-ibigroup opened this issue Apr 27, 2020 · 2 comments
Open

Comments

@binh-dam-ibigroup
Copy link
Collaborator

This issues originates from this suggestion to add a config parameter to display narrative distances in metric units. Currently, distances are hard-coded to be shown as imperial.

This issue depends on otpui/#116.

amenk added a commit to AddisMap/AddisMapTransit-web that referenced this issue Feb 4, 2023
amenk added a commit to AddisMap/AddisMapTransit-web that referenced this issue Feb 4, 2023
amenk added a commit to AddisMap/AddisMapTransit-web that referenced this issue Feb 4, 2023
@nukeador
Copy link
Contributor

Just checking on this. Since I see there is a path on one of the forks, is this something you are interested in integrating here?

@nukeador
Copy link
Contributor

I think this keeps being blocked by this pending PR for otp-ui to fix @opentripplanner/itinerary-body

opentripplanner/otp-ui#736

Also at otp-react-redux level, lib/components/viewers/nearby/distance-display.tsx has hard-coded imperial units here

localizedDistanceString: humanizeDistanceString(distance, false, intl)

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