From dc022f86524cd6a5bd55c86855c0f999e6db5f76 Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 10 Dec 2016 01:17:38 -0500 Subject: [PATCH] [osm] adding normalized_place_name to Quattroshapes city --- scripts/geodata/addresses/components.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/geodata/addresses/components.py b/scripts/geodata/addresses/components.py index 262bdb5f..a879f98d 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -1486,6 +1486,7 @@ class AddressComponents(object): city = self.quattroshapes_city(address_components, latitude, longitude, language, non_local_language=non_local_language) if city: + city = self.normalized_place_name(city, AddressFormatter.CITY, all_osm_components, country=country, languages=all_languages) address_components[AddressFormatter.CITY] = city self.add_neighborhoods(address_components, neighborhoods, @@ -1598,10 +1599,9 @@ class AddressComponents(object): always_use_full_names=True) if city: + city = self.normalized_place_name(city, AddressFormatter.CITY, all_osm_components, country=country, languages=all_languages) address_components[AddressFormatter.CITY] = city - neighborhoods = self.neighborhood_components(latitude, longitude) - self.add_neighborhoods(address_components, neighborhoods, language_suffix=language_suffix)