addItinerary method

Future<void> addItinerary(
  1. Coordinate origin,
  2. Coordinate destination, {
  3. bool avoidElevators = false,
  4. bool avoidEscalators = false,
  5. bool avoidStairs = false,
})

add itinerary from an origin coordinate to a specified destination

Implementation

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