I am trying to make a polygon of the boundaries of traffic intersections using a python script. I want to automatically create intersection polygons made of arcs and lines connecting them. Essentially, what I need to create are lines labeled in red below to finish off the polygon.
How do I make the script "know" which two arc endpoints to connect to make the red lines? If I create a line between each point and its nearest neighbor, it could mess up if one road is wider than the other. Also, how could I make the line extend perpendicularly from the ac endpoint until it hits the other end of the intersection?