- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们正在尝试检索特定点(纬度、经度)的限速信息。我们正在使用来自 Here Maps 的Geocoder API 和Fleet Telematics Advanced Data Sets。
对于某些 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/
好吧,我是编程新手,我想知道如何打印某些字段的值。例如,我有一个速度,单位是节(21 节),如何将“节”部分添加到我的代码中,这样我就不会只打印整数?我希望它有 [number] 节。这是我到目前为止
我正在研究堆算法。 我认为堆算法作为函数会比纯代码慢。 所以我做了一个测试。但我发现函数式代码比纯代码快得多。 我觉得这很奇怪,我不知道为什么。 enter image description her
除了明确的清晰度,我们为什么要坚持:car.getSpeed()和 car.setSpeed(55)当这也可以使用时:car.speed()和 car.speed(55) 我知道 get() 和 se
我正在尝试实现 google speed limit API 来计算从一个位置到另一个位置所需的最低速度。但是当我在浏览器中运行时出现以下错误。 谁能帮我解决这个问题?谢谢 "error": {
我正在创建一个 LAN 速度测试,它在指定位置创建一个指定大小的数据文件,并记录创建/读取它的速度。在大多数情况下,这是正常工作的,只有一个问题:读取速度快得离谱,因为它所做的只是计算文件打开所需的时
我有以下函数,它会为生成的每个订单项调用。有谁知道如何加快速度? private String getDetails(String doc){ String table=""; jav
我正在尝试使用 C#、sdl.net 开发一个简单的 2d 赛车游戏(自上而下查看)。现在,我正在尝试管理我的车的速度、加速度和刹车。我的问题是算法。我的循环 (Events_Tick) 每秒执行 5
我正在读取一个包含 500000 行的文件。我正在测试多线程如何加速进程.... private void multiThreadRead(int num){ for(int i=1; i"+
Java Robot 类允许移动鼠标,就好像移动了实际的物理鼠标一样。 但是,如何以人性化(而非即时)的方式将鼠标从 Point1 移动到 Point2?也就是说,如何设置移动速度? 如果Robot类
我无法找到有关此主题的现有答案。 我正在运行一个连接到远程 redis 服务器(不在同一主机上)的 redis 客户端。 我可以通过域名或服务器的 IP 连接,即我可以通过 redis-cli -h
我正在尝试将 GPS 功能添加到我的 iPhone 应用程序中。这是一款在步行或运行时使用的锻炼应用程序。所以我想使用 GPS 来显示人的移动速度(以英里/小时和分钟/英里为单位)。 我应该如何配置
所以我有一个以“速度”移动的对象,现在我设置了代码,当该对象与另一个对象碰撞时,该对象的速度会降低。我尝试通过改变速度来实现这一点,当速度在 3 秒后改变时,将其改回原来的速度。 这是我自己尝试过的,
这是我的 table : CREATE TABLE `tab_adasf` ( `adasf_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
我正在寻找一种加速文件加载的方法: 数据包含约100万行,制表符以“\t”(tabulation char)分隔,utf8编码,使用以下代码解析完整文件大约需要9秒。但是,我希望几乎是一秒钟! def
我创建了一个 python 程序,该程序使用 ArcGIS 的“CostPath”函数在 shapefile“selected_patches.shp”中包含的几个多边形之间自动构建最低成本路径
我有 36 个人和 6 张 table 。我想围绕每张 table 组成 6 个小组。然后再组成 6 个其他组,再组成 6 个其他组……直到每个人都遇到每个人,但没有人遇到两次。 到目前为止,我想出了
我正在努力提高我的 Google Page Speed 得分。目前移动设备为 51/100,桌面设备为 83/100。 其中一个问题是“消除首屏内容中阻止渲染的 JavaScript 和 CSS”。适
所以我在几个小时内一直在寻找为什么我的 iPhone 应用程序讨厌我。这是我得到的错误:警告:“speedView”的局部声明隐藏了实例变量。这是我的 .m 文件 @implementation Ma
我最近做了一个网站,但加载速度很慢。我的 Firebug 页面速度得分是 82/100。我觉得这很好。我的网站有 2 个图像,它们有 100KB 和一些其他小图像,用于子弹、箭头和不超过 50KB 的
我正在用 python 构建词形还原器。因为我需要它实时运行/处理相当大量的数据,所以处理速度是最重要的。数据:我有所有可能的后缀,这些后缀链接到它们可以组合的所有词类型。此外,我还有与其词型和引理相
我是一名优秀的程序员,十分优秀!