Matrix路由API和流量条件

问题描述 投票:0回答:1

TrafficMode属性如何影响calculatematrix端点处矩阵路由的结果?让我们看一个例子:https://developer.here.com/enterprise/apiexplorer/examples/api-for-rest/enterprise-routing/calculate-matrix.html我尝试将结果与选项traffic:启用和禁用进行比较,但是两种情况下在不同位置上的结果都是相同的。根据参考:“ BaseTime”是保存总路线行驶时间的属性,其中考虑了运输方式,但未考虑交通信息。考虑交通状况,如何获得时间?

我也尝试运行“汽车路线选择”示例:https://developer.here.com/enterprise/apiexplorer/examples/api-for-rest/enterprise-routing/car-route-from-a-to-b-ent.html该响应包含“ TrafficTime”属性,但是尽管具有traffic选项:启用或禁用,它的值仍与“ BaseTime”相同。

所以问题是如何考虑当前的交通信息来获得交通时间?

P.S .:我尝试运行以下对calculatematrix的请求:

https://route.st.nlp.nokia.com/routing/6.2/calculatematrix.json?mode=shortest%3Bcar%3Btraffic%3Aenabled&start0=40.7790%2C-73.9622&destination0=40.7482%2C-73.9860&destination1=40.7558%2C-73.9870&destination2=40.7054%2C-73.9961&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg
https://route.st.nlp.nokia.com/routing/6.2/calculatematrix.json?mode=shortest%3Bcar%3Btraffic%3Adisabled&start0=40.7790%2C-73.9622&destination0=40.7482%2C-73.9860&destination1=40.7558%2C-73.9870&destination2=40.7054%2C-73.9961&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

并且对于calculateroute:

https://route.st.nlp.nokia.com/routing/6.2/calculateroute.json?waypoint0=48.8416%2C2.1260&waypoint1=48.8518%2C2.3091&mode=fastest%3Bcar%3Btraffic%3Aenabled&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg
https://route.st.nlp.nokia.com/routing/6.2/calculateroute.json?waypoint0=48.8416%2C2.1260&waypoint1=48.8518%2C2.3091&mode=fastest%3Bcar%3Btraffic%3Adisabled&app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg

对于calculateroute“ TrafficTime”:1388.0,“ BaseTime”:1388.0在两种情况下都是相同的(约23分钟)。 HERE地图上的相同点为BaseTime提供了36分钟,为TrafficTime提供了49分钟。

http://here.com/directions/drive/31,_Chemin_du_Cabaret,_78620_L'%C3%89tang-la-Ville,_%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%8F[48.87188435495411,2.07658168554687]/24,_Rue_Falgui%C3%A8re,_75015_%D0%9F%D0%B0%D1%80%D0%B8%D0%B6,_%D0%A4%D1%80%D0%B0%D0%BD%D1%86%D0%B8%D1%8F[48.84263282360221,2.316047907763675]/@a79afc8d3ff753307872c30fb9b449ea/map=48.8520703,2.381732,12,0,0,normal.day

截屏:

s12.postimg.org/3xpy4h9pp/screen.png
routing traffic here-api
1个回答
0
投票

请在此处查看当前的路由API:developer.here.com/documentation/routing

© www.soinside.com 2019 - 2024. All rights reserved.