ApplicationError: LinkId(s) specified in request are not available
ApplicationError: LinkId(s) specified in request are not available
我正在使用 HERE 路线匹配扩展 API 将 GPX 数据与路线相匹配。之后,我使用匹配路线中的道路 links 查询路线 API。几周前这很有效;奇怪的是,我现在从路由匹配扩展 API(来自路由 API 的响应)的某些道路 link 收到此错误:
"_type": "ns2:RoutingServiceErrorType",
"type": "ApplicationError",
"subtype": "LinkIdNotFound",
"details": "LinkId(s) specified in request are not available",
"additionalData": [
{
"key": "LinkId[0]",
"value": "-1224766809"
}
]
在路由匹配扩展 API 的响应中,道路 link 肯定存在:
{“置信值”:0.6,“高程”:188.39999999999998,“headingDegreeNorthClockwise”:10000.0,“headingMatched”:118.0,“lat”:49.67599245719612,“latMatched”:49.67605,"linkIdMatched":-1224766809,"lon":10.035531716421247,"lonMatched":10.03558,"matchDistance":8.36,"matchOffsetOnLink":0.6588415883643146,"minError":1000000.0," routeLinkSeqNrMatched":178,"speedMps":0.0,"timestamp":1532677148000}
这是怎么回事?这只是一个暂时的问题,因为几周前它曾经工作过吗?
RME 和路由 api 的基础映射版本可能不同,这导致两者中的 link id 不匹配。路由推荐使用经纬度api。
路由 api 和扩展 api 地图发布周期不同,您无法更改它们。最好使用 lat, lon 而不是依赖 link id 作为您的用例。使用 lat,long 从你的 rme 响应中,我在路由 api 中得到了一个不同的 link id。 https://route.cit.api.here.com/routing/7.2/calculateroute.json?waypoint0=geo!49.77763,9.95697&waypoint1=geo!49.67599245719612,10.035531716421247&mode=fastest%3Bcar%3Btraffic%3Aenabled&app_id=<>&app_code=<>&representation=linkPaging&language=de-de&returnElevation=true&maneuverAttributes=position%2Clength%2CtravelTime%2CstartAngle&instructionFormat=text&routeAttributes=waypoints%2Csummary
我正在使用 HERE 路线匹配扩展 API 将 GPX 数据与路线相匹配。之后,我使用匹配路线中的道路 links 查询路线 API。几周前这很有效;奇怪的是,我现在从路由匹配扩展 API(来自路由 API 的响应)的某些道路 link 收到此错误:
"_type": "ns2:RoutingServiceErrorType",
"type": "ApplicationError",
"subtype": "LinkIdNotFound",
"details": "LinkId(s) specified in request are not available",
"additionalData": [
{
"key": "LinkId[0]",
"value": "-1224766809"
}
]
在路由匹配扩展 API 的响应中,道路 link 肯定存在:
{“置信值”:0.6,“高程”:188.39999999999998,“headingDegreeNorthClockwise”:10000.0,“headingMatched”:118.0,“lat”:49.67599245719612,“latMatched”:49.67605,"linkIdMatched":-1224766809,"lon":10.035531716421247,"lonMatched":10.03558,"matchDistance":8.36,"matchOffsetOnLink":0.6588415883643146,"minError":1000000.0," routeLinkSeqNrMatched":178,"speedMps":0.0,"timestamp":1532677148000}
这是怎么回事?这只是一个暂时的问题,因为几周前它曾经工作过吗?
RME 和路由 api 的基础映射版本可能不同,这导致两者中的 link id 不匹配。路由推荐使用经纬度api。
路由 api 和扩展 api 地图发布周期不同,您无法更改它们。最好使用 lat, lon 而不是依赖 link id 作为您的用例。使用 lat,long 从你的 rme 响应中,我在路由 api 中得到了一个不同的 link id。 https://route.cit.api.here.com/routing/7.2/calculateroute.json?waypoint0=geo!49.77763,9.95697&waypoint1=geo!49.67599245719612,10.035531716421247&mode=fastest%3Bcar%3Btraffic%3Aenabled&app_id=<>&app_code=<>&representation=linkPaging&language=de-de&returnElevation=true&maneuverAttributes=position%2Clength%2CtravelTime%2CstartAngle&instructionFormat=text&routeAttributes=waypoints%2Csummary