[openaddresses] Also skipping addresses where street == unit
This commit is contained in:
@@ -184,6 +184,10 @@ class OpenAddressesFormatter(object):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
unit = components.get(AddressFormatter.UNIT, None)
|
unit = components.get(AddressFormatter.UNIT, None)
|
||||||
|
|
||||||
|
if unit and street and street.lower() == unit.lower():
|
||||||
|
continue
|
||||||
|
|
||||||
if unit is not None:
|
if unit is not None:
|
||||||
if is_numeric_strict(unit):
|
if is_numeric_strict(unit):
|
||||||
unit = Unit.phrase(unit, language, country=country)
|
unit = Unit.phrase(unit, language, country=country)
|
||||||
|
|||||||
Reference in New Issue
Block a user