I have developed a tool that tries to find a path connecting a set of telecommunication network equipment along a given road network. Since the equipment is located at various distance from the road network I am using shapely
interpolate methods to find the equipment location projection along the road.
In the below image you can see the road network as green and red lines, yellow dot as the equipment location, blue dot as the equipment projected location. The magenta lines connect the original equipment location to the corresponding projected location.
As you can see most of the times, the projection lies on the nearest road segment. However the red circled dot isn't projected on the nearest red line on its left, or on the green line below.
What can be the reason of the displayed behaviour?