momepy.
close_gaps
Close gaps in LineString geometry where it should be contiguous.
Snaps both lines to a centroid of a gap in between.
GeoDataFrame or GeoSeries containing LineString representation of a network.
nodes within a tolerance will be snapped together
See also
momepy.extend_lines
momepy.remove_false_nodes