here-api - 有没有办法直接在 HERE 流量结果中获取永久链接 ID?
问题描述
我想使用交通流量数据来增强具有交通信息(如拥堵因素)的路线。
推荐的方式似乎是获取一条路线,为路线的所有功能类和区域下载 TMC 瓦片,并将路线链接与交通流量数据中的 TMC 代码匹配,例如参见如何使用 HERE 地图开发自定义路由算法?.
但是,交通流文档(TrafficML_RealTime_Specification_v3.2.2.docx)在 Flow Item Description 中提到了一个标签“SHP/LID”来包含链接 id,这可以简化整个过程:
SHP/LID:
LinkID associated with the SHP reference. The linkID will be in
driving direction order; “F” represents travel direction FROM
reference node, “T” represents travel direction TO reference
node (For example, 123456789T or 987654321F).
在我的 API 调用中,我明确请求形状 (responseattributes=sh) 并接收它们,但没有给出“LID”字段。
{
"RWS": [
{
"RW": [
{
"FIS": [
{
"FI": [
{
"TMC": {
"PC": 10213,
"DE": "Berlin-Spandau",
"QD": "+",
"LE": 4.18578
},
"SHP": [
{
"value": [
"52.55838,12.96583 52.55761,12.96545 52.55705,12.9652 52.55641,12.96494 52.55588,12.96473 52.55577,12.96468 "
],
"FC": 1
},
{
"value": [
"52.55577,12.96468 52.55566,12.96464 "
],
"FC": 1
},
...
{
"value": [
"52.55935,12.96635 52.55838,12.96583 "
],
"FC": 1
}
],
"CF": [
{
"TY": "TR",
"SP": 120,
"SU": 121.78,
"FF": 105,
"JF": 0,
"CN": 0.99
}
]
},
有没有办法接收带有流数据的永久 ID?
解决方案
推荐阅读
- javascript - 下载完成后立即通过操作系统打开下载的文件
- java - 在 Apache Pulsar 中授予命名空间权限
- mongodb - 如何在 Kubernetes 的 postStart 生命周期钩子中延迟执行命令
- powershell - 使用 Azure 自动化 Runbook 将项目添加到 SPO
- bash - 码头工人终端上的“基本名称:缺少操作数”
- r - `$<-.data.frame`(`*tmp*`, marital1, value = numeric(0)) 中的错误:替换有 0 行,数据有 526
- c++ - 使用 Doxygen 在不同文件中注释函数
- javascript - 在控制台中打印数组时长度错误
- excel - 在 MS Excel 中验证重复输入字符的顺序
- python - 如何在 python 字典中拥有键、键值对和唯一的键?