-
Notifications
You must be signed in to change notification settings - Fork 53
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
Show walking distance in meters, not miles #716
Comments
I believe setting the react-intl settings for distance should cause the formatting to change. @binh-dam-ibigroup may have more information |
react-intl can determine how to display a number and unit for a given locale, however OTP-RR is still yet to compute metric quantities. |
So this would be a feature request then? Or is is already configurable in OTP-RR? |
That would be a feature request. |
@amenk So that you know, this is not an immediate priority for IBI, however we welcome pull requests. |
I found out that the basic rendering logic is already there. So it might be enough to set the second parameter here to
We also have to think about whether we let the end-user chose the unit or it's a system default configuration for the PS: I am still wondering if there is a better workflow to contribute to OTP-UI than this one. |
Sorry for the delay on getting back to you -- well spotted on the metric support! I personally think it should somehow be set via the react-intl language. Let me know if you have any ideas there, or feel free to open a PR as a proposal and we can discuss further that way! As for the workflow, I'm impressed you got |
Setting that value to true works in the otp-ui storybook very well :-) Unfortunately my
When trying this in the otp-react-redux application.. |
Yep this is a known issue! This is what I was wondering if you'd been able to solve. We don't use |
@miles-grant-ibigroup let's continue this discussion in #773 |
This is actually a duplicate of #158 So I am closing this one here. |
I could not find a configuration option to display the walking distances in meters / kilometers instead of miles.
Is that possible already?
The text was updated successfully, but these errors were encountered: