[fix] var

This commit is contained in:
Al
2017-02-14 03:38:53 -05:00
parent 56f68e4399
commit a416a314fa

View File

@@ -433,10 +433,12 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
continue continue
if idx is cth: if idx is cth:
if attrs['component'] == AddressFormatter.SUBURB: if props['component'] == AddressFormatter.SUBURB:
attrs['polygon_type'] = 'neighborhood' attrs['polygon_type'] = 'neighborhood'
else: elif props['component'] == AddressFormatter.CITY_DISTRICT:
attrs['polygon_type'] = 'local_admin' attrs['polygon_type'] = 'local_admin'
else:
continue
source = 'osm_cth' source = 'osm_cth'
else: else:
level = props.get(QuattroshapesReverseGeocoder.LEVEL, None) level = props.get(QuattroshapesReverseGeocoder.LEVEL, None)