问题标签 [here-fleet-telematics]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
49 浏览

python - HERE 请求如何为 params 中的键分配多个值

我正在尝试使用FindSequence APIn个目的地获取最佳路线。这是我的代码:

Wherefirstlast是带有目的地名称的字符串;lat,long

  • first = "HARDIE'S MOBILE HOME PARK; 30.44126118, -86.6240656099999"
  • last = "HOUSTON PARK MOBILE HOME PARK; 30.4424195300001, -86.64733076"

并且f是一个列表,其中包含路线在到达last目的地之前必须经过的其他点。

但是,它看起来只是“读取”firstlast数据点,并且完全忽略了 list 中的其他两个目的地f。这是我得到的输出:

所需的输出必须如下所示:

并且可以使用以下代码获得所需的输出:

虽然上面的代码工作得很好,但这不是最好的方法,因为我需要通过的不仅仅是 2 个目的地。我是 HERE APIs 的新手,所以如果有人知道该怎么做,我将非常感谢您的帮助!

0 投票
2 回答
71 浏览

here-api - 使用 HERE Rest API 的最佳实践 - 直接通过客户端或通过我的后端服务器

我打算使用 HERE Fleet Telematics API。但是我不确定是否可以公开 apiKey

调用 API 的最佳做法是什么?直接通过客户端调用它或对我的后端服务器进行客户端调用并让服务器向 HERE API 发出请求?

谢谢!

0 投票
0 回答
50 浏览

here-api - 如何为路线指定车辆类型

阅读 HERE Fleet Telematics API 文档,更具体地说,这里似乎可以指定车辆类型来计算路线(例如,指定出租车以考虑出租车道)。我找不到使用此参数的任何示例,特别是我需要 Android Premium Sdk 中提供此功能。使用最新版本 (3.17) 并按照此处显示的示例,似乎只能指定仅考虑 CAR、TRUCK、PEDESTRIAN、SCOOTER、BICYCLE 和 BUS 的 TransportMode。有什么建议么?

0 投票
0 回答
31 浏览

here-api - 关于 TracePoints.matchDistance 值的 Fleet api 文档?

我正在使用车队休息 API 来获得匹配的跟踪。

几个月前,我可以得到答案的描述和包含的值,例如:

我再也找不到这方面的文档了。

这是否意味着将来不再提供这些功能?

我仍然会得到这些值来响应 mapmatching 调用,并希望继续使用它们。

0 投票
0 回答
63 浏览

javascript - HERE API Fleet Telematrics 搜索超时问题

''由于搜索超时,无法到达航路点 61''

我正在通过 66 个航路点(都在一个城市),使用 ;sort 来获得优化的路线。但是 6 个坐标会导致这个问题。如果我删除这 6 个坐标,我会得到路线。但有趣的部分是,如果我将这 6 个坐标与其他几个坐标(少于 15-20 个)一起使用,它也会返回路线。但是,如果我将这 6 个中的至少一个与所有其他人一起使用,那么我就会遇到这个问题。此外,所有坐标都是真实的,靠近道路,真实地址。任何人都有类似的经验,或者有没有人有这个问题的一些提示或解决方案?

网址:

