From 985ea79e022433c311bfc544ba3f612544006d52 Mon Sep 17 00:00:00 2001 From: Al Date: Tue, 26 Jul 2016 22:38:36 -0400 Subject: [PATCH] [fix] cap the number of population-based references --- scripts/geodata/osm/formatter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/geodata/osm/formatter.py b/scripts/geodata/osm/formatter.py index 0c58e32c..2e29bd01 100644 --- a/scripts/geodata/osm/formatter.py +++ b/scripts/geodata/osm/formatter.py @@ -440,6 +440,8 @@ class OSMAddressFormatter(object): population = 0 num_references = population / 10000 + 1 + if num_references > 1000: + num_references = 1000 for name_tag in ('name', 'alt_name', 'loc_name', 'short_name', 'int_name'): if more_than_one_official_language: