I /think/ you may have over complicated things. It's unclear if you wan one or all those outside
Edit:
https://overpass-turbo.eu/s/ZH6
[bbox:{{bbox}}];
(
nw[building=school];
-
(
way[amenity=school];map_to_area;
nw(area)[building=school];
);
)->.Outside;
foreach .Outside (
way.Outside(around:100);
way._(if:count(ways) == 1);
out center;
);
I /think/ you may have over complicated things. It's unclear if you wan one or all those outside
https://overpass-turbo.eu/s/ZGG
Edit:
https://overpass-turbo.eu/s/ZH6
[bbox:{{bbox}}];
(
nw[building=school];
-
(
way[amenity=school];map_to_area;
nw(area)[building=school];
);
)->.Outside; );
foreach .Outside (
);
way.Outside(around:100);
way._(if:count(ways) == 1);
out center;center;
);
I /think/ you may have over complicated things. It's unclear if you wan one or all those outside
https://overpass-turbo.eu/s/ZGG
[bbox:{{bbox}}];
(
nw[building=school];
-
(
way[amenity=school];map_to_area;
nw(area)[building=school];
);
);
out center;