Last active
February 29, 2016 16:22
-
-
Save julienfastre/c538a3983c6f8e133906 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[out:json][timeout:50]; | |
// fetch area “Belgium” to search in | |
{{geocodeArea:"Région Bruxelles Capitale"}}->.searchArea; | |
// gather results | |
( | |
// query part for: “drinking water” | |
node["amenity"="drinking_water"](area.searchArea); | |
way["amenity"="drinking_water"](area.searchArea); | |
)->.d; | |
// filter since 10 UTC | |
( | |
node.d(changed:"2016-02-27T00:00:00Z"); | |
way.d(changed:"2016-02-27T00:00:00Z"); | |
) ->.drinking; | |
( | |
// query part for: “social facility” | |
node["amenity"="social_facility"](area.searchArea); | |
way["amenity"="social_facility"](area.searchArea); | |
)->.s; | |
// filter modified since 10 UTC | |
( | |
node.s(changed:"2016-02-27T00:00:00Z"); | |
way.s(changed:"2016-02-27T00:00:00Z"); | |
)->.social; | |
( | |
// query part for: “amenity = reuse” | |
node["amenity"="reuse"](area.searchArea); | |
way["amenity"="reuse"](area.searchArea); | |
)->.r; | |
// filter modified since 10 UTC | |
( | |
node.r(changed:"2016-02-27T00:00:00Z"); | |
way.r(changed:"2016-02-27T00:00:00Z"); | |
)->.reuse; | |
( | |
// query part for second hand shops | |
node["second_hand"~"yes|only"](area.searchArea); | |
way["second_hand"~"yes|only"](area.searchArea); | |
)->.m; | |
( | |
node.m(changed:"2016-02-27T00:00:00Z"); | |
way.m(changed:"2016-02-27T00:00:00Z"); | |
)->.shops; | |
( node.social; way.social; node.drinking; way.drinking; node.reuse; way.reuse; way.shops; node.shops;); | |
// print results | |
out body; | |
>; | |
out skel qt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment