gpt4 book ai didi

http - OverPass API - 坐标周围的速度限制

转载 作者:可可西里 更新时间:2023-11-01 16:09:33 32 4
gpt4 key购买 nike

我们正在开发一个应用程序,它需要找到特定位置周围的速度......我们计划使用 OverPass API 来首先获得速度并尝试按照下面提到的文章进行操作。

Overpass api to find the speed limit for a co-ordinate?

around 方法的语法如下所示。

http://www.overpass-api.de/api/xapi?*[maxspeed=*][around=2500,8.5580957,76.880541]

但我们没有得到任何结果...如果语法正确,谁能指导我们?

最佳答案

失败原因: around 不是 XAPI 中受支持的谓词(请参阅原始手册,https://wiki.openstreetmap.org/wiki/Xapi)。所以你不能在你的查询中使用它。

解决方案 1:您可以将 around 替换为受支持的 bbox。例如,下面的查询可以正常工作。

http://www.overpass-api.de/api/xapi?*[bbox=-0.489,51.28,-0.436,51.36][maxspeed=*]

您将收到约 300kB 的数据

解决方案 2:如果您仍然想要 around,请使用 Overpass QL/XML:

就我而言,Overpass XML 看起来更具可读性。 XML 也是首选,因为 XSLT 可以将其转换为任何其他常规范式。

关于http - OverPass API - 坐标周围的速度限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34860208/

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