Skip to content

Commit

Permalink
move cluster_locations and data files
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Oct 20, 2024
1 parent 1296a4a commit 4f719b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 5 additions & 3 deletions cluster-locations.py → oldnyc/geocode/cluster.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python
"""
Reads in locations.txt (produced by generate-geocodes.py with
--output_mode=locations.txt) and clusters very close points. This reduces the
number of unique map markers and makes it easier to find things.
Reads in locations.txt (produced by geocode.py with --output_mode=locations.txt)
and clusters very close points. This reduces the number of unique map markers and
makes it easier to find things.
Output is an exhaustive mapping of "old_lat,old_lon\tnew_lat,new_lon" pairs.
Expand All @@ -16,8 +16,10 @@

import fileinput

# TODO: move to argparse
DISTANCE_THRESHOLD = 20

# TODO: move to argparse
output_mode = "map" # 'urls'

counts = []
Expand Down

0 comments on commit 4f719b6

Please sign in to comment.