Skip to content

Group multi-node junctions in SuggestedLanesPostprocessor#1705

Draft
Karry wants to merge 3 commits intoFramstag:masterfrom
Karry:group-junction-nodes
Draft

Group multi-node junctions in SuggestedLanesPostprocessor#1705
Karry wants to merge 3 commits intoFramstag:masterfrom
Karry:group-junction-nodes

Conversation

@Karry
Copy link
Copy Markdown
Collaborator

@Karry Karry commented Apr 2, 2026

Vibe-coded improvement of "suggested lane" heuristics... I am going to test with real word junctions and carefully review it first.


Complex OSM intersections are modeled as multiple nodes connected by short internal segments that maintain the same lane configuration. The lane suggestion algorithm previously processed each node independently, seeing only a subset of exits and producing wrong lane recommendations.

Scan backwards through the route buffer to detect consecutive junction nodes that are close together (<50m) and share the same lane config, then aggregate their exits into a single evaluation. Filter exits pointing back toward the incoming direction to suppress opposite carriageway false positives in grouped junctions.

Fixes the Průmyslová/Černokostecká test case.

Karry added 3 commits April 2, 2026 15:47
Complex OSM intersections are modeled as multiple nodes connected by
short internal segments that maintain the same lane configuration.
The lane suggestion algorithm previously processed each node independently,
seeing only a subset of exits and producing wrong lane recommendations.

Scan backwards through the route buffer to detect consecutive junction
nodes that are close together (<50m) and share the same lane config,
then aggregate their exits into a single evaluation. Filter exits
pointing back toward the incoming direction to suppress opposite
carriageway false positives in grouped junctions.

Fixes the Průmyslová/Černokostecká test case.
@Framstag
Copy link
Copy Markdown
Owner

Is this ready for merge? How was your KI experience?

@Framstag
Copy link
Copy Markdown
Owner

@Karry : Ready to merge?

@Karry
Copy link
Copy Markdown
Collaborator Author

Karry commented Apr 25, 2026

Not yet unfortunately. I found out that situation for some junctions get worse actually. Today, it is easy vibe-code tens of tools, but still you need time for writing prompts and validating the output... :-)

I will post some testing tool later when I will have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants