From d2a2e7ffde83c210f93c5d6386c50db9f7ffac0f Mon Sep 17 00:00:00 2001 From: Al Date: Thu, 5 May 2016 14:10:06 -0400 Subject: [PATCH] [fix] method name --- 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 056691ff..7fe88a7e 100644 --- a/scripts/geodata/addresses/components.py +++ b/scripts/geodata/addresses/components.py @@ -100,7 +100,7 @@ class AddressExpander(object): def osm_reverse_geocoded_components(self, latitude, longitude): return self.osm_admin_rtree.point_in_poly(latitude, longitude, return_all=True) - def normalized_osm_components(self, country, osm_components): + def categorized_osm_components(self, country, osm_components): components = defaultdict(list) for props in osm_components: name = props.get('name') @@ -423,7 +423,7 @@ class AddressExpander(object): iso_code3_key = 'ISO3166-1:alpha3' if osm_components: - osm_components = self.normalized_osm_components(country, osm_components) + osm_components = self.categorized_osm_components(country, osm_components) poly_components = defaultdict(list) existing_city_name = address_components.get(AddressFormatter.CITY)