From 0c55bc3bb856967f9081c42aae5af492bafdfc3f Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 18 Dec 2016 11:41:00 -0500 Subject: [PATCH] [fix] var name --- scripts/geodata/neighborhoods/reverse_geocode.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/geodata/neighborhoods/reverse_geocode.py b/scripts/geodata/neighborhoods/reverse_geocode.py index ee3a5d0b..04de104b 100644 --- a/scripts/geodata/neighborhoods/reverse_geocode.py +++ b/scripts/geodata/neighborhoods/reverse_geocode.py @@ -373,16 +373,16 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex): existing_osm_boundaries = osm_admin_rtree.point_in_poly(lat, lon, return_all=True) skip_node = False - for i, props in enumerate(existing_osm_boundaries): + for i, osm_props in enumerate(existing_osm_boundaries): containing_component = None - name = props.get('name') + name = osm_props.get('name') # Only exact name matches here since we're comparins OSM to OSM if name and name.lower() != attrs.get('name', ''.lower()): continue containing_ids = [(boundary['type'], boundary['id']) for boundary in existing_osm_boundaries[i + 1:]] - containing_component = osm_address_components.component_from_properties(country, props, containing=containing_ids) + containing_component = osm_address_components.component_from_properties(country, osm_props, containing=containing_ids) if containing_component and containing_component != component_name and AddressFormatter.component_order[containing_component] <= AddressFormatter.component_order[AddressFormatter.CITY]: skip_node = True