如何防止 HERE 航点图出现较大偏差?

How to prevent large deviation on HERE way-point plot?

我有多达 50 个航路点的旅程,我想使用 HERE API 绘制,每张地图一个旅程。这些地图总体上看起来不错,但在某些情况下,路线在恢复之前偏离了旅程的弧线有几个点。

例如,这里有一个 HERE API map, and a non-snap-to-route map from GPS Visualizer, both from the same data. You can see the HERE route hugs the main roads but has a diversion or two, whereas the other plots point-to-point naively and has no diversion. The raw request (sans app-key and the last few way-points) is here

猜测是 GPS 漂移已将路径点稍微偏离主路并移到次要道路上,并且路由算法采取必要的改道以返回下一个点。

请问有人能建议一种方法或我可以调整的参数,以尽量减少偏差的数量或严重程度吗?

非常感谢!
尼基

地图图像路由API根据提供的waypoints计算路线。因此,您提供的 waypoints 会直接影响计算出的路线,而无需进行太多优化。在地图上绘制响应(matched/snapped 路线)之前,可能需要先使用 Fleet Telematics Route Matching API 计算给定 GPX 轨迹 (waypoints) 的最可能路线。