Commit Graph

12 Commits

Author SHA1 Message Date
Ilya Mukhortov b54b0c0244 Import current GAR objects as stored and treat a level-8 poselok as a locality.
Houses of any type now hang on the nearest imported ancestor, and a house can be chosen from the selected locality when no street is picked.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 10:48:03 +10:00
Ilya Mukhortov 8ade6089b1 Serve compact address JSON from /compact paths.
Drop the compact query flag so short responses are a separate endpoint for regions, localities, streets, search, and suggest.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-30 09:55:11 +10:00
Ilya Mukhortov 9ab9baca48 Omit redundant short_label, full_label, and level from GET /regions.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:32:29 +10:00
Ilya Mukhortov 71136db786 Add short_label, compact JSON, and omit nested parent by default.
Search items can return a step path without the region and a compact field set; clients that need the parent chain pass include_parent=true.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-18 10:10:53 +10:00
Ilya Mukhortov 9b2e06e464 Find СНТ in locality search and show ancestor path in the label.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 20:20:00 +10:00
Ilya Mukhortov 877e76d67d Add suggest search for city and street in one query.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 20:08:08 +10:00
Ilya Mukhortov a71fd9b610 Show street ancestors under suggestions instead of the region code.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 11:47:10 +10:00
Ilya Mukhortov dc549696a2 Add a display label that avoids repeating FIAS type names.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 12:58:08 +10:00
Ilya Mukhortov 46ce284f55 Redesign the address client with MUI and drop react-select.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 12:36:00 +10:00
Ilya Mukhortov 00a32f2a4c Serve UI, API, and admin under /address-service/.
Keep API at {prefix}api/ so Caddy can use a static URL_PREFIX, including /.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 20:56:48 +10:00
Ilya Mukhortov 144ebdcad6 Rebuild FIAS import around streamed GAR zip and reset schema migrations.
Patient search is subject → locality → street → house; municipal containers
are skipped, and KLADR/postal params load from the same archive without unpacking.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-31 16:12:14 +10:00
med-logic 820b6d1809 Require region before address search 2026-08-28 17:31:15 +10:00