fix: #116 Add outputMetricUnits to config types and use in itinerary-…#538
fix: #116 Add outputMetricUnits to config types and use in itinerary-…#538amenk wants to merge 3 commits intoopentripplanner:masterfrom
Conversation
…e in itinerary-body
|
TODO:
packages/location-field/src/options.tsx:90 But we have to pass through the config somehow.
|
|
…ts to location-field
|
Not sure if c389bed is the right approach (to pass the outputMetricUnits into the location field component) of if we should access some global configuration from there. |
|
Sorry for the long delay on this, but have finally had the time to take a look at this. I don't mind this approach, however is it not possible to use react-intl to handle this? |
|
Thanks, what do you mean exactly? |
|
Is https://formatjs.io/docs/react-intl/api#formatnumber not appropriate here? |
|
@miles-grant-ibigroup I don't know. As you can see from the PR, there is already a It's more about passing the setting, whether to use imperial or metric all the way down to the components. |
|
Thanks for clarifying, I've discussed it with others and I think your approach is the best way to implement this feature. Once the PR is ready the approach has my approval! |
|
@miles-grant-ibigroup cool :-) Actually I have technical problems to complete the PR ... still this yarn linking stuff :-( There are really more countries (luckily IMO) using the metric system than the imperial one ;-) |

…body