I have the following issue:
A bridge and the road below, standard 2D lines, both have nodes with identical coordinates - i.e. they share a "node location". When I want to output this dataset to OSM XML, the writer creates a connection in this point, even though they are not connected in realit". I've tried to separate them by Z-coordinate, but that had no effect. Therefore, my guess is that it creates a "node cache" with the coordinates as key, which means they will share a node because they share a coordinate.
With this in mind, my solution would be to slightly adjust the position of these internal nodes that overlap. Probably with just a minor change(cm? mm?), the nodes will not be cached to the same location. However, I've got no idea how to A) access all non-start or non-end nodes of a line and subsequently slightly and randomly alter their position.