鉴于此立交桥查询https://overpass-turbo.eu/s/Sle,搜索博物馆和画廊,我如何引入一种新类型的标签来搜索同一位置,例如我还想搜索node["amenity"~"cafe|bar"]
同一区域(周围500米)lat: 500,53.866444
and lon: 10.684738
。我尝试过的所有操作要么引发错误,要么返回不完整的结果。例如,以下内容有效,但仅返回咖啡馆和酒吧,但不返回博物馆。
[out:json];
node["tourism"~"museum|gallery"](around:500,53.866444, 10.684738);
node["amenity"~"cafe|bar"](around:500,53.866444, 10.684738);
out center;
您需要合并两个结果集:
[out:json];
(
node["tourism"~"museum|gallery"](around:500,53.866444, 10.684738);
node["amenity"~"cafe|bar"](around:500,53.866444, 10.684738);
);
out center;
See https://overpass-turbo.eu/s/Ss6.
或者尝试使用 overpass-turbo 的向导,例如通过搜索tourism~"museum|gallery" or amenity~"cafe|bar"
.
另请注意,您只是在搜索nodes。您将错过映射为的 POIways or 关系(不过后者很少发生)。因此,要么添加额外的方式和关系查询,要么替换node
with nwr
(节点路径关系)。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)