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

Issue : When i add second stop while navigating it starting from the starting location again. How to start from current route progress ?

Open jignya opened this issue 3 years ago • 4 comments

Mapbox Navigation SDK version

installed via cocoa pods - ios 11 target

Steps to reproduce

  1. Map load
  2. Route generate
  3. start navigation
  4. add secondary stop

Expected behavior

it should resume from current route progress instead of starting location

Actual behavior

it should resume from starting location

Is this a one-time issue or a repeatable issue?

repeatable

jignya avatar Mar 10 '22 12:03 jignya

HI @jignya! Thank you for your report. Could you provide some additional information such as the version of the Nav SDK you are using?

jill-cardamon avatar Mar 10 '22 15:03 jill-cardamon

I solved this by using [userLocation + remaining waypoints] to the Directions.shared.calculate. Then I remove the userLocation-waypoint that I get from the RouteResponse completion

Knapiii avatar Mar 25 '22 07:03 Knapiii

@Knapiii I am Interested to know how you added Waypoints while navigating... How did you do that?

JanTG1 avatar Apr 11 '22 17:04 JanTG1

@jignya, would you be able to provide a simple example of your current implementation. It is not fully clear how you add second destination after partly traversing initial route.

MaximAlien avatar May 13 '22 17:05 MaximAlien