[fix] set component to suburb on OSM neighborhoods index
This commit is contained in:
@@ -311,6 +311,7 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
|
|||||||
poly = osmn.get_polygon(i)
|
poly = osmn.get_polygon(i)
|
||||||
|
|
||||||
props['source'] = 'osm'
|
props['source'] = 'osm'
|
||||||
|
props['component'] = AddressFormatter.SUBURB
|
||||||
props['polygon_type'] = 'neighborhood'
|
props['polygon_type'] = 'neighborhood'
|
||||||
index.index_polygon(poly)
|
index.index_polygon(poly)
|
||||||
index.add_polygon(poly, props)
|
index.add_polygon(poly, props)
|
||||||
|
|||||||
Reference in New Issue
Block a user