a-b-street / a-b-street/ltn

Improvements to shortcuts computations : consider upstream and downstream nodes

オープン
#388 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
21
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm creating an issue to track a old comment made here : https://github.com/a-b-street/ltn/issues/69#issuecomment-2600882440

![Image](https://github.com/user-attachments/assets/c88dd893-3c6e-4d33-b2a0-41791260bdda)

https://www.openstreetmap.org/#map=17/43.600230/3.902979

Both of those shortcuts aren't *shortcuts* because you could reach the outcome faster by another path when entering the shortcut.

> We could check what's allowed at the exit intersection. From that exit, if the only reachable point is the entry intersection, then it's this simple redundant case. If there's anything in between, then maybe it's still a shortcut somebody would take, but it could be weighted less, based on how "useful" exiting there is.

So I would suggest that you should not only take the first-downstream node of the exit, you should also take the first upstream node of the entry.

Most of the shortcuts shown here would be discarded or changed

![Image](https://github.com/user-attachments/assets/596717cf-307e-4978-849a-6933806e0e0a)

For example, this shortcut would never be taken as a car would come from upstream(A) which would give another shortcut

![Image](https://github.com/user-attachments/assets/9ad0bc42-eec5-4491-825d-d040ce44d835)

![Image](https://github.com/user-attachments/assets/8e72a3d7-c966-430a-a001-5ace3c18ceb8)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この issue では、issue #69 のコメントと OpenStreetMap のリンクが参照されています。ショートカットの計算コードを探してください。おそらく、グラフ解析またはルーティングを扱うモジュールにあります。上流ノードと下流ノードが現在どのように考慮されているかを調べてください。まず既存のショートカット検出ロジックを理解し、提供されている例でテストして、提案された改善が実際にどのように動作するかを確認してください。

索引モデルが issue の本文から書いたものです。

評価

領域
backend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。