calculateRoute method - TransitRoutingEngine class - routing library - Dart API
calculateRoute
calculateRoute abstract method
- TransitWaypoint startingPoint,
- TransitWaypoint destination,
- TransitRouteOptions routeOptions,
- CalculateRouteCallback callback,
Asynchronously calculates a public transit route from the origin to the destination.
-
startingPointPosition of starting point. -
destinationPosition of destination. -
routeOptionsOptions for public transit route calculation. -
callbackCallback 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
TaskHandle calculateRoute(TransitWaypoint startingPoint, TransitWaypoint destination, TransitRouteOptions routeOptions, CalculateRouteCallback callback);