舰队远程信息处理航点序列响应时间

时间:2019-08-28 21:31:54

标签: here-api

我正在向12个目的地发出请求,响应时间约为13.6秒,与我使用的其他API相比,我认为这是很多时间,而相同的目的地则需要4秒。有办法可以更快地做到吗?这是我考虑获得Pro Plan的唯一主题。

我的请求在端点上: https://wse.api.here.com/2/findsequence.json

参数为: start = origem; -23.630479,-46.637881 && departure = 2015-08-17T07:30:00%2b01:00&destination1 = 441860; -31.747559,-52.399329;&destination2 = 443576; -28.256848,-52.456601;&destination3 = 440063; -6.3661229, -39.308801;&destination4 = 444208; -19.734489,-45.262761;&destination5 = 444225; -22.882374,-43.425541;&destination6 = 444506; -20.191885,-40.270924;&destination7 = 441313; -22.957170,-43.343008;&destination8 = 441316; -5.7276 -35.243387;&destination9 = 445037; -30.348000,-54.332883;&destination10 = 444983; -22.882374,-43.425541;之前:destination2&destination11 = 445061; -21.759055,-43.349938;&destination12 = 445044; -30.348000,-54.332883;&end = 23.630479,-46.637881&mode = fastest; car; traffic:disabled

1 个答案:

答案 0 :(得分:1)

您可以尝试新的语法,其中有一个响应时间调整参数“ firstWayPointReach”:

http://fleet.cit.api.here.com//2/calculateroute.json ?app_id = xxxxx&app_code = Xxx &mode = fastest; car; traffic:已禁用 &waypoint0 = -23.630479,-46.637881 &waypoint1 = -31.747559,-52.399329;排序 &waypoint2 = -28.256848,-52.456601;排序 &waypoint3 = -6.3661229,-39.308801;排序 &waypoint4 = -19.734489,-45.262761;排序 &waypoint5 = -22.882374,-43.425541;排序 &waypoint6 = -20.191885,-40.270924;排序 &waypoint7 = -22.957170,-43.343008;排序 &waypoint8 = -5.7276168,-35.243387;排序 &waypoint9 = -30.348000,-54.332883;排序 &waypoint10 = -22.882374,-43.425541; sort; before:2 &waypoint11 = -21.759055,-43.349938;排序 &waypoint12 = -30.348000,-54.332883;排序 &waypoint13 = -23.630479,-46.637881 &algopts = firstWayPointReach0.0

在更少的时间内找到相同的结果,但仍然需要几秒钟。