I have all these line segments travelling between points:
I want all the one close to each other to be merged into a single feature. So I dissolved them like so:
Now I just want one line travelling through the centre of each of these line-like polygons. Any functions that do this?