[英]What are “Nodes” and “Ways” in overpass API
I'm using overpass api and would like to understand the difference between a Node
and a Way
. 我正在使用overpass api,并希望了解
Node
和Way
之间的区别。 Below is an xml snippet for each. 下面是每个的xml片段。 I would appreciate if anyone knew what the number values mean and how they relate to the real world.
如果有人知道数字值的含义以及它们与现实世界的关系,我将不胜感激。 Also what is the difference between a node with tags and one without.
带有标签的节点和没有标签的节点之间的区别是什么。
<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>
First of all, this question is not at all about Overpass API - that's the normal OpenStreetMap object model with nodes, ways and relations. 首先,这个问题根本不是关于Overpass API - 这是具有节点,方式和关系的普通OpenStreetMap对象模型。
The ref
values as such don't have any meaning, they're database internal object ids. 这样的
ref
值没有任何意义,它们是数据库内部对象id。 However, A way may reference a node via its id as an example. 但是,A方式可以通过其id引用节点作为示例。 Geographic lat/lon information is always stored in nodes.
地理纬度/经度信息始终存储在节点中。 And of course, some nodes may have tags, if they represent a node-like object in real life (could be an amenity or maybe a stop-sign).
当然,如果某些节点在现实生活中代表一个类似节点的对象(可能是舒适性或者可能是停止标志),它们可能会有标签。 For a highway (=way which uses a number of nodes), the individual nodes don't need to have any tag at all.
对于高速公路(=使用多个节点的方式),各个节点根本不需要任何标记。
Some recommended reading: 一些推荐阅读:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.