Hi,
I have set up a OSM overpass server and tried to query the data using “foreach” for loop like the one below, but i am not getting any results. However the overpass-api.de server returns results. Does anyone know where the issue could be? Has this something to do with the area creation? Hosm3s_v0.7.54_areas and osm3s_v0.7.54_areas files? Are they specific for each country map?
[out:csv(postal_code, Pharmacy)];
area[name=“Frankfurt am Main”][boundary=administrative][admin_level=6];
rel(area)[“boundary”=“postal_code”];
map_to_area;
foreach->.a(
(
nodeamenity=pharmacy;
);
make result postal_code = a.set(t[“postal_code”]),
Pharmacy = count(nodes) + count(ways) + count(relations);
out;
);