From 4531ac50b9e701c51314ce72d6fbeecf80fdf105 Mon Sep 17 00:00:00 2001 From: Viktor Antropov Date: Wed, 9 Sep 2026 13:22:12 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B6/=D0=B4=20=E2=80=94=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=D1=82=D1=80=20=D0=BA=D0=BE=D1=80=D0=BE=D1=82=D0=BA?= =?UTF-8?q?=D0=B8=D1=85=20=D1=81=D0=B5=D0=B3=D0=BC=D0=B5=D0=BD=D1=82=D0=BE?= =?UTF-8?q?=D0=B2=20<300=20=D0=BC=20(=D0=BD=D0=B0=D1=80=D0=B5=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=81=D1=82=D1=80=D0=B5=D0=BB=D0=BE=D0=BA=20=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D1=86=D0=B8=D0=B8=20=D1=88=D1=83=D0=BC=D0=B8?= =?UTF-8?q?=D1=82=20=D0=BA=D0=B0=D1=80=D1=82=D1=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routers/water.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/routers/water.py b/backend/routers/water.py index da5ff99..c895937 100644 --- a/backend/routers/water.py +++ b/backend/routers/water.py @@ -197,6 +197,10 @@ def _railway_geoms(elements: list[dict]) -> list[dict]: if len(geometry) < 2: continue length, lat, lon = _way_length_mid(geometry) + # Короткие обрезки путей (<300 м, нарезка по стрелкам внутри станции) + # шумны и не дают штабу полезной информации — пропускаем. + if length < 300: + continue line = {'type': 'LineString', 'coordinates': [[p['lon'], p['lat']] for p in geometry]} out.append({'layer': 'railway', 'name': tags.get('name'), 'geom': line, 'length_m': length, 'lat': lat, 'lon': lon})