The main reason for the question is that I’d like to add a note to a map that I can share with folks simply by adding one or more arguments to a URL. For instance, perhaps something along the lines of
Great idea, hlfan. Thx! In general, is there an easy method of finding the way id of an object? I was able to do it using the following painful process. I’m hoping there is a more direct approach.
Select “Export” from top row menu
Manually draw a rectangle as close as possible to the object
Click “Export” button to download “map.osm” file
View the downloaded “map.osm” file to find the “id” attribute of <way>elements.
The challenge is that there may be many entries, even when drawing a very tight rectangle. Trial and error might be needed to find the correct one.
For example, I exported the data for one of the Stratton buildings. There were 14 <way>elements. I was able to rule out some of them since the number of <nd> child elements was much less than the number of points in the polygon. But there were still several <way> elements that I needed to try.
You can use the Query tool (icon with arrow and Question mark in the panel on the right). Use this to click close to the object, or inside if it is a closed way. That will show a panel with a list of nearby and enclosing objects - it’s usually easy enough to find the one you are interested in. That will give you the url directly, you don’t need to manually type the way id.