Hello Nic, Sorry for the late reply. Yes, the turning left from ул. Беляева to проспект Королёва is disallowed. It's indicated by the relation: http://www.openstreetmap.org/browse/relation/1522344
You see, the restriction is set to 'only_right_turn'. Gosmore seems to ignore this tag and draws a route through the intersection. But when I change the restriction to 'no_left_turn', the route is drawn correctly making a detour of this intersection. I think it might be a bug. On Sat, Apr 02, 2011 at 01:00:25PM +0200, Nic Roets wrote: > Hello Egor, > > It's a bit difficult to interpret your pastebins, so I'll tell you how > it should work. If you think there is a bug, please reply. > > I assume the turning left is disallowed at the intersection. So there > are two ways to tag it: > (a) only_right_turn with проспект Королёва as the 'to' member, or > (b) no_left_turn with Армянская ул. as the 'to' member. > > Note that 'only_...' indicates something that you MUST do, while > 'no_...' indicates something that you may never do. > > Note that Gosmore does not check that 'from' and 'to' makes a left > turn. So you can use no_left_turn to prevent it from generating a > right turn. But it is bad because you may confuse other mappers. > > > On Sat, Apr 2, 2011 at 10:15 AM, Egor Glukhov <[email protected]> wrote: > > Dear colleagues, > > > > Could you please explain to me how the turn restrictions 'no_left_turn' and > > 'only_right_turn' are handled by gosmore? > > > > I need to indicate that there is no left turn from way #25220145 to way > > #25414241 via node #275006019. When I add this xml: > > > > <relation id="1522344" version="1" timestamp="2011-04-02T00:33:35Z" > > user="kaman"> > > <member role="from" type="way" ref="25220145"/> > > <member role="via" type="node" ref="275006019"/> > > <member role="to" type="way" ref="25414241"/> > > <tag k="type" v="restriction"/> > > <tag k="restriction" v="only_right_turn"/> > > </relation> > > > > and run > > `QUERY_STRING="flat=47.300182&flon=39.723220&tlat=47.297668&tlon=39.725057&fast=0&v=motorcar" > > gosmore`, it seems to ignore this restriction. It makes a route containing > > the point '47.297893,39.723702' which is exactly the node #275006019: > > http://pastebin.com/ze7qVNY9 > > > > But when I change 'v="only_right_turn"' to 'v="no_left_turn"', the route is > > built correctly: http://pastebin.com/AUqwGCJf > > > > Any ideas why? > > > > _______________________________________________ > > Routing mailing list > > [email protected] > > http://lists.openstreetmap.org/listinfo/routing > > > > _______________________________________________ > Routing mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/routing _______________________________________________ Routing mailing list [email protected] http://lists.openstreetmap.org/listinfo/routing
