简体   繁体   English

立交桥如何查询国名

[英]How to query with country name in overpass

i am trying to query all the branchs of deutsche bank in germany.我正在尝试查询德意志银行在德国的所有分行。 please let me know why the below code does not return any results请让我知道为什么下面的代码没有返回任何结果

code :代码

area["place"="country"]["name:de"="Deutschland"]->.s;
(
  node.s
  ["amenity"="bank"]
  ["brand"="Deutsche Bank"]
  ["atm"="yes"]
  ["addr:city"="Potsdam"];
);
  out count;

A few things going on here:这里发生了一些事情:

  1. place=country only applies to nodes (see OSM tag documentation ), so it cannot be used to define an area. place=country 仅适用于节点(参见OSM 标签文档),因此不能用于定义区域。
  2. Each statement in your union still needs to be terminated with the search area and semicolon (like this ).联合中的每条语句仍然需要以搜索区域和分号结束(像这样)。
  3. Lastly, be aware that (1) amenity=bank could potentially be applied to ways and relations in OSM while your current query only returns nodes and (2) that count does not output geographic data, so nothing will show up in the map window if you're using Overpass Turbo.最后,请注意 (1) amenity=bank 可能会应用于 OSM 中的方式和关系,而您当前的查询仅返回节点,并且 (2) 该计数不包含 output 地理数据,因此 map Z054ZB8C74CBD270FBAFDE4 ifFBDE35您正在使用 Overpass Turbo。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2025 STACKOOM.COM