If existing crossing nodes exist in a segment, use them.
It's an open question whether to use the sidewalk nodes to angle towards that crossing or to use that crossing node and generate two lines that reach the existing sidewalks in the shortest distance.