https://fleet.ls.hereapi.com/2/calculateroute.json?driver_cost=10&mode=fastest;car&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&waypoint0=26.28435464,50.66609614&waypoint1=26.28354691,50.66660475;sort&waypoint2=26.28365760,50.66729720;sort&waypoint3=26.28300850,50.67023948;sort&waypoint4 =26.28420433,50.66883098;sort&waypoint5=26.28480910,50.66964790;sort&waypoint6=26.28524086,50.66912216;sort&waypoint7=26.28476347,50.67000680;sort&waypoint8=26.28525136,50.67006078;sort&waypoint9=26.28565090,50.67102560;sort&waypoint10=26.28538838,50.67151906;sort&waypoint11=26.28546181,50.67206564;sort&waypoint12=26.28641037 ,50.67139447;sort&waypoint13=26.28664951,50.67096278;sort&waypoint14=26.28725490,50.66798743;sort&waypoint15=26.28601064,50.66605126;sort&waypoint16=2​​6.28587185,66453207;sort&waypoint17=26.28829740,50.66525650;sort&waypoint18=26.28835769,50.66516772;sort&waypoint19=26.28880213,50.66828758;sort&waypoint20=26.28933175,50.66765249;sort&waypoint21=26.29071799,50.66837427;sort&waypoint22=26.29047578,50.66462576;sort&waypoint23=26.29154600,50.66407620;sort&waypoint24=26.21900607,50.58650687; sort&waypoint25=26.28538838,50.67151906;sort&waypoint26=26.28565090,50.67102560;sort&waypoint27=26.30043171,50.66140831;sort&waypoint28=26.27487289,50.67261694;sort&waypoint29=26.29704576,50.66347105;sort&waypoint30=26.29295116,50.66598915;sort&waypoint31=26.26899440,50.67699120;sort&waypoint32=26.28354691,50.66660475;sort&waypoint33= 26.28933340,50.66765410;sort&waypoint34=26.29883209,50.65907657;sort&waypoint35=26.29154594,50.66407643;sort&waypoint36=26.27282930,50.66923155;sort&waypoint37=26.27306630,50.66934220;sort&waypoint38=26.28880213,50.66828758;sort&waypoint39=26.29241254,50.66866770;sort&waypoint40=26.27461814,50.67238616;sort&waypoint41=26.29687716,50.66764486;sort&waypoint42=26.28835769,50.66516772;sort&waypoint43=26.29800729,50.66936374;sort&waypoint44= 26.29028945,50.67419440;sort&waypoint45=26.28480910,50.66964790;sort&waypoint46=26.29666130,50.65842569;sort&waypoint47=26.28435464,50.66609614;sort&waypoint48=26.28546181,50.67206564;sort&waypoint49=26.29848258,50.66208736;sort&waypoint50=26.28833090,50.65991560;sort&waypoint51=26.29879847,50.65897150;sort&waypoint52=26.29483552, 50.65967523;sort&waypoint53=26.28587181,50.66453207;sort&waypoint54=26.29384799,50.66423309;sort&waypoint55=26.28525136,50.67006078;sort&waypoint56=26.28641299,50.67142059;sort&waypoint57=26.29909413,50.65938893;sort&waypoint58=26.28476347,50.67000680;sort&waypoint59=26.28365760,50.66729720;sort&waypoint60=26.28524086,50.66912216;sort&waypoint61=26.29652180,50.66269719;sort&waypoint62=26.28641037,50.67139447;sort&waypoint63=26.28829769,50.66525660; sort&waypoint64=26.28725490,50.66798743;sort&waypoint65=26.28300850,50.67023948;sort&waypoint66=26.26944969,50.67688331;sort&waypoint67=26.29239901,50.66865161;sort&waypoint68=26.28933175,50.66765249;sort&waypoint69=26.26920910,50.67701430;sort&waypoint70=26.29794056,50.66247046;sort&waypoint71=26.29844976,50.65887384;sort&waypoint72= 26.29048574,50.66465447;sort&waypoint73=26.28829740,50.66525650;sort&waypoint74=26.29047578,50.66462576;sort&waypoint75=26.29154600,50.66407620;sort&waypoint76=26.28480910,50.66964790;sort&waypoint77=26.29774430,50.66970080;sort&waypoint78=26.28933340,50.66765410;sort&waypoint79=26.28601064,50.66605126;sort&waypoint80=26.29298637,50.66598248;sort&waypoint81=26.28420433,50.66883098;sort&waypoint82=26.29666130,50.65842569;sort&waypoint83= 26.28365760,50.66729720;sort&waypoint84=26.29071799,50.66837427;sort&waypoint85=26.29298637,50.66597342;sort&waypoint86=26.28664951,50.67096278;sort&waypoint87=26.29730176,50.66319460;sort&waypoint88=26.28829740,50.66525650;sort&waypoint89=26.29474720,50.66185758;sort&waypoint90=26.21900607,50.58650687sort&waypoint79=26.28601064,50.66605126;sort&waypoint80=26.29298637,50.66598248;sort&waypoint81=26.28420433,50.66883098;sort&waypoint82=26.29666130,50.65842569;sort&waypoint83=26.28365760,50.66729720;sort&waypoint84=26.29071799,50.66837427;sort&waypoint85=26.29298637,50.66597342;sort&waypoint86=26.28664951,50.67096278;sort&waypoint87= 26.29730176,50.66319460;sort&waypoint88=26.28829740,50.66525650;sort&waypoint89=26.29474720,50.66185758;sort&waypoint90=26.21900607,50.58650687sort&waypoint79=26.28601064,50.66605126;sort&waypoint80=26.29298637,50.66598248;sort&waypoint81=26.28420433,50.66883098;sort&waypoint82=26.29666130,50.65842569;sort&waypoint83=26.28365760,50.66729720;sort&waypoint84=26.29071799,50.66837427;sort&waypoint85=26.29298637,50.66597342;sort&waypoint86=26.28664951,50.67096278;sort&waypoint87= 26.29730176,50.66319460;sort&waypoint88=26.28829740,50.66525650;sort&waypoint89=26.29474720,50.66185758;sort&waypoint90=26.21900607,50.5865068728664951,50.67096278;sort&waypoint87=26.29730176,50.66319460;sort&waypoint88=26.28829740,50.66525650;sort&waypoint89=26.29474720,50.66185758;sort056077,20.581628664951,50.67096278;sort&waypoint87=26.29730176,50.66319460;sort&waypoint88=26.28829740,50.66525650;sort&waypoint89=26.29474720,50.66185758;sort056077,20.5816

