[fix] args
This commit is contained in:
@@ -1100,7 +1100,7 @@ class OSMAddressFormatter(object):
|
||||
expanded_postal_codes = []
|
||||
|
||||
if postal_code:
|
||||
expanded_postal_codes = self.expand_postal_codes(postal_code, osm_components, country, all_local_languages | random_languages)
|
||||
expanded_postal_codes = self.expand_postal_codes(postal_code, country, all_local_languages | random_languages, osm_components)
|
||||
|
||||
if len(expanded_postal_codes) == 1:
|
||||
revised_tags[AddressFormatter.POSTCODE] = expanded_postal_codes[0]
|
||||
@@ -1130,7 +1130,7 @@ class OSMAddressFormatter(object):
|
||||
if k not in revised_tags and k in (AddressFormatter.HOUSE_NUMBER, AddressFormatter.ROAD):
|
||||
revised_tags[k] = v
|
||||
elif k not in revised_tags and k == AddressFormatter.POSTCODE:
|
||||
expanded_postal_codes = self.expand_postal_codes(v, osm_components, country, all_local_languages | random_languages)
|
||||
expanded_postal_codes = self.expand_postal_codes(v, country, all_local_languages | random_languages, osm_components)
|
||||
|
||||
if not expanded_postal_codes:
|
||||
revised_tags.pop(AddressFormatter.POSTCODE)
|
||||
|
||||
Reference in New Issue
Block a user