[fix] dehyphenate multiword names before city/suburb comparison

This commit is contained in:
Al
2016-12-23 01:53:09 -05:00
parent 151287856d
commit 0814381d7f

View File

@@ -994,6 +994,8 @@ class AddressComponents(object):
raw_name_key = boundary_names.DEFAULT_NAME_KEY
city_name = address_components.get(AddressFormatter.CITY)
if city_name:
city_name = self.dehyphenate_multiword_name(city_name)
for neighborhood in neighborhoods:
place_type = neighborhood.get('place')