What’s the alternative to get the area if I have the way-ID?
You can use a closed way directly as an area. For example
way(23055100)->.wa;
nwr(area.wa);
out geom;
In line 2, the reference to the way (the result of line 1) is used as
area. For the sake of simplicity, I’ve put that into a named variable wa to ensure it can be used multiple times without being inadvertently
overwritten.