1. Move point B upward by the width of the street, then connect point A and point B, and build an overpass at the intersection of this straight line and the street, which is the shortest route from A to B. ..
2. Move point B upward by the street width distance, then connect point A and point B, and then make the middle vertical line of this line segment. When the middle vertical line intersects the street edge, an overpass will be built, so that A and B have the same distance from the bridge.
If you have any questions, you can continue to ask.
I have studied this answer for a long time. I hope it can be adopted and praised. Thank you!