calculateTaxiRoute abstract method

  1. @Deprecated("Will be removed in v4.28.0. Use the `calculate_route()` methods with RoutingOptions parameter instead.")
TaskHandle calculateTaxiRoute(
  1. List<Waypoint> waypoints,
  2. TaxiOptions taxiOptions,
  3. CalculateRouteCallback callback
)

Asynchronously calculates a taxi route from one point to another, passing through the given waypoints in the given order.

  • waypoints The list of waypoints used to calculate the route. The first element marks the starting position, the last marks the destination. Waypoints in between are interpreted as intermediate.

An RoutingError.invalidParameter error is generated when the waypoint list contains less than two elements or when the first and the last waypoints are not of type WaypointType.stopover.

  • taxiOptions Options specific for taxi route calculation, along with common route options. Note that OptimizationMode.shortest is is not supported for taxis and converted to OptimizationMode.fastest automatically.

  • callback Callback object that will be invoked after route calculation. It is always invoked on the main thread.

Returns TaskHandle. Handle that will be used to manipulate the execution of the task.

Implementation

@Deprecated("Will be removed in v4.28.0. Use the `calculate_route()` methods with RoutingOptions parameter instead.")

TaskHandle calculateTaxiRoute(List<Waypoint> waypoints, TaxiOptions taxiOptions, CalculateRouteCallback callback);