mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Automatic switching to Online Route

Open Udumft opened this issue 2 years ago • 0 comments

Description

Introduces the feature when we are driving the onboard build route and the same online version becomes available to automatically switch to it in order to receive live updates and refreshing.

Implementation

In order to correctly detect source of the original route, we have to allow configuring all related entities (NavigationViewController, NavigationService and Router) with an IndexedRouteResponse since it contains such information. Thus we also need to update API to request routes to return the correct type as well as deprecating other init methods. Online coincide route is detected through alternatives mechanism by checking if it completely follows the main route (in this case the deviation intersection is the last intersection on the route). User is able to disable the behavior via flag control.

Udumft avatar Jun 24 '22 11:06 Udumft