fix(site-finder): nearest_top3 metro from osm_poi_ekb (#1667) #1670
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1670
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/1667-metro-block"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Закрывает #1667 (gap-анализ site-finder, missing-UNtracked).
metro_block.nearest_top3был голымNone(ждал так и не влитый 22h-скрапер). Данные уже есть —osm_poi_ekbcategory='metro_stop' (грузитpoi_loader). Заменил на прямой KNN: 3 ближайшие станции{name, distance_m};[]если рядом нет,Noneна ошибке (SAVEPOINT+graceful, как соседние SF-B5 блоки). Фронт-потребителя нет → обратно-совместимо.Verify: py_compile, ruff clean, test_analyze_inline_weights 6 passed.
NB: если прод-loader ещё не наполнил metro_stop — блок корректно отдаст
[].Closes #1667
Replace bare metro_block placeholder ({"nearest_top3": None}, blocked on a never-merged 22h metro scraper) with a direct KNN query against osm_poi_ekb category='metro_stop' (loaded by poi_loader). Returns 3 nearest stations with name + rounded distance_m; empty list when none nearby (vs None on error), SAVEPOINT + try/except like adjacent SF-B5 blocks. No frontend consumer yet. Closes #1667