关于 HERE api 回复的文档
Documentation on HERE api responses
我正在使用 Routing API v8 获取有关如何从一个点到达另一个点的说明。我想为用户提供时间和距离估计。
仍在尝试弄清楚如何获得距离,但当时我一直在添加“持续时间”字段,但结果与我在该路线中的体验大不相同。此外,响应中还有其他字段,我不太确定它们的含义。例如,在下面的响应中:
...
"actions": [
{
"action": "depart",
"duration": 133,
"instruction": "Head northwest on Flint Close. Go for 124 m.",
"offset": 0
},
{
"action": "turn",
"duration": 168,
"instruction": "Turn right onto Vicarage Lane. Go for 158 m.",
"offset": 3,
"direction": "right",
"severity": "quite"
},
{
"action": "turn",
"duration": 234,
"instruction": "Turn left onto Deanery Road. Go for 233 m.",
"offset": 9,
"direction": "left",
"severity": "quite"
},
...
offset
属性是什么意思?有什么地方可以找到更多关于这些的信息吗?
我正在使用 Routing API v8 获取有关如何从一个点到达另一个点的说明。我想为用户提供时间和距离估计。
仍在尝试弄清楚如何获得距离,但当时我一直在添加“持续时间”字段,但结果与我在该路线中的体验大不相同。此外,响应中还有其他字段,我不太确定它们的含义。例如,在下面的响应中:
...
"actions": [
{
"action": "depart",
"duration": 133,
"instruction": "Head northwest on Flint Close. Go for 124 m.",
"offset": 0
},
{
"action": "turn",
"duration": 168,
"instruction": "Turn right onto Vicarage Lane. Go for 158 m.",
"offset": 3,
"direction": "right",
"severity": "quite"
},
{
"action": "turn",
"duration": 234,
"instruction": "Turn left onto Deanery Road. Go for 233 m.",
"offset": 9,
"direction": "left",
"severity": "quite"
},
...
offset
属性是什么意思?有什么地方可以找到更多关于这些的信息吗?