2

I got these nodes via

[out:json][timeout:25];
node["addr:street"="慶福街"]
(24.1717,120.8297,24.2129,120.8998);
out geom;

OK, now how shall I use bu to get all the parent ways they belong to, if any? (Opposite question of Query nodes and attributes of parent ways .)

3 Answers 3

2

If you want to see both the address nodes and the building they are part of, try:

[out:json][timeout:25];
(
    node["addr:street"="慶福街"](24.1717,120.8297,24.2129,120.8998);
    way(bn)["building"];
);
out geom;

This works only if the address node is also a node of the building outline.

1
  • (OK, but some were stuck to parking lots, roads, even forest edges.) Commented yesterday
0

This is probably what you really want, Mr. Jacobson.

[out:json][timeout:25];
node["addr:street"="慶福街"]
(24.1717,120.8297,24.2129,120.8998);
way(bn);
node(w);  
out geom;

Zooming in, you can see which node plays a double role:

  1. It is an address node.
  2. It is part of the side of a building.

You can see all that on the OSM background map there in Overpass Turbo, as a suspect node will have a big address attached to it there in the background.

Then you can edit the nodes to detach them from buildings, that way they wouldn't wreck the building when the next county address renumbering replaces all address nodes with new ones, etc. Yes, they were probably created in your younger more rambunctious years, when there indeed was no county official address nodes, so you just chose a building corner and "upgraded" the node.

0

I figured it out. All I needed was one little line:

[out:json][timeout:25];
node["addr:street"="慶福街"]
(24.1717,120.8297,24.2129,120.8998);
way(bn);
out geom;

But now I can't see my original nodes on the same screen as the answer. Seems another hour will be needed to figure that out. I see. Someone posted an even better solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.