因此,当我尝试致电calculateroute.json
时,出现了NGEO_ERROR_GRAPH_DISCONNECTED
错误,没有更多信息。
这是我的示例呼叫:https://route.api.here.com/routing/7.2/calculateroute.json?app_id=<APP_ID>&app_code=<APP_CODE>&waypoint0=geo!-34.0144128,151.1121957&waypoint1=geo!-33.875455,151.207583&mode=fastest;car;traffic:enabled&departure=2019-11-11T22:27:30
很明显,我已从该调用中删除了我们的应用ID和应用代码:)。
{
"_type": "ns2:RoutingServiceErrorType",
"type": "ApplicationError",
"subtype": "NoRouteFound",
"details": "Error is NGEO_ERROR_GRAPH_DISCONNECTED",
"additionalData": [
{
"key": "error_code",
"value": "NGEO_ERROR_GRAPH_DISCONNECTED"
}
],
"metaInfo": {
"timestamp": "2019-11-08T00:43:18Z",
"mapVersion": "8.30.102.150",
"moduleVersion": "7.2.201944-5674",
"interfaceVersion": "2.6.74",
"availableMapVersion": [
"8.30.102.150"
]
}
}
有什么想法吗?
我尝试浏览文档,但似乎我做对了所有事情,并且肯定它对我们有用了数百/千次。
答案 0 :(得分:0)
的确,我看到默认的路由API在起点和终点之间找不到直接路线。如果您使用我们的高级Fleet远程信息处理API,它实际上会计算出路线。
https://fleet.api.here.com/2/calculateroute.json?app_id=<APP_ID>&app_code=<APP_CODE>&waypoint0=geo!-34.0144128,151.1121957&waypoint1=geo!-33.875455,151.207583&mode=fastest;car;traffic:enabled&departure=2019-11-11T22:27:30
如果标准API未返回结果,请使用高级API。