eopeter / flutter_mapbox_navigation

Turn By Turn Navigation for Your Flutter Application
Apache License 2.0
217 stars 187 forks source link

in navigation bar the remaining distance always show in metric. #322

Closed fabioqueiros closed 10 months ago

fabioqueiros commented 1 year ago

even instantiating the units Navigation Options as metric, the navigation panel always show the distance in imperial units.

fabioqueiros commented 1 year ago

The navigation are getting the android systems locale. So if you set the locale to US, the navigation will be in imperial (no care if you select metric).

Do you know if the sdk has a way to override android system units and use the user configured ones?

eopeter commented 1 year ago

It uses the device settings in some scenarios. Adjust your device to see if it picks it up. I have a PR coming that fixes this issue

fabioqueiros commented 1 year ago

Yes, if i set my device to english UK (instead of US) it works in metric systems. do you have some idea when you will push the PR?

samderlust commented 1 year ago

@fabioqueiros i set language: "en-uk", do the job for me.

eopeter commented 10 months ago

Stale issue message