
[英]How can I get all OSM ways and nodes tagged amenity, plus way nodes using the Overpass API?
[英]What are “Nodes” and “Ways” in overpass API
我正在使用overpass api,并希望了解Node
和Way
之间的区别。 下面是每个的xml片段。 如果有人知道数字值的含义以及它们与现实世界的关系,我将不胜感激。 带有标签的节点和没有标签的节点之间的区别是什么。
<way id="4600886">
<nd ref="27605443"/>
<nd ref="30346321"/>
<nd ref="1705297211"/>
<nd ref="391210257"/>
<nd ref="390384217"/>
<nd ref="391210271"/>
<nd ref="32343771"/>
<nd ref="391210305"/>
<nd ref="391210664"/>
<nd ref="97175448"/>
<tag k="highway" v="secondary"/>
<tag k="lanes" v="2"/>
<tag k="name" v="Days Road"/>
<tag k="surface" v="asphalt"/>
</way>
<node id="18615430" lat="44.2384337" lon="-76.5411605">
<tag k="created_by" v="r_coastlines"/>
<tag k="source" v="PGS"/>
</node>
首先,这个问题根本不是关于Overpass API - 这是具有节点,方式和关系的普通OpenStreetMap对象模型。
这样的ref
值没有任何意义,它们是数据库内部对象id。 但是,A方式可以通过其id引用节点作为示例。 地理纬度/经度信息始终存储在节点中。 当然,如果某些节点在现实生活中代表一个类似节点的对象(可能是舒适性或者可能是停止标志),它们可能会有标签。 对于高速公路(=使用多个节点的方式),各个节点根本不需要任何标记。
一些推荐阅读:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.