[fix] dehyphenate multiword names before city/suburb comparison
This commit is contained in:
@@ -994,6 +994,8 @@ class AddressComponents(object):
|
|||||||
raw_name_key = boundary_names.DEFAULT_NAME_KEY
|
raw_name_key = boundary_names.DEFAULT_NAME_KEY
|
||||||
|
|
||||||
city_name = address_components.get(AddressFormatter.CITY)
|
city_name = address_components.get(AddressFormatter.CITY)
|
||||||
|
if city_name:
|
||||||
|
city_name = self.dehyphenate_multiword_name(city_name)
|
||||||
|
|
||||||
for neighborhood in neighborhoods:
|
for neighborhood in neighborhoods:
|
||||||
place_type = neighborhood.get('place')
|
place_type = neighborhood.get('place')
|
||||||
|
|||||||
Reference in New Issue
Block a user