Matrix Routing API和流量条件

时间:2014-07-18 16:09:40

标签: routing traffic here-api

TrafficMode属性如何影响calculatematrix端点的Matrix Routing结果? 我们来看看这个例子: https://developer.here.com/enterprise/apiexplorer/examples/api-for-rest/enterprise-routing/calculate-matrix.html 我试图将结果与选项流量进行比较:启用和禁用,但在不同位置的两种情况下结果都相同。 根据参考文献:“BaseTime”是保留总路线行程时间的属性,考虑到交通方式,但不包括交通信息。 如何考虑交通状况?

我也尝试过运行“Car Routing”示例: https://developer.here.com/enterprise/apiexplorer/examples/api-for-rest/enterprise-routing/car-route-from-a-to-b-ent.html 响应包含“TrafficTime”属性,但它具有与“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

对于计算器“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

0 个答案:

没有答案