pawan-pk / react-native-mapbox-navigation

Mapbox React Native SDKs enable interactive maps and real-time, traffic-aware turn-by-turn navigation, dynamically adjusting routes to avoid congestion.
MIT License
11 stars 4 forks source link

Measurement system issue #11

Closed Nocolais95 closed 2 days ago

Nocolais95 commented 3 weeks ago

Hi my friend.

I've faced this issue while testing. I´m from Argentina and my country uses the metric system as the measurement system (m, km, etc.)

When I set language in 'es-ES', it works correctly, but the measurement system it uses is Android's. Actually, if I set it to Spanish (US), it defaults to the imperial system used there (feet, yards, etc.).

It should use the metric system based on the language I provide.

A possible solution could be to make the bottom banner, where this data is displayed, optional with a boolean.

16830b0b-fae1-49df-aa02-927c9c0d5c64

9462a13b-482c-419d-8676-1eb99094a9ff

Shahbaz334 commented 3 weeks ago

hi brother how you can solve this issue onm android

Screenshot 2024-08-23 at 1 21 17 AM

Received status code 401 from server: Unauthorized

pawan-pk commented 3 weeks ago

hi brother how you can solve this issue onm android Screenshot 2024-08-23 at 1 21 17 AM Received status code 401 from server: Unauthorized

See Issue-10

LeonSoler commented 5 days ago

i would also like this feature!

LeonSoler commented 5 days ago

Hi my friend.

I've faced this issue while testing. I´m from Argentina and my country uses the metric system as the measurement system (m, km, etc.)

When I set language in 'es-ES', it works correctly, but the measurement system it uses is Android's. Actually, if I set it to Spanish (US), it defaults to the imperial system used there (feet, yards, etc.).

It should use the metric system based on the language I provide.

A possible solution could be to make the bottom banner, where this data is displayed, optional with a boolean.

16830b0b-fae1-49df-aa02-927c9c0d5c64

9462a13b-482c-419d-8676-1eb99094a9ff

image

If you change the emulators language to spanish-AR it will automatically trigger the units into metric units

Nocolais95 commented 4 days ago

Hi my friend. I've faced this issue while testing. I´m from Argentina and my country uses the metric system as the measurement system (m, km, etc.) When I set language in 'es-ES', it works correctly, but the measurement system it uses is Android's. Actually, if I set it to Spanish (US), it defaults to the imperial system used there (feet, yards, etc.). It should use the metric system based on the language I provide. A possible solution could be to make the bottom banner, where this data is displayed, optional with a boolean. 16830b0b-fae1-49df-aa02-927c9c0d5c64 9462a13b-482c-419d-8676-1eb99094a9ff

image

If you change the emulators language to spanish-AR it will automatically trigger the units into metric units

Thanks, my friend. Where can I change the language?

The first and second images cannot be viewed.

pawan-pk commented 2 days ago

@Nocolais95 Added Requested support Release 0.4.1 (2024-09-09)