Here is a simple but common example off the top of my head. apologies for the poor ascii art... this is two dual carriageways meeting at a crossroads. The prohibited manoeuvre is "no u turn" from A to B. This is 3 segments/2 nodes.
<br><br>Maybe we turn right from A to C. There could be a prohibition turning left into D but only for vehicles making the right turn) This is 4 segments/3 nodes.<br><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
| |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
^ v D<br>
| | |<br> | | |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">-->----------------->--- C<br>
| |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--<-----------------<---</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
| |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
| |</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
^ v<br> A | | B<br></span></span><br>On 2/7/07, Scott Waye <<a href="mailto:scott@waye.co.uk">scott@waye.co.uk</a>> wrote:<br>> Can't say without an example.<br>> <br>> A Morris wrote:
<br>> <br>> > Prohibited manoeuvres can span many nodes though, could your scheme<br>> > cope with that?<br>> ><br>> ><br>> > On 2/7/07, *Scott Waye* <<a href="mailto:scott@waye.co.uk">
scott@waye.co.uk</a> <mailto:<a href="mailto:scott@waye.co.uk">scott@waye.co.uk</a>>><br>> > wrote:<br>> ><br>> > I much prefer putting tags on the node:<br>> ><br>> > <node>
<br>> > <no_turn from="seg_id_x" to_seg="seg_id_y"><br>> ><br>> > I have implemented an A* algorithm for osm and I think this would<br>> > be the<br>> > easiest one to incorporate. Anything with "left"s, "fourth left", is
<br>> > just a pain.<br>> ><br>> > Andy Allan wrote:<br>> ><br>> > >On 2/5/07, A Morris <<a href="mailto:aledmorris2@gmail.com">aledmorris2@gmail.com</a><br>> > <mailto:
<a href="mailto:aledmorris2@gmail.com">aledmorris2@gmail.com</a>>> wrote:<br>> > ><br>> > ><br>> > >>How about this:<br>> > >><br>> > >><br>> > >>
<br>> > ><br>> > >See<br>> > <a href="http://wiki.openstreetmap.org/index.php/Proposed_features/Routing:_turn_restrictions">http://wiki.openstreetmap.org/index.php/Proposed_features/Routing:_turn_restrictions
</a><br>> > >for the non-concluded discussions. As for an example of a more<br>> > >complicated restriction, here's one from where I live:<br>> > ><br>> > >No right turn between 8am-7pm (except buses and cycles) - I should
<br>> > >really pop over and grab a photo of it.<br>> > ><br>> > >If you're willing to take this challenge on, my advice would be to<br>> > >gather as many real-life restrictions (
i.e. photographs) as possible<br>> > >BEFORE coming up with a solution, otherwise you'll end up bolting on<br>> > >quick fixes as you go along. And be careful, plans have been<br>> > suggested
<br>> > >a number of times to remove segments from OSM at some point.<br>> > ><br>> > >_______________________________________________<br>> > >talk mailing list<br>> > >
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a> <mailto:<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a>><br>> > > <a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk">
http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk</a><br>> > ><br>> > ><br>> ><br>> ><br>> <br><br>