reset step and leg indexes when reroute occurs#52
Conversation
|
Hey @cammace ! |
|
Hey there @Grsmto, thanks for reporting this. To clarify, you're using the SNAPSHOT build or master? I've actually been removing the How exactly is the |
|
Hey! I'm using the SNAPSHOT build afaik ( Edit: Ok I forked the project, I'll setup an activity with my implementation and let you know when I reproduce the issue in that environment. |
|
Hi @cammace ! |
|
I'll take a look at your test. I haven't been testing offroute with the |
|
I have fixed the index issue in #56, thanks for reporting and providing a sample to reproduce. The reason snapping to the route isn't working is actually shown in your example, only the location object provided inside OnProgress and AlertLevel are the snapped positions. The Map SDK still gets the true user location. The location plugin in mapbox/mapbox-plugins-android#22 will fix this :) If you are still running into issues, could you open a ticket so I can look further into it? |
|
Hi, awesome! |
Closes #48
rerouting wouldn't reset the index counts which caused off-route to measure the distance to the wrong step.