为什么要围绕'工作,但是区域'在立交桥涡轮增压器中没有吗?
我有以下立交桥涡轮查询:
[out:json];
area[name="Zagreb"];
(
node["tourism"~"museum|gallery"](area);
node["amenity"~"cafe|bar"](area);
);
out center;
您可以在此处运行它: https://overpass-turbo.eu/ s/1hmp
问题是它只返回第一个节点,因此在本例中是 Tourism="museum|gallery",而不是 amenity="cafe|bar"。
我的查询基于这个答案,两个节点都返回(!!!): 使用 Overpass API 查找坐标周围的多个标签
[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/1hml
除了我将“around”更改为 name="Zagreb" 的区域。这显然是有效的(尽管仅适用于其中一个节点)。
有谁知道如何让两个节点(tourism="museum|gallery" 和 amenity="cafe|bar")在一个区域内工作?
非常感谢! 洛夫罗
I have the following overpass turbo query:
[out:json];
area[name="Zagreb"];
(
node["tourism"~"museum|gallery"](area);
node["amenity"~"cafe|bar"](area);
);
out center;
You can run it here: https://overpass-turbo.eu/s/1hmp
The problem is that it only returns the first node, so the tourism="museum|gallery" in this case, but not the amenity="cafe|bar".
I based my query on this answer, where both nodes get returned(!!!): Find multiple tags around coordinates with Overpass API
[out:json];
(
node["tourism"~"museum|gallery"](around:500,53.866444, 10.684738);
node["amenity"~"cafe|bar"](around:500,53.866444, 10.684738);
);
out center;
You can run this original one here: https://overpass-turbo.eu/s/1hml
Except that I changed the 'around' to the area of name="Zagreb". And this clearly works (although just for one of the nodes).
Does anyone have any ideas how to get both nodes (tourism="museum|gallery" and amenity="cafe|bar") to work within an area?
Thanks so much!
Lovro
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

您需要将该区域存储在命名输入集中(下面名为“.myarea”),否则第一个节点语句的结果将覆盖默认输入集中的区域(称为 ._),并且将不再可用于第二个节点查询。
顺便说一句,这是一个相当常见的问题,我确信还有其他几篇文章已经处理了这个错误。
You need to store the area in a named inputset (below it's named ".myarea"), otherwise the result of the first node statement would overwrite the area in the default inputset (called ._), and would no longer be available for the second node query.
Quite a frequent issue by the way, and I'm sure there are several other post that already deal with this error.