如何从服务器查询OSM [英] How to query OSM from the server

查看:125
本文介绍了如何从服务器查询OSM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以连接到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 encompases the 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 more efficient?

推荐答案

您可以使用 Overpass API 用于查询(几乎)任何信息. 语言指南甚至与您的问题非常相似:

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