-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathosmRequests.py
More file actions
101 lines (75 loc) · 1.61 KB
/
Copy pathosmRequests.py
File metadata and controls
101 lines (75 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
q1 = """
relation[network="Verkehrsverbund Berlin-Brandenburg"]
[operator = "regiobus Potsdam Mittelmark GmbH"]
[public_transport=stop_area]({{bbox}});
out center;"""
q2 = """
area[name="Brandenburg an der Havel"]->.searchArea;
nwr[public_transport=station](area.searchArea);
out center;
nwr._->.res;
nwr[amenity=bar](around.res:1000);
out center;"""
q3_working = """
area[name="Berlin"]->.searchArea;
nwr[public_transport=station](area.searchArea);
nwr._->.res; // needs to be on two lines
out center;
nwr[amenity=bar](around.res:100);
out center;
{{style:
node {
color:black;
fill-color:red;
}
node[public_transport=station] {
color:green;
fill-color:none;
fill-opacity:20%
}
}}
"""
q4 = """
area[name="Brandenburg"]->.searchArea;
nwr[public_transport=station](area.searchArea);
nwr._->.res; // needs to be on two lines
out center;
nwr[amenity=bar](around.res:100);
out center;
relation[boundary=administrative][admin_level=4]({{bbox}}); // how to make dis work
out center;
{{style:
node[amenity=bar] {
color:black;
fill-color:red;
text:name;
}
node[public_transport=station] {
color:green;
fill-color:none;
fill-opacity:20%
}
}}
"""
q5 = """
area[name="Berlin"]->.searchArea;
//nwr[public_transport=station](area.searchArea);
nwr(id:3870914569);
nwr._->.res; // needs to be on two lines
out center;
nwr[amenity=bar](around.res:1000);
out center;
out center;
{{style:
node[amenity=bar] {
color:black;
fill-color:red;
/*text:name;*/
}
node[public_transport=station] {
color:green;
fill-color:none;
fill-opacity:20%
}
}}
"""