I need to obtain the axes of a road as they appear in the image, so that they reach the end of the street, with the resulting axis being the longest in the polygon.
I have already tried with the tool "Collapse Dual to Centerlines", using the "PolygonToCenterline (Skeleton)" and there is no way to get it.
Please, if someone could help me, I would greatly appreciate it. Thank you.
I attach an example image with the results I want to obtain. The orange polygon would be the surface of the road and the yellow line would be the axis of the street: