Why not ask your question on the new OpenStreetMap Community Forum?

# Can a way contain the same node more than just at the beginning and end?

 3 Can a way contain the same node more than once and not be a simple loop? I know the following is possible: 1-2-3-4-5-1 But can you do this? (The following could, for example, produce a P-shaped way) 1-2-3-1-4-5 Thankyou Gary asked 12 Jul '10, 13:01 gsteinert 74●1●1●5 accept rate: 0%

 1 Yes thats possible but in my Opinion there are very few cases where this makes sense. in my opinion it is better to split the way. answered 12 Jul '10, 13:11 Islanit 44●1●3 accept rate: 0%
 7 Yes, that is possible in the OSM API. Nodes can appear as many times as you like within the same way. You can even do figure of 8 ways that join in the middle. These are most useful for lines like roads, rather than areas, as for areas what's inside and outside can become confusing. Of course there's no guarantee that all tools out there will support every configuration of way you create, and just because you can doesn't mean that you should :-) So keep it simple. I've used P-shaped ways before but nothing more complicated. answered 12 Jul '10, 13:23 randomjunk 1.5k●9●15●18 accept rate: 75% 1 I think we should distinguish between "crossing" and "touching". "Touching", like in the "P" case is ok and there are good uses for that, for instance a road ending in a turning circle. But I haven't come across any case where it actually makes sense for a way to cross itself. A closed way (for instance a roundabout or an area) is just a form of a way touching itself. (16 Jul '10, 09:33) Jochen Topf 1 Indeed. The question was specifically about using the same node more than once in a way. (16 Jul '10, 10:35) randomjunk Here's a case where it would make sense for a trunk_link to cross itself. It doesn't because I had to break it to add a turn restriction. (16 Jul '10, 10:47) NE2
 1 As already stated it's technically possible to create a way in OSM that contains a node more than once. It's usually considered faulty and tools like JOSM validator or the numerous quality check tools will report such self-intersecting ways. That relates to constructions like a 'P' or '8'. It does not apply to closed ways creating areas. That is a way where the first and last node are the same. You will use the later to map buildings or lakes. Some quality checks that list self-intersections are: answered 12 Jul '10, 20:14 Stephan Knauss 450●1●3●11 accept rate: 0% randomjunk 1.5k●9●15●18
 toggle preview community wiki:

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Question tags:

×191
×167

question asked: 12 Jul '10, 13:01

question was seen: 10,682 times

last updated: 16 Jul '10, 10:47