From ef72ad592b8c6ba4b04d405883476d7b22b57671 Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 9 Apr 2016 21:35:17 -0400 Subject: [PATCH] [fix] moving methods --- scripts/geodata/polygons/reverse_geocode.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/scripts/geodata/polygons/reverse_geocode.py b/scripts/geodata/polygons/reverse_geocode.py index 17e8ca49..492b9778 100644 --- a/scripts/geodata/polygons/reverse_geocode.py +++ b/scripts/geodata/polygons/reverse_geocode.py @@ -154,6 +154,13 @@ class ZetashapesReverseGeocoder(GeohashPolygonIndex): ('http://catalog.civicdashboards.com/dataset/eea7c03e-9917-40b0-bba5-82e8e37d6739/resource/91778048-3c58-449c-a3f9-365ed203e914/download/06463a12c2104adf86335df0170c25e3pediacitiesnycneighborhoods.geojson', 'pediacities_nyc.geojson'), ] + NEIGHBORHOODS_REPO = 'https://github.com/blackmad/neighborhoods' + + @classmethod + def clone_repo(cls, path): + subprocess.check_call(['rm', '-rf', path]) + subprocess.check_call(['git', 'clone', cls.NEIGHBORHOODS_REPO, path]) + @classmethod def create_index(cls): scratch_dir = cls.SCRATCH_DIR @@ -217,7 +224,6 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex): tests for neighborhoods. The properties vary by source but each has source has least a "name" key which in practice is what we care about. ''' - NEIGHBORHOODS_REPO = 'https://github.com/blackmad/neighborhoods' SCRATCH_DIR = '/tmp' @@ -242,11 +248,6 @@ class NeighborhoodReverseGeocoder(RTreePolygonIndex): (re.compile('^paris-(?=[\d])', re.I), ''), ] - @classmethod - def clone_repo(cls, path): - subprocess.check_call(['rm', '-rf', path]) - subprocess.check_call(['git', 'clone', cls.NEIGHBORHOODS_REPO, path]) - @classmethod def count_words(cls, s): doc = defaultdict(int)