You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: geoclustering/__main__.py
+20-2Lines changed: 20 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,20 @@
1
+
frompathlibimportPath
1
2
importclick
3
+
importos
2
4
importwebbrowser
3
5
4
6
importgeoclustering.clusteringasclustering
5
7
importgeoclustering.encodingasencoding
6
8
importgeoclustering.ioasio
7
9
8
10
9
-
@click.command()
11
+
defprint_debug(s):
12
+
click.secho(s, fg="bright_black")
13
+
14
+
15
+
@click.command(
16
+
help="Tool to cluster geolocations. A cluster is created when a certain number of points (--size) each are within a given distance (--distance) of at least one other point in the cluster. Input is supplied as a csv file. At a minimum, each row needs to have a 'lat' and a 'lon' column. Other rows are reflected to the output."
17
+
)
10
18
@click.option(
11
19
"--distance",
12
20
"-d",
@@ -43,9 +51,15 @@
43
51
is_flag=True,
44
52
help="Open the generated visualization in the default browser automatically.",
0 commit comments