Implement KSP on top of TRSP

Open
#206 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp, postgresql
Domain
backend, databases

Research direction

The issue is about extending pgRouting's algorithms (pgr_kdijkstra, pgr_ksp) to support turn restrictions, which are currently only in pgr_trsp. Start by examining the pgr_trsp source code to understand how turn restrictions are implemented. Then, look at the existing pgr_kdijkstra and pgr_ksp implementations to see where to integrate the restriction logic. 'Done' means the new algorithms correctly respect turn restrictions in routing queries.

Written by the indexing model from the issue text.

Description

Functionality Request KSP TRSP

Turn restrictions are only supported in pgr_trsp, it would be nice to be able to do pgr_kdijkstra, pgr_ksp, etc using trun restriction. A nice enhancement would be to implement these algorithm on top of the TRSP code or to add turn restriction support to these other algorithms.

Dominant language
C++
Stars
1.4k
Forks
397
Avg merge
2d 16h
Merged PRs (30d)
8

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pgRouting/pgrouting

All issues in pgRouting/pgrouting

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.