Here Map API路段LinkId连接数
Here Map API road segment LinkId connections
我正在尝试根据车辆先前的位置、速度和航向来估计车辆的位置。当我到达一个路段的尽头时,我想确定下一个连接的路段。是否存在给定 LinkId 的 API 调用 returns 连接的 link 段?
我目前正在使用 getlinkinfo.json 但没有连接到其他路段。
$.ajax({url: 'https://route.cit.api.here.com/routing/7.2/getlinkinfo.json'});
你可以试试citizen5给的技巧here:
What I did was to request "shape points" along with the linkID of a road segment (based on your gps position). You can then use the last shape point lat lon of an associated linkID to query for the speed limit at that end point. Then based on the received LinkiDs and corresponding shape point you receive at that end point, you jump forward to the next linkIDs shape point, query for the speed limit at that lat lon, and so on.
顺便说一下,将 &linkattributes=all
放在 URL 的末尾将获得所有可用的属性,包括可能对您有用的长度。
不幸的是,seaBass 在同一页面上指出:
getlinkinfo
will depreciated March 31, 2017. In order to get speed limit information you will have to use PDE (Platform Data Extension) which requires an APP ID and Code
因此您可能要考虑停止使用他们的路由器 API 进行开发,转而迁移到 PDE。
我正在尝试根据车辆先前的位置、速度和航向来估计车辆的位置。当我到达一个路段的尽头时,我想确定下一个连接的路段。是否存在给定 LinkId 的 API 调用 returns 连接的 link 段?
我目前正在使用 getlinkinfo.json 但没有连接到其他路段。
$.ajax({url: 'https://route.cit.api.here.com/routing/7.2/getlinkinfo.json'});
你可以试试citizen5给的技巧here:
What I did was to request "shape points" along with the linkID of a road segment (based on your gps position). You can then use the last shape point lat lon of an associated linkID to query for the speed limit at that end point. Then based on the received LinkiDs and corresponding shape point you receive at that end point, you jump forward to the next linkIDs shape point, query for the speed limit at that lat lon, and so on.
顺便说一下,将 &linkattributes=all
放在 URL 的末尾将获得所有可用的属性,包括可能对您有用的长度。
不幸的是,seaBass 在同一页面上指出:
getlinkinfo
will depreciated March 31, 2017. In order to get speed limit information you will have to use PDE (Platform Data Extension) which requires an APP ID and Code
因此您可能要考虑停止使用他们的路由器 API 进行开发,转而迁移到 PDE。