User:GeoMechain/Overpass

From OpenStreetMap Wiki
Jump to navigation Jump to search
try it yourself in overpass-turbo
[out:csv(::type,::id, name, opening_date,note; true; ",")];
area(3600008636)->.searchArea;
(
  nwr(area.searchArea)["highway"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["landuse"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["building"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["railway"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
);
 out center;
try it yourself in overpass-turbo
area(3601443391)->.searchArea;
(
  nwr(area.searchArea)["highway"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["landuse"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["building"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
  nwr(area.searchArea)["railway"="construction"][opening_date]
    (if:is_date(t["opening_date"]) && 
        date(t["opening_date"])<date("[[:Template:Date:0 days]]"));
);
(._;>;);
out meta;


try it yourself in overpass-turbo
area(3601443391)->.searchArea;
(
  nwr(area.searchArea)["highway"="construction"][!"opening_date"];
  nwr(area.searchArea)["landuse"="construction"][!"opening_date"];
  nwr(area.searchArea)["building"="construction"][!"opening_date"];
  nwr(area.searchArea)["railway"="construction"][!"opening_date"];
);
(._;>;);
out meta;


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