|
| 1 | +/* History of a node */ |
| 2 | +timeline(node,7807736297); |
| 3 | +for (t["created"]) { |
| 4 | + retro (_.val) { |
| 5 | + node(7807736297); |
| 6 | + out meta; |
| 7 | + } |
| 8 | +} |
| 9 | + |
| 10 | +/* Timeline of a node */ |
| 11 | +timeline(node,7807736297); |
| 12 | +out meta; |
| 13 | + |
| 14 | +/* Metadata for a node */ |
| 15 | +node(441510760); |
| 16 | +out meta; |
| 17 | + |
| 18 | +/* List of nodes added or deleted during a time range */ |
| 19 | +[out:xml][timeout:200] |
| 20 | +[adiff:"2025-01-07T00:00:00Z","2025-01-10T00:00:00Z"]; |
| 21 | +nwr(47.41, -122.48, 47.79, -122.16); |
| 22 | +compare(delta:1); |
| 23 | +out ids; |
| 24 | + |
| 25 | +[out:xml][timeout:200] |
| 26 | +[diff:"2025-01-01T00:00:00Z","2025-01-31T00:00:00Z"]; |
| 27 | +nwr(47.41, -122.48, 47.79, -122.16)["amenity"="restaurant"]; |
| 28 | +compare(delta:1); |
| 29 | +out meta; |
| 30 | + |
| 31 | +/* Full query for a variety of amenities */ |
| 32 | +[out:xml][timeout:1000] |
| 33 | +[date:"2025-01-01T00:00:00Z"]; |
| 34 | +( |
| 35 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="bicycle"]; |
| 36 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="books"]; |
| 37 | + nwr(47.41, -122.48, 47.79, -122.16)["amenity"="cafe"]; |
| 38 | + nwr(47.41, -122.48, 47.79, -122.16)["amenity"="community_centre"]; |
| 39 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="convenience"]; |
| 40 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="general"]; |
| 41 | + nwr(47.41, -122.48, 47.79, -122.16)["amenity"="dentist"]; |
| 42 | + nwr(47.41, -122.48, 47.79, -122.16)["healthcare"="dentist"]; |
| 43 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="supermarket"]; |
| 44 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="charity"]; |
| 45 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="second_hand"]; |
| 46 | + nwr(47.41, -122.48, 47.79, -122.16)["leisure"="playground"]; |
| 47 | + nwr(47.41, -122.48, 47.79, -122.16)["leisure"="fitness_centre"]; |
| 48 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="bakery"]; |
| 49 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="hardware"]; |
| 50 | + nwr(47.41, -122.48, 47.79, -122.16)["shop"="doityourself"]; |
| 51 | +); |
| 52 | +out ids; |
| 53 | + |
| 54 | + |
0 commit comments