通过天桥API查找坐标周围的多个标记



给定此立交桥查询https://overpass-turbo.eu/s/Sle,搜索博物馆和画廊,我如何引入一种新类型的标签来在同一位置搜索,例如,我也想在同一区域(lat: 500,53.866444lon: 10.684738周围500米(搜索node["amenity"~"cafe|bar"]。我尝试的所有操作要么会引发错误,要么会返回不完整的结果。例如,以下操作有效,但只返回咖啡馆和酒吧,而不返回博物馆。

[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;

请参阅https://overpass-turbo.eu/s/Ss6.

或者尝试在override-turbo上使用向导,例如搜索tourism~"museum|gallery" or amenity~"cafe|bar"

还要注意,您只是在搜索节点。您将错过映射为方式或关系的POI(尽管后者很少发生(。因此,要么添加额外的方式和关系查询,要么用nwr(节点方式关系(替换node

最新更新