gpt4 book ai didi

here-api - 这里映射 : How to retrieve speed limit information in an efficent way?

转载 作者:行者123 更新时间:2023-12-02 04:23:44 35 4
gpt4 key购买 nike

我们正在尝试检索特定点(纬度、经度)的限速信息。我们正在使用来自 Here MapsGeocoder APIFleet Telematics Advanced Data Sets

对于某些 GPS 点,检索到的速度限制值与实际速度限制不匹配。以下是可能的原因:

  • GPS 精度。如果一个GPS点可以关联到不同的道路类型。我们如何按道路类型过滤?
  • 多层道路。
  • 道路彼此非常靠近。
  • 我们没有使用正确的方法来检索限速信息。 :)

我们按照以下步骤检索限速信息:

第 1 步。从 GPS 点(纬度、经度)应用反向地理编码请求。

https://reverse.geocoder.cit.api.here.com/6.2/

我们应用以下参数:

prox=latidude,longitude,radius(value: 10)
mode=retrieveAddresses
maxresults=1
additionaldata=SuppressStreetType,Unnamed
locationattributes=linkInfo

第 2 步。

我们从 JSON 响应中检索以下信息:

ReferenceId (View->Result->Location->MapReference->ReferenceId)
FunctionalClass (View->Result->Location->LinkInfo->FunctionalClass)
SpeedCategory (View->Result->Location->LinkInfo->SpeedCategory)

第 3 步。应用 PDE 请求:

https://pde.api.here.com/1/tile.json

我们应用以下参数(值与第一个地理编码器请求的结果相关):

layer=SPEED_LIMIT_FCX
level (value is 8 + functional class)
tileX
tileY

tileX 和 tileY 的值是按照以下示例计算的: https://github.com/seaBass3/here-pde-speed-limit/blob/master/Here_PDE_Demo.php

第 4 步。

从 JSON 响应中,我们搜索与从地理编码器请求中检索到的 ReferenceID 匹配的行结果。

您能否确认该方法是否正确?

对于某些点,获得的值与本演示中显示的结果不同:

https://tcs.ext.here.com/examples/v3/link_speed_locator

有什么建议吗?你能帮助我们改进这个方法吗?另外,有什么方法可以对多个点进行这些请求吗?

最佳答案

您只需要 GeocoderAPI。使用以下参数检索发布的速度限制和“自由流动”速度:

  • addressattributes=additionalData
  • locationattributes=linkInfo

'speedLimit' 是张贴的双向限速。如果您将 mode=trackPosition 与方位一起使用,则响应项将按照第一项与给定方位匹配的方式进行排序。

'traffic' 显示自由流动的速度。畅通车速是指路段上路况良好(例如,无雨无雪)且交通不拥堵时的交通速度。

关于here-api - 这里映射 : How to retrieve speed limit information in an efficent way?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56883361/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com