Merging close lines using v.clean
Buffering the road may be a solution to this problem.
create a dissolved buffer of the road using around 20 unit map distance.
import the layer into a postgis database and create the middle line using ST_ApproximateMedialAxis() function:
SELECT ST_ApproximateMedialAxis(geom) AS geom INTO road_centre_line FROM road_buffer;
- in order to access this function you have to enable the
postgis_sfcgal
extension - with this you will get an output like this