Skip to content

Improvement: add "prev" column to pgr_dijkstraVia result set #3111

@claudiadragoste

Description

@claudiadragoste

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions