-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.