start abstract method
- Route route,
- DynamicRoutingListener listener
Starts polling the HERE backend services to find a better route, as defined by the DynamicRoutingEngineOptions.
Note: The engine will be internally stopped, if it was started before. Therefore, it is not necessary to stop the engine before starting it again.
-
routeThe route to be refreshed. The route must contain a RouteHandle, therefore the route must have been requested with RouteOptions.enableRouteHandle set totrue. The information to calculate new routes will be extracted from the provided route parameter. If more information from the original waypoints is important besides their location, consider to use one of the overloaded methods instead. -
listenerThe listener to receive the events.
Throws DynamicRoutingEngineStartException. when the passed parameter are invalid.
Implementation
void start(Route route, DynamicRoutingListener listener);