Problem
Currently, pgr_dijkstraVia returns the following fields:
seq | path_id | path_seq | start_vid | end_vid | node | edge | cost | agg_cost | route_agg_cost
However, unlike other pgRouting functions such as pgr_drivingDistance, it does not expose predecessor information.
Improvement
Add prev column to the result set of pgr_dijkstraVia.
Proposed output:
seq | path_id | path_seq | start_vid | end_vid | prev | node | edge | cost | agg_cost | route_agg_cost
Where: prev = previous node
Alternatives
Problem
Currently,
pgr_dijkstraViareturns the following fields:However, unlike other pgRouting functions such as
pgr_drivingDistance, it does not expose predecessor information.Improvement
Add
prevcolumn to the result set ofpgr_dijkstraVia.Proposed output:
Where: prev = previous node
Alternatives