CalculateTrafficOnRouteCallback typedef
A function which is called by the RoutingEngine after route traffic calculation has completed.
It is always called on the main thread.
The first argument is the error in case of a failure. It is null for an operation that succeeds.
The second argument is the calculated route traffic. It is null in case of an error.
-
routingErrorThe error in case of a failure. It isnullfor an operation that succeeds. -
trafficOnRouteThe calculated route traffic. It isnullin case of an error.
Implementation
typedef CalculateTrafficOnRouteCallback = void Function(RoutingError? routingError, TrafficOnRoute? trafficOnRoute);