[fix] set component to suburb on OSM neighborhoods index

This commit is contained in:
Al
2017-02-14 02:19:53 -05:00
parent 072a838fde
commit b9c24867d7

View File

@@ -311,6 +311,7 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
poly = osmn.get_polygon(i)
props['source'] = 'osm'
props['component'] = AddressFormatter.SUBURB
props['polygon_type'] = 'neighborhood'
index.index_polygon(poly)
index.add_polygon(poly, props)