Overpass Turbo: "name or brand is....."

Hallo zusammen,

wie kann ich in Overpass abfragen, ob name ODER brand einen bestimmten Wert hat? Oder muss ich das tatsächlich immer “doppelt” machen?

Also statt

(
  node["name"~"shell",i]({{bbox}});
  node["brand"~"shell",i]({{bbox}});  
);
(._;>;);
out meta;

sowas wie

(
  node["name|brand"~"shell",i]({{bbox}});
);
(._;>;);
out meta;

“Shell” ist hier nur beispielhaft

node["~name|brand"~"shell",i]({{bbox}});

Nope.


[out:json][timeout:25];
{{geocodeArea:Frankfurt}}->.searchArea;
(
  node["brand"~"Shell",i](area.searchArea);
);
out body;
>;
out skel qt;

liefert Ergebnisse.


[out:json][timeout:25];
{{geocodeArea:Frankfurt}}->.searchArea;
(
  node["name|brand"~"Shell",i](area.searchArea);
);
out body;
>;
out skel qt;

liefert KEINE Ergebnisse…

I checked this query and it works :slight_smile:
You need to add “~” before “name|brand” because “name|brand” is a regular expression on a key.

Dont work here…