有没有办法让 calculateRoute 函数考虑航路点半径?
Is there a way to make calculateRoute function take into account the waypoint radius?
当使用 calculate route
api 和 !geo
waypoints 和半径 https://developer.here.com/documentation/routing/dev_guide/topics/resource-param-type-waypoint.html 时,我希望路由算法找到一条路由(最快,定义在参数)通过航路点的周围环境。
不幸的是,半径被忽略了,路由算法returns一条路线恰好通过了这个点——可以是。在路的另一边。这会导致很多不必要的掉头并使输出无法使用。半径单位是米吗,如何让半径按预期工作?
请参阅下面的示例请求:
/routing/7.2/calculateroute.json?app_id=*****&app_code=*********&waypoint0=geo!52.59056113201988,13.400831222534181&waypoint1=geo!52.617119794673464,13.387699127197267,500&waypoint2=geo!52.63954788026919,13.364953994750978,500&mode=fastest;car;traffic:enabled&alternatives=0&departure=2019-12-11T05:31:08.633Z&routeAttributes=shape
半径前应该用分号代替逗号,所以:
... waypoint1=geo!52.617119794673464,13.387699127197267;500& ...
当使用 calculate route
api 和 !geo
waypoints 和半径 https://developer.here.com/documentation/routing/dev_guide/topics/resource-param-type-waypoint.html 时,我希望路由算法找到一条路由(最快,定义在参数)通过航路点的周围环境。
不幸的是,半径被忽略了,路由算法returns一条路线恰好通过了这个点——可以是。在路的另一边。这会导致很多不必要的掉头并使输出无法使用。半径单位是米吗,如何让半径按预期工作?
请参阅下面的示例请求:
/routing/7.2/calculateroute.json?app_id=*****&app_code=*********&waypoint0=geo!52.59056113201988,13.400831222534181&waypoint1=geo!52.617119794673464,13.387699127197267,500&waypoint2=geo!52.63954788026919,13.364953994750978,500&mode=fastest;car;traffic:enabled&alternatives=0&departure=2019-12-11T05:31:08.633Z&routeAttributes=shape
半径前应该用分号代替逗号,所以:
... waypoint1=geo!52.617119794673464,13.387699127197267;500& ...