here.com API 给出 ​​400 个错误的请求错误

时间:2021-04-06 17:43:18

标签: javascript routes here-api

我正在使用 here.com api 来计算美国乔治亚州劳伦斯维尔和洛克伯恩博士的两个位置之间的距离,请参阅下面的网址

https://route.ls.hereapi.com/routing/7.2/calculateroute.json?apiKey=API_KEY&waypoint0=geo!33.95312,-83.98804&waypoint1=geo!39.26732,-84.54907&routeattributes=wp,sm,sh,sc&mode=fastest;truck。但它给了我 400 bad reqest 的错误。我收到以下回复。

{"_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":"2021-04-06T17:35:53Z","mapVersion":"8.30.119.151","moduleVersion":"7.2.202114-8610","interfaceVersion":"2.6.76","availableMapVersion":["8.30.119.151"]}}

请帮帮我。

1 个答案:

答案 0 :(得分:0)

基于 here documentation,这看起来像是“无法根据输入参数构建路由”。