OlliG
1
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
maro21
2
node["~name|brand"~"shell",i]({{bbox}});
OlliG
3
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…
maro21
4
I checked this query and it works 
You need to add “~” before “name|brand” because “name|brand” is a regular expression on a key.