I encountered a few of these while updating a local road.
If a turn:lanes has more than one "outgoing" lanes (e.g. right and left in left|through|through|right) and the next part of the road has less lanes (e.g. left|through|through) then there must be more than one road on that end of the highway. This can be written very complicated to catch all cases, but I guess a simple check (only ensuring that there's 2+ outgoing roads on the correct end of the way) should be sufficient.
Example (using oneways): the top one is obviously impossible, but the bottom one is fine
Obviously this shouldn't trigger for e.g. merge lanes.
I encountered a few of these while updating a local road.
If a
turn:laneshas more than one "outgoing" lanes (e.g.rightandleftinleft|through|through|right) and the next part of the road has less lanes (e.g.left|through|through) then there must be more than one road on that end of the highway. This can be written very complicated to catch all cases, but I guess a simple check (only ensuring that there's 2+ outgoing roads on the correct end of the way) should be sufficient.Example (using oneways): the top one is obviously impossible, but the bottom one is fine
Obviously this shouldn't trigger for e.g. merge lanes.