Periodically refresh the route with the latest traffic and ETAs #2284
Labels
feature
New feature request.
op-ex
Refactoring, Tech Debt or any other operational excellence work.
platform parity
Required to keep on par with Android.
topic: directions
Milestone
During turn-by-turn navigation, the SDK should periodically update the current route’s attributes and ETAs to reflect changing traffic conditions.
A specialized Directions API returns a sparse response that we’ll need to merge into the existing route and route progress models. This will require the ability to mutate the route model without recreating it from scratch. Currently most of the properties in Route, RouteLeg, etc. are constant. MapboxDirections.swift could define mutable subclasses, or define these types to structures that come with mutability built-in, or implement built-in methods for merging in updated data.
The route refreshing feature will complement two other forms of updates the SDK already performs: proactive rerouting periodically checks for a more optimal route than the current one, while ETA refreshing simply updates the ETA to reflect whether the user is keeping pace.
This feature has already been implemented on Android in mapbox/mapbox-navigation-android#1855.
/cc @mapbox/navigation-ios
The text was updated successfully, but these errors were encountered: