[fix] var
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user