Is it possible to export the coordindates of a way?

On OpenSteetMap it is possible to define ways [0] which are basically a sequence of nodes. Is there a way to fetch the coordinates of the nodes constructing this way in an automated manner (via API) just by providing the ID of the way?

The idea is to get a defined way onto a Leaflet map just by providing the ID.

Thanks for suggestions, pointers etc. and most importantly for your time.


Hi and welcome to OSM and the forum.

Please reade

What you are looking for is I assume.

Thanks for the pointer!