We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ff916a commit cc72e13Copy full SHA for cc72e13
examples/unique_users_for_area.py
@@ -4,11 +4,13 @@
4
5
import overpass
6
7
+# Change this to the name of the area you're interested in.
8
+# Keep it small to not abuse the Overpass server.
9
area_name = "Kanab"
10
-query = """area[name="{}"]->.slc;(node(area.slc);<;);""".format(area_name)
-
11
+query = """area[name="{}"]->.a;(node(area.a);<;);""".format(area_name)
12
users = {"ids": [], "usernames": []}
13
+message_urls = []
14
api = overpass.API(debug=False)
15
result = api.Get(
16
query,
@@ -22,4 +24,7 @@
22
24
continue
23
25
users["ids"].append(uid)
26
users["usernames"].append(username)
27
+ message_urls.append("https://www.openstreetmap.org/message/new/{}".format(
28
+ username))
29
print(users)
30
+print(message_urls)
0 commit comments