[OSM-talk] Turn restrictions

Teemu Koskinen teemu.koskinen at mbnet.fi
Tue May 26 07:05:03 BST 2009


On Tue, 26 May 2009 08:44:54 +0300, Maarten Deen <mdeen at xs4all.nl> wrote:

> I've searched the wiki and I have used the tag myself, but there seems  
> to be
> no documentation for restriction= ?
>
> How do you tag a restriction on a crossing between a major and a minor  
> road
> where the major road is only allowed to go straight on and the minor  
> road has
> no restrictions?
>
> Or in general: where the two roads do not have the same restriction.
>

Split the major road at the crossing, then add two relations. Both  
relations will have the two parts of the major road and the node at the  
crossing. Both will have restriction=only_straigh_on, and the major road's  
parts will have roles to and from.

The first relation would look like this:

type=restriction
restriction=only_straight_on

 from : major road part 1
via  : node at the crossing
to   : major road part 2


And the other would be:

type=restriction
restriction=only_straight_on

 from : major road part 2
via  : node at the crossing
to   : major road part 1




More information about the talk mailing list