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
x
 
[out:xml]/*fixed by auto repair*/[timeout:800];
area[name="Shamli"]["admin_level"="5"]->.searchArea;
// determine set of residential areas
(
  way[landuse=residential](area.searchArea);
)->.residential; // put them into the set "residential"
 
// determine set of places
(
  node[place=village](area.searchArea);
  node[place=hamlet](area.searchArea);
 
)->.place; // put them into the set "places"
  
// determine set of places near residential areas
(
  node.place(around.residential:400)(area.searchArea);
  way.place(around.residential:400)(area.searchArea);
  rel.place(around.residential:400)(area.searchArea);
)->.PlaceNearResidential; // put them into the set "PlaceNearResidential"
 
// take all places and dump those near residential areas
(.place; - .PlaceNearResidential;);
 
// return node, ways, relations as determined above
(._;>;); out meta;/*fixed by auto repair*/
5 km
Leaflet © OpenStreetMap contributors
1
 
no data loaded yet