updateCurrentLocation abstract method
- MapMatchedLocation mapMatchedLocation,
- int sectionIndex
Updates the current location.
This location will be used as new starting point when the next
DynamicRoutingEngineOptions.pollInterval is reached and a new route is requested.
If an immediate route update is needed, consider to use the RoutingEngine instead.
All subsequently calculated routes used for the ETA calculation will start from this location.
The location needs to lie on the route or a RoutingError will be issued.
-
mapMatchedLocationThe last known location. It is recommended to use a NavigableLocation.mapMatchedLocation as the driver is expected to be on a road. -
sectionIndexThe current section from RouteProgress.sectionIndex.
Implementation
void updateCurrentLocation(MapMatchedLocation mapMatchedLocation, int sectionIndex);