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
 
/*
 
Query for all bus stops and bus stations in map view
 
“highway=bus_stop or amenity=bus_station”
*/
[out:json][timeout:300];
// gather results
(
  // query part for: “highway=bus_stop”
  node["highway"="bus_stop"]({{bbox}});
  // query part for: “amenity=bus_station”
  node["amenity"="bus_station"]({{bbox}});
  way["amenity"="bus_station"]({{bbox}});
);
// print results
out body;
>;
out skel qt;
 
{{style:
 
node[highway=bus_stop]{
  symbol-size:2;
  width:1;
  color:green;
}
 
node[amenity=bus_station],way[amenity=bus_station]{
  text:name;
  symbol-size:4;
  color:red;
}
 
}}
1 km
Leaflet © OpenStreetMap contributors
1