Resolve numeric ПЗЗ limits (max_far/КСИТ, max_height_m, max_floors, max_building_pct, min_parcel_area_m2) by parcel centroid via the coordinate resolver get_or_fetch_zone_regulation (cache-first; bounded 3s live geoportal) and merge into the /analyze nspd_zoning object. Powers the ПТИЦА cockpit's real КСИТ/height/density (was placeholder). Flag-gated (enable_zoning_regulation_in_analyze, default on) and hot-path-safe: any exception/timeout → null fields, analyze never 500s or slow-fails (3s cap). Additive — existing nspd_zoning keys untouched. 198 tests pass. Note: zone_index_at is a live WFS call per analyze even on warm cache (~0.3-0.5s healthy / 3s cap degraded) — optimization tracked as follow-up. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| audit_middleware.py | ||
| auth.py | ||
| config.py | ||
| db.py | ||
| deps.py | ||