Open kmadsen opened 4 years ago
Also interesting read from https://www.win.tue.nl/~vanwijk/zoompan.pdf#page=5
Created a notebook that tests the approach I had in mind for resolving this
It would be nice to add the bezier curves to mapbox-java. Reference to turf's spline https://github.com/Turfjs/turf/blob/master/packages/turf-bezier-spline/lib/spline.ts
Spent some time on the weekend trying to figure this out. I can build routes with curved intersections, but haven't figured out how to interpolate speeds across them yet.
Progress on this branch https://github.com/mapbox/mapbox-navigation-android/compare/km-add-route-bender?expand=1
I have a working prototype for this.
The new ReplayRouteMapper detects road edges with significant turns. The current route interpolator identifies corners, this ticket is to turn those corners into curves.
B-spines in mapbox-java
Why is this needed
Right now the simulated driver stays on route, and takes an early turn. The early turn also has an impact on reducing reroutes. As our enhanced location gets better, we will also need to improve the simulated driver or it will have more reroutes.
Nav native consideration
The enhanced location may want to smooth route edges. This could create a better experience for in ride navigation. cc: @mskurydin