在计算起点和目的地之间的路线时,我想避开高速公路。
https://router.hereapi.com/v8/routes?transportMode=car&motorway:-1&origin=52.120066,11.570918&destination=52.282376,6.687846&return=travelsummary,polyline&apikey=<key>
但是上面的查询不起作用,它不能避开高速公路。
参考文件:guide/topics/resource-param-type-routing-mode.html
我已经检查了他们的路线是否可行,以避开高速公路。
https://www.google.com/maps/dir/'52.120066,11.570918'/'52.282376,6.687846'/@52.3407684,7.9868359,8z/data=!3m1!4b1!4m12!4m11!1m3!2m2!1d11.570918!2d52.120066!1m3!2m2!1d6.687846!2d52.282376!2m1!1b1!3e0
发布于 2020-05-14 16:54:56
根据路由v8文档,避免所有高速公路的合适参数是avoid[features]=controlledAccessHighway
而不是motorway:-1
https://router.hereapi.com/v8/routes?transportMode=car&avoid[features]=controlledAccessHighway&origin=52.120066,11.570918&destination=52.282376,6.687846&return=travelsummary,polyline&apikey=..
备注:使用tollRoad
可能更有价值,因为它允许高速公路不收费(例如在德国)
https://stackoverflow.com/questions/61798905
复制相似问题