0 投票
1 回答
40 浏览

here-api - 获取最近的“link_id”来协调

我已经联系过这里,但他们建议我在这里问。 有人有办法通过Here API获得最接近坐标的“link_id”吗?

0 投票
2 回答
217 浏览

here-api - 如何在路由 V8 中使用 Fleet Telematics

在 Fleet Telematics 的 API 参考中,它说您可以使用 Here Routing V8 来计算路线。但是,当我尝试发送请求(带有来源、目的地、传输和显然 API 密钥)时,它总是返回错误 404。那么使用舰队远程信息处理/v8/路由的正确方法是什么?

这是使用 Here Routing 发出的请求(我删除了图片的 API 密钥):
这是使用 Here Routing 发出的请求(我删除了图片的 API 密钥)

这与 Fleet Telematics 的要求相同:
这与 Fleet Telematics 的要求相同

0 投票
1 回答
72 浏览

rest - FleetApi - 如何使用法定休息时间?

我想知道给定航路点驾驶员需要休息的位置。

我使用以下参数调用 GET https://fleet.ls.hereapi.com/2/calculateroute.json :

这将返回带有休息时间信息的警告,如下所示:

我想知道如何使用/阅读此信息。我不知道 routeLinkSeqNum 是什么以及如何使用它。

0 投票
0 回答
29 浏览

here-api - 拖动时仅使用主干道

创建从 42.108311,-8.618618999999999 到 52.2947946,11.6822273 的路由。我尝试将路线从 Villadolid 拖到 N-610 路,屏幕https://snipboard.io/CR6wVn.jpg,正确预绘制。松开鼠标后,路线不同,Cuenca de Campos向东转,画面https://snipboard.io/VWJ1vL.jpg。怎么可能只有主干道用的时候拖拉?

像这样拖动请求

