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

An auto-generated boundary misses the main road on one side

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

説明

Around `17/57.158421/-2.097337` in Aberdeen, the generated boundary misses all of the main road King Street bordering on the east side:

![Image](https://github.com/user-attachments/assets/236deb55-339e-4cf6-86b3-fb8359be2473)
(The lack of border arrows shows the problem.) But then, if I click "Adjust boundary", make no changes, and accept, then it works:

![Image](https://github.com/user-attachments/assets/f2ef9cc9-98cd-4266-b2d8-0e33b3dfa061)

The reason is https://github.com/a-b-street/ltn/blob/69e389d44d6f7f96f7dd77f87562786d7eb118a8/backend/src/neighbourhood.rs#L93 -- we simplify the boundary a bit before generating waypoints, and that gets lucky and nudges us close enough to pick up the main road. Seems like the initial boundary / thresholds should capture this, though

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

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

調査の方向性

この問題は backend/src/neighbourhood.rs の 93 行目にあり、waypoints を生成する前の境界の単純化が道路の包含に影響しています。まず、境界の生成と単純化のロジックを理解してください。指定された座標の周辺でコードを実行して欠落している道路を再現し、その後、初期の境界/しきい値でなぜそれを捕捉できないのかを追跡してください。「完了」とは、自動生成された境界に手動調整なしで King Street が正しく含まれることを意味します。

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

評価

技術スタック
rust
領域
backend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

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

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