I am trying to query all the nodes which are in Potsdam city and with postcode 14480.
I know that it can be coded as follows:
area["ISO3166-1"="DE"][admin_level=2]->.germany;
(
node["addr:city"="Potsdam"]["addr:postcode"="14480"](area.germany);
)->.r;
but I would like to use an if condition with evaluators as shown below in the code.
However, it seems that there is something wrong in the code below How can I fix it?
Code:
[out:json][timeout:180];
area["ISO3166-1"="DE"]["admin_level"="2"]->.germany;
(
node(
if: (t["addr:city"] == "Potsdam") && (t["addr:postcode"] =="14480")
);
);
out geom;