flutter_mapbox_navigation icon indicating copy to clipboard operation
flutter_mapbox_navigation copied to clipboard

Units are not set right on iOS

Open ulrichbjerre opened this issue 4 years ago • 1 comments

I'm using metric units (see settings below), but the units does not match on the iOS platform (see video): The units on iOS are imperial. The units on Android are metric.

Simulation test with v0.0.19 Simulated on:

  • Physical iPhone 8 running iOS 14.4.2
  • iPhone simulator running iOS 13.5
  • Flutter simulator running Android 9
  • Physical Huawei P20 lite running Android 8.0

Video/screen recordings of simulation behaviours are available here: https://drive.google.com/drive/folders/1XDpenC7-0i_ZRdj6G8a_TMvYX_-qPm9M?usp=sharing

Using the example application. Using the "Start Multi Stop" function (button) Using these waypoints (with start = stop)

	Lat		Lng

Origin 56.1395 8.9591 (START) WayPoint1 56.1370 8.9596 WayPoint2 56.1396 8.9631 WayPoint3 56.1405 8.9636 WayPoint5 56.1395 8.9591 (STOP)

MapboxOptions:

_options = MapBoxOptions(
    //initialLatitude: 36.1175275,
    //initialLongitude: -115.1839524,
    zoom: 15.0,
    tilt: 0.0,
    bearing: 0.0,
    enableRefresh: false,
    alternatives: false,
    voiceInstructionsEnabled: true,
    bannerInstructionsEnabled: true,
    allowsUTurnAtWayPoints: false,
    mode: MapBoxNavigationMode.driving,
    units: VoiceUnits.imperial,
    simulateRoute: false,
    animateBuildRoute: true,
    longPressDestinationEnabled: true,
    language: "en");

Simulation options (in the Start Multi Stop method):

options: MapBoxOptions( mode: MapBoxNavigationMode.driving, simulateRoute: true, language: "en", allowsUTurnAtWayPoints: false, units: VoiceUnits.imperial));

ulrichbjerre avatar Apr 13 '21 11:04 ulrichbjerre

Any updates on this one?

ulrichbjerre avatar Jun 24 '21 22:06 ulrichbjerre

Stale issue message

eopeter avatar May 24 '23 01:05 eopeter

Hi, I'm having the same issue on iOS. Has this issue been fixed?

hainv-ohio avatar Jun 20 '23 07:06 hainv-ohio