addItineraryFromUserLocation method

Future<void> addItineraryFromUserLocation(
  1. Coordinate coordinate, {
  2. bool avoidElevators = false,
  3. bool avoidEscalators = false,
  4. bool avoidStairs = false,
})

add itinerary from user location to the specified destination

Implementation

Future<void> addItineraryFromUserLocation(Coordinate coordinate,
    {bool avoidElevators = false,
    bool avoidEscalators = false,
    bool avoidStairs = false}) async {
  await _channel.invokeMethod('addItineraryFromUserLocation', {
    "destination": coordinate.toMap(),
    "avoidElevators": avoidElevators,
    "avoidEscalators": avoidEscalators,
    "avoidStairs": avoidStairs
  });
}