[fix] name comparison in neighborhoods index

This commit is contained in:
Al
2016-12-18 15:27:21 -05:00
parent 3ac2c93e1c
commit 82b26117aa

View File

@@ -377,7 +377,7 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
containing_component = None
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()):
if name and name.lower() != attrs.get('name', '').lower():
continue
containing_ids = [(boundary['type'], boundary['id']) for boundary in existing_osm_boundaries[poly_index + 1:]]