Incrementing leg index removes path traveled and the past leg
Currently we use navigation to pick up someone from a Waypoint and take them to the destination Waypoint. In some cases as the rider has joined before reaching his waypoint i want to mark this pickup waypoint as completed and reroute to destination and we do this by setting:
navigationService.routeProgress.legIndex += 1
The problem is this seem to recreate the route with the start point being my location and end point being the destination. What i want is to keep the previous leg and just reroute to destination on a new leg.
MapboxNavigation 1.0
This sounds quite similar to #1876. #1895 would’ve made it possible to incorporate previous routes in the current route progress, primarily for automatic rerouting, but the manual rerouting you’re describing would’ve been accounted for. However, #1895 was closed in anticipation of MapboxNavigationNative providing historic route progress functionality via #1980. Unfortunately, I don’t have anything newer to report, since the feature dropped in priority as soon as the functional but platform-specific Swift solution was abandoned.
Thanks for this feature request – it gives us a clearer understanding of the rationale for reprioritizing historic route progress functionality.
/cc @zugaldia @asinghal22
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.