updateCurrentLocation abstract method

void updateCurrentLocation(
  1. MapMatchedLocation mapMatchedLocation,
  2. 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.

Implementation

void updateCurrentLocation(MapMatchedLocation mapMatchedLocation, int sectionIndex);