startNavigationFromUserLocation method

Future<void> startNavigationFromUserLocation({
  1. required Coordinate destination,
})

start the navigation from user location to the given coordinates

this method will start the navigation from the user location to the given coordinates, and in case no user location is found, the VPS scan will be triggered automatically to have a position

Implementation

Future<void> startNavigationFromUserLocation(
    {required Coordinate destination}) async {
  if (kDebugMode) {
    print("wemapMap : startNavigationFromUserLocation");
  }
  await _channel.invokeMethod('startNavigationFromUserLocation',
      {"destination": destination.toMap()});
}