I am trying to find the road distance between consecutive or say all nearest points.

A sample of my network is shown in the image. My actual network has more than 5000 points. Now I want to calculate the distance between consecutive points like point id 335 and 3797, then 3797 and 2281 and so on, the disconnected points can be ignored.

I tried using closest facility option. I loaded all the points as facilities and incidents to find 3 nearest facilities but it is giving me around 40k + routes which are repeated/overlapping and also the longer routes are not covered, like the nearest facility from point id 2281 will be 2281, 3797 and 678 and it will not cover 1818 enter image description here

I am not sure if i have started in the right direction. If anyone has solved similar kind of problem kindly help me out.

Notes about the network: all the points are properly placed, there are no overlapping lines, no snapping problem, the topological errors have been removed.

  • What do you mean by "..and so on"? You give an example of id 335 to 3797, then 3797 to 2281. Where does "so on" end, you have loops in your network?Where does 4322 go to? Is it 54999, 586 or 5398 and what is the criteria for choosing the direction you want?
    – Hornbydd
    Jan 16, 2018 at 17:05
  • Yes there are loops in my network. As from 4322 there are two branches coming out so the nearest node on both two branches (5499 and 586 will be selected). There is no criteria for direction, and direction is not important. I am sorry if i was not clear. Jan 17, 2018 at 5:02


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.