User:GeoMechain/Overpass

From OpenStreetMap Wiki
Jump to navigation Jump to search
try it yourself in overpass-turbo
[out:json][bbox:{{bbox}}][timeout:800];

(
  nwr["heritage:operator"="mhs"];
)->.monuments;
 
(
  way["building"];
)->.buildings;
  
(
  way.buildings(around.monuments:500);
);

out geom meta;
try it yourself in overpass-turbo
[out:json][timeout:180];
(
{{geocodeArea:Myanmar}};
)->.searchArea;
(
  relation["admin_level"=4](area.searchArea);
);
out center;

France

Communes sans mairies

try it yourself in overpass-turbo
area[admin_level=6]["name"="Haute-Garonne"]["boundary"="administrative"]->.boundaryarea;
( nwr(area.boundaryarea)["amenity"="townhall"];
  >;
) ->.a;

.a is_in -> .b; 
area.b["admin_level"=8] -> .bf; 

rel(area.boundaryarea)["admin_level"=8];
map_to_area -> .bllf;

(.bllf; - .bf; );
rel(pivot);
(._;>;);
out;

Équipements Enedis avec une orthographe différente de "operator=Enedis"

try it yourself in overpass-turbo
(
{{geocodeArea:Occitanie}};
)->.searchArea;
(
 ( node["operator"~"Enedis",i](area.searchArea); -  node["operator"="Enedis"](area.searchArea); );
 ( way["operator"~"Enedis",i](area.searchArea); -  way["operator"="Enedis"](area.searchArea); );
);
(._;>;);
out;

See also