User:Bgirardot/Overpass-turbo examples

From OpenStreetMap Wiki
Jump to: navigation, search
[out:json][timeout:25];
(
  // query part for: “barrier=border_control”
  node(poly:"33.20 25.10 38.48 32.43 48.05 7.57 52.23 14.90")[barrier=border_control];
);
// print results
out body;
>;
out skel qt;



[out:csv(name,::lat,::lon,::timestamp,health_facility_type,admin_staff,health_staff,source;true;"\t")];
(
  node["amenity"="social_facility"]({{bbox}});
  way["amenity"="social_facility"]({{bbox}});
  relation["amenity"="social_facility"]({{bbox}});
);
out center meta;

[out:csv(name,::lat,::lon,::timestamp;true;"\t")];

[out:csv(name,::lat,::lon,::timestamp,health_facility_type,admin_staff,health_staff,source;true;"\t")];
{{geocodeArea:burundi}}->.searchArea;
// gather results
(
  // query part for: “amenity=hospital”
  node["amenity"="hospital"](area.searchArea);
  way["amenity"="hospital"](area.searchArea);
  relation["amenity"="hospital"](area.searchArea);
);
out center meta;
[out:csv(::user,::timestamp;true;"\t")];
{{geocodeArea:sofala}}->.searchArea;
(
  way(user:"bgirardot")["building"](changed:"2016-02-20T00:00:00Z","2016-02-20T23:59:59Z")(area.searchArea);
);
out center meta;