在HERE中使用calculateroute来检索道路名称,并且在第一个航点之后停止提供

时间:2019-06-04 18:23:11

标签: here-api

问题:

*路名是从起点到第一个路标的。预计道路名称将从起点到终点。

我正在使用的请求参数:

routeRequestParams = {
    mode: 'fastest;truck',
    representation: 'display',
    routeattributes : 'waypoints,summary,shape,legs,summaryByCountry',
    maneuverattributes: 'direction,action,roadName,roadNumber',
    country:'USA',
    waypoint0: "47.60358,-122.32945",  //origin waypoint
    waypoint1: "42.4065,-113.3798",     //when a middle waypoint is added, road names are given till this waypoint and not the destination
    waypoint2: "42.2821,-83.74847",    //destination waypoint
}; 

参数可在此处找到

https://developer.here.com/documentation/routing/topics/resource-calculate-route.html

1 个答案:

答案 0 :(得分:0)

以下请求给出了从起点到终点的机动属性(路名,路号)。

https://route.api.here.com/routing/7.2/calculateroute.json?app_id=xxxx&app_code=yyyy&waypoint0=47.60358,-122.32945&waypoint1=42.4065,-113.3798&waypoint2=42.2821,-83.74847&mode=fastest;truck;traffic:disabled&representation=display&routeattributes=waypoints,summary,legs,summaryByCountry&maneuverattributes=direction,action,roadName,roadNumber

如果您仍然找不到路名,能否请您再次验证您的请求并提供您的输出?