计算路线时发生错误NGEO_ERROR_GRAPH_DISCONNECTED

时间:2019-07-09 07:55:57

标签: here-api

当我计算从坐标49.4935,0.5118到41.8114,2.7408(卡车+拖车40吨)的路线时,Web服务会返回错误400-错误的请求。 我已经使用示例https://tcs.ext.here.com/examples/v3/fleet_telematics_api进行了测试,这说明了原因:第二个航路点位于限制为7.5吨的区域中(参见图片)。 是否有可能从Web服务获取此错误,所以我可以提醒用户问题出在哪里?

Here example

1 个答案:

答案 0 :(得分:0)

提出请求时,您会收到以下回复:

{
    "issues": [
        {
            "message": "Couldn't reach way point 1 (start links 907492075 -907492075 907492077 -907492077 907493126 -907493126  dest links 719515104 -719515104 ), link 907492075 might restrict access for the vehicle type, link 907492075's through traffic restriction might apply, link 907492077 might restrict access for the vehicle type, link 907492077's through traffic restriction might apply, link 907493126's through traffic restriction might apply"
        },
        {
            "message": "Request id: bfb4932d-f159-4d3a-986e-77f6bc41b143"
        }
    ],
    "response": null,
    "error_id": "bfb4932d-f159-4d3a-986e-77f6bc41b143",
    "response_code": "400 Bad Request"
}

响应代码为400 Bad Request,但issues中还有一条消息列表,可用于提醒用户。