[fix] poly.context

This commit is contained in:
Al
2017-02-14 03:09:02 -05:00
parent 1ee0f1fe0d
commit 5bbc0e15d7

View File

@@ -313,8 +313,9 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
props['source'] = 'osm' props['source'] = 'osm'
props['component'] = AddressFormatter.SUBURB props['component'] = AddressFormatter.SUBURB
props['polygon_type'] = 'neighborhood' props['polygon_type'] = 'neighborhood'
index.index_polygon(poly)
index.add_polygon(poly, props) index.index_polygon(poly.context)
index.add_polygon(poly.context, props)
qs.matched = [False] * qs.i qs.matched = [False] * qs.i
cth.matched = [False] * cth.i cth.matched = [False] * cth.i