I'm trying to create a geometry nodes structure that creates junctions (multiple at once). I have a mesh of vertices and edges as input. I'm trying to get a junction geometry (which somewhat works), but the issue is orientation of curves on which I want to later generate other geometry like pavement, curb etc. I want to make so that the pavements are generated all in same direction (ideally inwards while offsetting the curve outwards before that by width of pavement). I'm not that familiar with geometry nodes yet.
I have tried to figure it out through visualizing it better but no ideas were sparked (red are endpoints and green are start points of the curve, and black are center points of junction).
If I were able to get the positions of the endpoint and startpoint as vectors, not only the boolean masks from Endpoint Selection node, and then the position of the "center point" of the given junction also as vector, I would be able to calculate selection through sign of angle. But I was unable to get to that point so far. Here is the main part of the node tree:
Any ideas or ways to achieve the same result are welcome.