[names] adding configurable prefix/suffix additions for boundary names

This commit is contained in:
Al
2016-12-27 20:32:08 -05:00
parent 80a9c1b308
commit 165056ccd8
2 changed files with 70 additions and 3 deletions

View File

@@ -982,7 +982,7 @@ class AddressComponents(object):
name = component_value.get(k)
if name:
name = boundary_names.name(country, name)
name = boundary_names.name(country, component, name)
if name and not (name == existing_city_name and component != AddressFormatter.CITY and drop_duplicate_city_names):
name = self.cleaned_name(name, first_comma_delimited_phrase=True)