https://fleet.ls.hereapi.com/2/calculateroute.json?xnlp=jsonAttributes%3D41&app_id=***&app_code=***&apikey=***&mode=truck%3Bfastest%3Btraffic%3Adisabled&language=en-GB&representation =overview&metricSystem=metric&routeattributes=wp%2Csc%2Csm%2Csh%2Cbb%2Clg%2Cno%2Cshape&legattributes=wp%2Cmn%2Cli%2Cle%2Ctt&maneuverattributes=po%2Csh%2Ctt%2Cle%2Cti%2Cli%2Cpt%2Cpl%2Crn%2Cnr %2Cdi&linkattributes=sh%2Cle%2Csl%2Cds%2Ctr&instructionformat=html&trailersCount=0&alternatives=0¤cy=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&emissionType=5&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=40t&width=225&length=16.5m&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount= 1&商业=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none%2Ccountry%3Btollsys&requestId=1629721987441&excludeCountries=CHE&truckRestrictionPenalty=soft&waypoint0=geo!42.1083257%2C-8.6184468&waypoint1=geo!42.037725092800514%2C-5.039375866201198&waypoint2=geo!52.2952544%2C11.6801417&jsoncallback=H.service. jsonp.handleResponse(12)

0 投票
1 回答
82 浏览

here-api - 支付往返费用的巨大差异

从 46.371399% 2C2.569599 到 50.53027% 2C9.68613 的路线在法国花费 254.4 欧元,在法国返回 74.2 欧元。为什么会有这样的差异?

254.4 欧元 https://fleet.ls.hereapi.com/2/calculateroute.json?xnlp=jsonAttributes%3D41&app_id=&app_code=&apikey=&mode=truck%3Bfastest%3Btraffic%3Adisabled&language=en-GB&representation=overview&metricSystem=metric&routeattributes=wp%2Csc% 2Csm%2Csh%2Cbb%2Clg%2Cno%2Cshape&legattributes=wp%2Cmn%2Cli%2Cle%2Ctt&maneuverattributes=po%2Csh%2Ctt%2Cle%2Cti%2Cli%2Cpt%2Cpl%2Crn%2Cnr%2Cdi&linkattributes=sh%2Cle%2Csl% 2Cds%2Ctr&instructionformat=html&trailersCount=0&alternatives=0¤cy=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=40t&width=225&length=16.5m&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&commercial=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none%2Ccountry%3Btollsys&requestId=1631897604381​​&excludeCountries=CHE&truckRestrictionPenalty=strict&emissionType=6&shippedhazardousgoods=0&waypoint0=geo!46.371399%2C2.569599&waypoint1=geo!50.53027%2C9.68613&jsoncallback=H.service.jsonp.handleResponse(17)

74.2 欧元 https://fleet.ls.hereapi.com/2/calculateroute.json?xnlp=jsonAttributes%3D41&app_id=&app_code=&apikey=&mode=truck%3Bfastest%3Btraffic%3Adisabled&language=en-GB&representation=overview&metricSystem=metric&routeattributes=wp%2Csc% 2Csm%2Csh%2Cbb%2Clg%2Cno%2Cshape&legattributes=wp%2Cmn%2Cli%2Cle%2Ctt&maneuverattributes=po%2Csh%2Ctt%2Cle%2Cti%2Cli%2Cpt%2Cpl%2Crn%2Cnr%2Cdi&linkattributes=sh%2Cle%2Csl% 2Cds%2Ctr&instructionformat=html&trailersCount=0&alternatives=0¤cy=EUR&trailerType=2&vehicleNumberAxles=2&trailerNumberAxles=3&hybrid=0&height=4m&trailerHeight=400&vehicleWeight=8000&limitedWeight=40t&width=225&length=16.5m&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&commercial=1&heightAbove1stAxle=300&fuelType=Diesel&detail=1&rollup=none%2Ccountry%3Btollsys&requestId=1631897604381​​&excludeCountries=CHE&truckRestrictionPenalty=strict&emissionType=6&shippedhazardousgoods=0&waypoint1=geo!46.371399%2C2.569599&waypoint0=geo!50.53027%2C9.68613&jsoncallback=H.service.jsonp.handleResponse(17)