问题描述
有什么方法可以连接到OpenStreetMap的Web服务器?
Is there any way to connect to the web server of OpenStreetMap?
我想接收给定geoLoc"lat and Lon"的速度限制信息.我想通过创建一个庞大的数据库解决方案来解决此问题节点的纬度和经度以及速度限制,然后在给定特定geoLoc的情况下查询速度限制.
I want to receive the speed limit information given a geoLoc "lat and Lon". I thought of solving this issue by creating a huge database encompasesthe node's lat and lon and the speed limit and then query the speed limit given a specific geoLoc.
但是现在我想知道是否可以直接连接OSM服务器并在给定特定geoLoc的情况下查询速度限制?哪个方法更有效率吗?
but now i am wondering is it possible to connect directly the OSM server and query the speed limit given a specific geoLoc?! whic approach is moreefficient?
推荐答案
您可以使用 Overpass API 用于查询(几乎)任何信息. 语言指南甚至与您的问题非常相似:查询名称和大致位置.只需将名称标签替换为maxspeed标签,您就快完成了.
You can use Overpass API for querying (almost) any information. The language guide even has a very similar problem to yours: querying for name and rough location. Just replace the name tag with the maxspeed tag and you are almost done.
Overpass API具有非常强大的语言,一开始可能会造成很大的混乱.它可以帮助您通过立交桥turbo 前端运行查询,该前端可以很好地显示结果.
Overpass API has a really powerful language which can be quite a bit confusing at first. It might help you running your queries via the overpass turbo frontend which has a nice visualization of the results.
这篇关于如何从服务器查询OSM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!