1
votes

As I know Mapbox SDK (RouteUtils.java) uses precision of 6 to decode polyline and that affects Mapbox Navigation. When passing DiresctionsRoute with precision 6 to startNavigation(directionsRoute) every navigation listener works perfectly. But when adding DirectionsRoute with precision of 5 (as it's default precision from OSRM.V5). No listener works properly. How could I solve the problem.

NOTE: We're using OSRM.V5 in our server so it always returns route with precision of 5. And we aren't intended to use Mapbox's getRoute() as it's restricted at some point fro free users.

1

1 Answers