特定坐标的路线计算中可能存在错误

时间:2019-05-08 08:51:13

标签: here-api

当我尝试通过时请求路线

https://tce.cit.api.here.com/2/calculateroute.json?jsonAttributes=41&waypoint0=45.732686,4.931525&detail=1&waypoint1=45.438,10.993&routelegattributes=li&routeattributes=gr&maneuverattributes=none&linkattributes=none,rt,fl&legattributes=none,li,sm&currency=EUR&departure=&tollVehicleType=3&trailerType=2&trailersCount=1&vehicleNumberAxles=2&trailerNumberAxles=2&hybrid=0&emissionType=5&height=4m&trailerHeight=400&vehicleWeight=12000&limitedWeight=38t&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&tiresCount=6&commercial=1&heightAbove1stAxle=1m&width=2.55&length=18&mode=fastest;truck;traffic:enabled&rollup=none,country;tollsys&app_id=&app_code =&jsoncallback = parseRoutingResponse

我收到一条错误消息

“消息”:“路由器未返回任何路由,错误:{\” _ type \“:\” ns2:RoutingServiceErrorType \“,\” type \“:\” ApplicationError \“,\” subtype \“:\” NoRouteFound \“,\” details \“:\”错误为NGEO_ERROR_GRAPH_DISCONNECTED \“,\” additionalData \“:[{\” key \“:\” error_code \“,\” value \“:\” NGEO_ERROR_GRAPH_DISCONNECTED \“} ],\“ metaInfo \”:{\“ timestamp \”:\“ 2019-05-08T07:39:50Z \”,\“ mapVersion \”:\“ 8.30.96.152 \”,\“ moduleVersion \”:\ “ 7.2.201918-3326 \”,\“ interfaceVersion \”:\“ 2.6.56 \”,\“ availableMapVersion \”:[\“ 8.30.96.152 \”]}} \ n“

ignoreWaypointVehicleRestriction和mapMatchRadius请求参数无济于事。

当我将坐标从waypoint1 = 45.438,10.993更改为waypoint1 = 45.43,10.99时,一切正常。

1 个答案:

答案 0 :(得分:0)

您可以尝试以下效果很好的请求。

https://tce.cit.api.here.com/2/calculateroute.json?jsonAttributes=41&waypoint0=45.732686,4.931525&detail=1&waypoint1=45.438,10.993&routelegattributes=li&routeattributes=gr&maneuverattributes=none&linkattributes=none,rt,fl&legattributes=none,li,sm&currency=EUR&departure=&tollVehicleType=3&trailerType=0&trailersCount=2&vehicleNumberAxles=2&trailerNumberAxles=0&hybrid=0&emissionType=5&height=4m&trailerHeight=400&vehicleWeight=12000&disabledEquipped=0&minimalPollution=0&hov=0&passengersCount=1&tiresCount=4&commercial=1&heightAbove1stAxle=3m&width=2.5&length=7.2&mode=fastest;truck;traffic:enabled&rollup=none,country;tollsys&alternatives=2&app_id={app_id}&app_code= app_code}&jsoncallback=parseRoutingResponse

“ limitedWeight”是一个属性,该属性以指定的重量限制卡车进入,在您的路线请求的情况下,此限制为3.5t,因此在此之上它将限制请求,因此您的重量在3.5t以下会按预期工作。

See in route route path (waypoint0=45.732686,4.931525&detail=1&waypoint1=45.438,10.993) it is restrict for 3t limit weight.

希望这会有所帮助!