ska*_*sie 4 openstreetmap overpass-api
鉴于此立交桥查询https://overpass-turbo.eu/s/Sle,它搜索博物馆和画廊,我如何引入一种新型标签来搜索同一位置,例如我还想搜索node["amenity"~"cafe|bar"]周围同一区域(周围500米lat: 500,53.866444)lon: 10.684738我尝试过的所有操作要么引发错误,要么返回不完整的结果。例如,以下内容有效,但仅返回 caf\xc3\xa9s 和酒吧,但不返回博物馆。
[out:json];\n node["tourism"~"museum|gallery"](around:500,53.866444, 10.684738);\n node["amenity"~"cafe|bar"](around:500,53.866444, 10.684738);\n out center;\nRun Code Online (Sandbox Code Playgroud)\n
您需要合并两个结果集:
[out:json];
(
node["tourism"~"museum|gallery"](around:500,53.866444, 10.684738);
node["amenity"~"cafe|bar"](around:500,53.866444, 10.684738);
);
out center;
Run Code Online (Sandbox Code Playgroud)
请参阅https://overpass-turbo.eu/s/Ss6。
或者尝试使用 overpass-turbo 上的向导,例如通过搜索tourism~"museum|gallery" or amenity~"cafe|bar".
另请注意,您只是搜索节点。您会错过映射为途径或关系的POI (尽管后者很少发生)。因此,要么添加额外的路径和关系查询,要么替换node为nwr(节点路径关系)。