-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueryFullMap.txt
158 lines (123 loc) · 3.45 KB
/
queryFullMap.txt
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
// Tuto pareil que nous
https://mapsaregreat.com/geographic-data-mining-and-visualisation-for-beginners/overpass-turbo-tutorial.html
// BBOX
http://lxbarth.com/bbox/#4.7725296,43.929643,4.8454857,43.963014,13,43.944106310104196,4.808921813964836
/*
* Récupération des couleurs d'arrière plan
*/
https://wiki.openstreetmap.org/wiki/FR:Key:landuse
https://wiki.openstreetmap.org/wiki/Proposed_features/landcover
landcover water
landcover trees
landuse residential (résidentielle)
landuse industrial (industrielle)
landuse commercial (bureaux)
landuse retail (magasin)
landuse railway (chemin férovière)
landuse cemetery (cimetière)
landuse forest (forêt)
[out:json];
(area[name="Avignon"];)->.SA;
(
node["landuse"~"residential|industrial|commercial|retail|railway|cemetery"](area.SA);
way["landuse"~"residential|industrial|commercial|retail|railway|cemetery"](area.SA);
relation["landuse"](area.SA);
);
out body;
>;
out skel qt;
/*
* Parking / ect ...
*/
amenity parking
amenity school
leisure sports_centre (centre sportif)
leisure park
leisure golf_course
/*
* Batiment
*/
building apartments
building bungalow (Bungalow, pavillon. Petit bâtiment isolé de plain pied.)
building detached
building dormitory
building hotel
building house
building residential
building commercial
building industrial
building office
building retail
building supermarket
building warehouse
building hospital
building civic
building government
building public
building school
building train_station
building university
building stadium
building parking
/*
* Natural
*/
natural water
/*
* Routes
*/
highway primary
highway secondary
highway trunk
highway residential
highway living_street
highway pedestrian
highway service
highway motorway
/*
* Requête générale de loin
*/
[out:json];
(
way["landuse"="residential"](48.8,2.3,48.9,2.4);
way["landuse"="industrial"](48.8,2.3,48.9,2.4);
way["landuse"="commercial"](48.8,2.3,48.9,2.4);
way["landuse"="retail"](48.8,2.3,48.9,2.4);
way["landuse"="railway"](48.8,2.3,48.9,2.4);
way["landuse"="cemetery"](48.8,2.3,48.9,2.4);
way["landuse"="forest"](48.8,2.3,48.9,2.4);
way["landuse"="grass"](48.8,2.3,48.9,2.4);
relation["landuse"](48.8,2.3,48.9,2.4);
way["amenity"="school"](48.8,2.3,48.9,2.4);
relation["amenity"](48.8,2.3,48.9,2.4);
way["leisure"="sports_centre"](48.8,2.3,48.9,2.4);
way["leisure"="park"](48.8,2.3,48.9,2.4);
way["leisure"="golf_course"](48.8,2.3,48.9,2.4);
relation["leisure"](48.8,2.3,48.9,2.4);
natural water
way["highway"="primary"](48.8,2.3,48.9,2.4);
way["highway"="secondary"](48.8,2.3,48.9,2.4);
way["highway"="trunk"](48.8,2.3,48.9,2.4);
way["highway"="residential"](48.8,2.3,48.9,2.4);
way["highway"="living_street"](48.8,2.3,48.9,2.4);
way["highway"="pedestrian"](48.8,2.3,48.9,2.4);
way["highway"="motorway"](48.8,2.3,48.9,2.4);
way["highway"="unclassified"](48.8,2.3,48.9,2.4);
relation["highway"](48.8,2.3,48.9,2.4);
way["waterway"="riverbank"](48.8,2.3,48.9,2.4);
relation["waterway"](48.8,2.3,48.9,2.4);
way["building"="yes"](48.8,2.3,48.9,2.4);
relation["building"](48.8,2.3,48.9,2.4);
);
out body;
>;
out skel qt;
/*
* Calcule de la BBox
*/
// lat, lon
avignon = (43,9492493, 4,8059012)
left_lat = lat - 0.5
left_lon = lon - 0.5
right_lat = lat + 0.5
right_lon = lon + 0.5