diff --git a/scripts/geodata/polygons/reverse_geocode.py b/scripts/geodata/polygons/reverse_geocode.py index 704bcd04..aed6a761 100644 --- a/scripts/geodata/polygons/reverse_geocode.py +++ b/scripts/geodata/polygons/reverse_geocode.py @@ -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