这里api显示的是起点和终点相同的路线的较小的交通时间,但通过增加的航点。

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

为什么同样的到达出发时间,A到B的流量时间(最快)比A通过C到B的流量时间长?

V7请求:A到B:流量时间=4979秒。https:/route.ls.hereapi.comrouting7.2calculateroute.json?apiKey=KEY&waypoint0=32.6289624435649%2C35.079885159610136&waypoint1=32. 0155%2C34.7505&mode=fastest%3Bcar&combinedChange=true&language=he&instructionformat=text&article=2020-05-21T10:00:00.000Z。

A经C到B:流量时间=4936秒https:/route.ls.hereapi.comrouting7.2calculateroute.json?apiKey=KEY&waypoint0=32.6289624435649%2C35.079885159610136&waypoint1=32.119485%2C34. 938341&waypoint2=32.0155%2C34.7505&mode=fastest%3Bcar&combinedChange=true&language=he&instructionformat=text&出发时间=2020-05-21T10:00:00.000Z。

V8也A至B:持续时间=3987秒https:/router.hereapi.comv8routes?transportMode=car&return=travelSummary,summary,polyline,actions&origin=32.6289624435649,35.079885159610136&destination=32.0155,34.7505&apikey=KEY。

A经C到B:持续时间=3955秒。https:/router.hereapi.comv8routes?transportMode=car&return=travelSummary,summary,polyline,actions&origin=32.6289624435649,35.079885159610136&destination=32.0155,34.7505&via=32.119485,34.938341!stopDuration=0&apikey=KEY。

如果我要求显示几个备选方案(只有在没有 "到达 "参数的情况下才可用),我得到的是更快、更短的路线:V7 A到B的备选方案:最快的交通时间=4765。https:/route.ls.hereapi.comrouting7.2calculateroute.json?apiKey=KEY&waypoint0=32.6289624435649%2C35.079885159610136&waypoint1=32.0155%2C34. 7505&mode=fastest%3Bcar&combinedChange=true&language=he&instructionformat=text&article=2020-05-21T10:00:00.000Z&alternations=9。

here-api
1个回答
0
投票

在我们的终端创建相同的场景,清楚地表明,他们的路线是显着的变化,当我们指定的中间航点,在API中给出的减少旅行时间。

enter image description here

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