[Routing] gosmore: only_right_turn vs no_left_turn

Egor Glukhov kaman at rndfido.net
Sat Apr 2 09:15:44 BST 2011


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? 



More information about the Routing mailing list