Opened 9 years ago

Last modified 4 years ago

#1215 new defect/bug

Wrong turn restriction processing when multiple single-way paths exist

Reported by: tryagain Owned by: KaZeR
Priority: major Milestone: version 0.6.0
Component: core Version: git master
Severity: normal Keywords: routing, maptool


There's a flaw in turn restriction processing code which does not allow direct natural routing from (P) to (D) through (AB).

Suppose we have current position point P, destination point D and two intermediate points A and B.

There are following ways defined: PA, AB, BD which describe a direct way from P to D.

Suppose we have a service way from A to B flowing through some side point(s) C, and it's not allowed to turn left to the ACB way ( ) when you drive on PA.

Maptool records only three points of a turn restriction: beginning of the "from" way, "via" node, and end point of the "to" way. So, in described situation, it will produce a rule prohibiting access from A to B by any existing way.

If ACB is represented by multiple OSM ways, problem will not appear.

IIRC, maptool splits all ways at each crossing before applying above logic. So this problem will probably also have no sense if ACB has some other ways connecting to ACB point C.

Attachments (1)

tr_bug.png (47.7 KB) - added by tryagain 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by tryagain

comment:1 Changed 5 years ago by

  • Milestone changed from version 0.5.1 to version 0.5.2

This ticket was pushed back in order to bring 0.5.1 out soon.

comment:2 Changed 4 years ago by

  • Milestone changed from version 0.5.2 to version 0.6.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.