From 562896382d17db1bf607379c3160d63588fc3769 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 7 Oct 2026 01:49:54 +0200 Subject: [PATCH] State in street_delivery when the postort's own prefix is two digits and when three --- data-import/geo-se.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data-import/geo-se.py b/data-import/geo-se.py index e50805e..9b3d758 100644 --- a/data-import/geo-se.py +++ b/data-import/geo-se.py @@ -136,7 +136,8 @@ class Nearest: def street_delivery(name, codes): """The codes delivered to a street. Outside ONE_POSITION's cities, the digit after the postort's own prefix is 0 or 1 - for boxes and 8 for reply mail; inside them, a second digit 0 marks boxes. + for boxes and 8 for reply mail; inside them, a second digit 0 marks boxes. The postort's own prefix is three digits + where one three-digit prefix starts at least half its codes, else two. Per docs/research/research-geo-se.md, Postal codes → Structure.""" if name in ONE_POSITION: return [c for c in codes if c[1] != "0"]