[polygons] Persistent polygons for neighborhoods index as well, cache size at 100k

This commit is contained in:
Al
2016-04-11 01:24:45 -04:00
parent e6dcf975f6
commit 7332445525

View File

@@ -150,6 +150,7 @@ class ZetashapesReverseGeocoder(GeohashPolygonIndex):
SCRATCH_DIR = '/tmp'
# Contains accurate boundaries for neighborhoods sans weird GeoPlanet names like "Adelphi" or "Crown Heights South"
NEIGHBORHOODS_REPO = 'https://github.com/blackmad/neighborhoods'
@classmethod
@@ -220,6 +221,9 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex):
DUPE_THRESHOLD = 0.9
persistent_polygons = True
cache_size = 100000
source_priorities = {
'zetashapes': 0, # Best names/polygons
'osm_zeta': 1, # OSM names matched with Zetashapes polygon