How to increase search radius for a road link for a waypoint (Fleet Telematics API)

♀尐吖头ヾ 提交于 2021-01-28 11:21:08

问题


I'm trying to calculate route summary for a truck using Fleet Telematics Custom Routes API (https://cle.api.here.com/2/calculateroute.json). And I'm getting an error saying: Cannot match lat/long onto a road link with 100.0m search radius.

The error is, in fact, correct since Truck is in the middle of a big warehouse and there are no roads in 100 radius.

So the question is how can I increase search radius to prevent this error. OR there are any other options?

Thanks in advance!


回答1:


You can add a radius parameter in meters after the position, ex for 500m:

waypoint0=geo!48.85718,2.34141;500

Source doc: https://developer.here.com/documentation/routing/topics/resource-param-type-waypoint.html



来源:https://stackoverflow.com/questions/53397388/how-to-increase-search-radius-for-a-road-link-for-a-waypoint-fleet-telematics-a

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!