这里api,不正确的限速值

Here api, incorrect Speed Limit value

我有一个 NavigationManager.PositionListener 实现,应该显示在 UIonPositionUpdated 速度限制值中,但看起来 returns 不正确的值

Log.d("SPEEDLIMIT", "" + navigationManager.getHighSpeedWarningBoundary() + " - offset = " + navigationManager.getHighSpeedWarningOffset());

总是returns:

SPEEDLIMIT: 22.222223 - offset = 2.777778

顺便说一句,onSpeedExceeded returns 另一个值,例如:15.555556 但是 getHighSpeedWarningBoundary 仍然 returns 22.222223

检查我转换的值 (m/sec->mph) 并检查互联网上的道路信息。

p.s:

我在模拟模式下测试过

api v 3.3

请使用RoadElement#getSpeedLimit() to fetch the speed of the current road element. You can fetch the current matched RoadElement from PositioningManager#getRoadElement().