feat(tradein): MapPicker snap marker — Phase 5 of #582 #594
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#594
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/tradein-mappicker-snap-marker"
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?
Summary
Phase 5 of issue #582 — marker на карте теперь совпадает с canonical address в карточке.
Bug fix
Do PR:
/api/v1/geocode/reverseecho'ил input lat/lon → marker оставался где user кликнул (проезд/двор), а address resolved до canonicalул. Малышева, 125. Visual mismatch.После PR: backend возвращает snapped point matched здания, frontend двигает marker если precision = exact/number/cadastral и distance >5m.
Changes (+677 / -37)
Backend:
services/geocoder.py(+208/-16):reverse_geocode → ReverseGeocodeResult(address + snapped + precision + provider). Cadastral FDW → Yandex → Nominatim chain.kind=houseдля Yandex /reverse.api/v1/geocode.py(+38/-8): новый PydanticReverseResponsemodel.tests/test_geocode_reverse_api.py(new, 228 LOC): 7 tests — endpoint shape, 404, precision differentiation, Yandex parsing.tests/services/test_cadastral_reverse.py(+98/-28): 6 updated + 2 new (Yandex path + Yandex→Nominatim fallthrough).Frontend:
components/trade-in/MapPicker.tsx(+82/-8):SNAP_PRECISIONSset +SNAP_MIN_DISTANCE_M=5+haversineMeters(). После reverse —marker.setLatLng + map.panTo(smooth). Hint «Точка дома по Яндексу» с aria-live + var(--fg-tertiary) token.Tests
Post-deploy QA
snapped_lat/snapped_lon/precision/providerCloses #582 (Phase 5).