I have imported osm data to postgis by osm2pgrouting. Now I want to add point data of my locations, to find distance from one point to multiple points through the osm ways data. I am new to pgrouting.

How can I create topology from these points to ways data.


  • It is not entirely clear what you are asking. Are you asking how to find the nearest road segment from some point to some other point, where neither point is exactly on a road segment? Have you read the docs. – John Powell Nov 30 '16 at 8:18
  • I previously asked what I think is a similar question involving the pgr_withpoints function (temporarily adding network nodes from a poi table). Maybe you could have look at that question first. gis.stackexchange.com/q/216273/52250 – JonasPedersen Nov 30 '16 at 9:01
  • Thanks for the help JonasPedersen . This was my requirement. and John Barça for the effort. – Ramkumar Narendran Dec 1 '16 at 5:36

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.