Right now I am working in a project to electrify rural communities (points). I have to connect this points to the current electric grid (represented in a polyline). I want to find the way that finds the nearest neighbor but taking into account the previous point connected (because is not cost efficient to go all the way down to the grid (polyline)). I have tried the network analyst but its built for another purpose , taking into account roads, stops.
How can I build a grid extension or network considering the nearest point and previous point connected?
Appreciate a lot if anyone can guide me to achieve this purpose!