[polygons] Persistent polygons for neighborhoods index as well, cache size at 100k
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user