Re-routing doesn't return path in the direction of user's movement

Open
#146 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql

Research direction

The issue describes a navigation app needing re-routing that respects user movement direction. Look into the pgRouting library's routing functions, possibly starting with pgr_trsp or pgr_dijkstra. Examine how directionality is handled in the graph and consider algorithms that incorporate a heading or movement vector. Check existing tests for routing to understand the current output format and what modifications would be needed.

Written by the indexing model from the issue text.

Description

Discussion

I am building a navigation app on android using Google Maps. It calls a server which returns the route upon supplying source and destination points to it. Whenever a user moves in wrong direction, the app re-routes user to a new path based on his current LatLng to destination. However, I want this path to be returned always in the direction of user's movement. Can you suggest any algorithm for this or any workaround?

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.