3

I have two point layers,X layer and Y layer, with nearest node on a road network calculated for each.

I wish to calculate the shortest path from X nearest node to Y nearest node. I do not want matching shortest distance X-Y pairs and wish to specify that X nearest node is the start point with Y nearest node (shortest distance) being end point to calculate the distance between them?

Are there multi-multi pgrouting functions which enable user to specify such?

0

There are 2 new "cost-matrix" functions in the latest pgRouting release, which are currently marked as "proposed" but supposed to be stable: http://docs.pgrouting.org/latest/en/src/costMatrix/doc/costMatrix.html#costmatrix

Not sure this was, what you are looking for.

  • So i want to be able to specify the start_vids and end_vids from differing tables using their nearest_nodes (obtained from road_network). No luck so far with costmatrix. – Columbo25 Dec 7 '16 at 13:42

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.