-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKING_QUERIES
37 lines (32 loc) · 940 Bytes
/
WORKING_QUERIES
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
// utilisé le serveur production de overpass
https://lz4.overpass-api.de/api/interpreter?data=[out:csv(::id,::lat,::lon,"name";false;"|")][timeout:25];(area[name="France"];)->.SA;(node["place"~"city|town"](area.SA););out;
// All the cities (and smallest town) for a specefic area like France, Vaucluse, Avignon
[out:json];
(area[name="France"];)->.SA;
(
node["place"~"city|town"](area.SA);
);
out;
// All french cities separated by "|"
[out:csv(
::id,::lat,::lon,"name";
false;
"|"
)];
(area[name="France"];)->.SA;
(
node["place"="city"](area.SA);
node["place"="town"](area.SA);
);
out;
// Get all the streets of a specefic area
[out:json];
(area[name="Avignon"];)->.SA; (
node["highway"="primary"](area.SA);
node["highway"="secondary"](area.SA);
node["highway"="tertiary"](area.SA);
node["highway"="residential"](area.SA);
node["highway"="unclassified"](area.SA);
way["highway"](area.SA);
);
out;