android - 如何将 Mapbox 折线解码精度更改为 5?

标签 android navigation mapbox osrm mapbox-android

据我所知,Mapbox SDK (RouteUtils.java) 使用精度 6 来解码折线,这会影响 Mapbox 导航。将精度为 6 的 DiresctionsRoute 传递给 startNavigation(directionsRoute) 时,每个导航监听器都能完美运行。但是当添加精度为 5 的 DirectionsRoute 时(因为它是 OSRM.V5 的默认精度)。没有听众正常工作。我该如何解决这个问题。

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.

最佳答案

关于android - 如何将 Mapbox 折线解码精度更改为 5?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45042426/

相关文章:

javascript - AngularJS 导航

html - 简单的导航栏(初学者)

java - Android Fragment 中的 Mapbox SDK

javascript - 在 MapBox 中的两个标记之间绘制线性动画线

android - 如何在主 fragment 中单击按钮时打开抽屉导航?

javascript - 将 json 对象从 Android/iOS native 传递到 javascript

android - 如何简单地打开目录/文件夹?

java - 在日/夜模式之间切换时启用平滑的 Activity 过渡

android - 检查导航图是否在 backstack 上

javascript - 在矩形、圆形和多边形内填充标记