Open Street Map snippets
How to get a list of churches of an island
You can visit the wiki page on Open Street Map about the tag building=church
.
CSV output
You just have to execute the following query to get a full list in CSV.
Try this snippet on Overpass Turbo
[out:csv( ::id,"name",::count,"denomination","religion","start_date","note","wikidata",::lat,::lon;
true; "|"
)][timeout:20];
area["place"="island"]["name"="Murano"]->.boundaryarea;
(
node(area.boundaryarea)["building"="church"];
way(area.boundaryarea)["building"="church"];
relation(area.boundaryarea)["building"="church"];
);
out center;
out count;
@id | name | @count | denomination | religion | start_date | note | wikidata | @lat | @lon |
---|---|---|---|---|---|---|---|---|---|
142020978 | S. Maffio | Chiesa sconsacrata | 45.4586858 | 12.3599463 | |||||
142022351 | Chiesa di San Pietro Martire | catholic | christian | 1417 | Q3585377 | 45.4550669 | 12.3526017 | ||
142023249 | Basilica dei Santi Maria e Donato | catholic | christian | Q2545358 | 45.4574959 | 12.3571807 | |||
142023283 | Santa Maria degli Angeli | Q3585423 | 45.4586103 | 12.3487446 | |||||
0 | 4 |
JSON output
You just have to execute the following query to get a full list in JSON.
Try this snippet on Overpass Turbo
[out:json][timeout:20];
area["place"="island"]["name"="Murano"]->.boundaryarea;
(
node(area.boundaryarea)["building"="church"];
way(area.boundaryarea)["building"="church"];
relation(area.boundaryarea)["building"="church"];
);
out center;
out count;
This will output the following
{
"version": 0.6,
"generator": "Overpass API 0.7.56.9 76e5016d",
"osm3s": {
"timestamp_osm_base": "2021-07-22T17:06:37Z",
"timestamp_areas_base": "2021-07-22T16:37:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [
{
"type": "way",
"id": 142020978,
"center": {
"lat": 45.4586858,
"lon": 12.3599463
},
"nodes": [
1554307392,
1554307608,
1554307609,
1554307837,
1554307756,
1554307757,
1554307610,
1554307611,
1554307317,
1554307316,
1554307395,
1554307393,
1554307392
],
"tags": {
"building": "church",
"name": "S. Maffio",
"note": "Chiesa sconsacrata"
}
},
{
"type": "way",
"id": 142022351,
"center": {
"lat": 45.4550669,
"lon": 12.3526017
},
"nodes": [
1554293872,
1554294215,
1554294327,
1554294325,
1554294329,
1554294481,
1554294589,
1554294717,
1554294719,
1554294867,
1554294868,
1554294869,
1554294871,
1554294721,
1554294724,
1554294592,
1554294595,
1554294598,
1554294606,
1554294610,
1554294608,
1554294612,
1554294216,
1554293374,
1554293371,
1554293370,
1554293372,
1554293369,
2917241760,
1554293322,
1554293323,
1554293319,
1554293321,
1554293317,
1554293646,
1554293647,
1554293705,
1554293703,
1554293876,
1554293874,
1554293872
],
"tags": {
"amenity": "place_of_worship",
"building": "church",
"denomination": "catholic",
"name": "Chiesa di San Pietro Martire",
"religion": "christian",
"start_date": "1417",
"tourism": "attraction",
"wikidata": "Q3585377",
"wikipedia": "it:Chiesa di San Pietro Martire (Murano)"
}
},
{
"type": "way",
"id": 142023249,
"center": {
"lat": 45.4574959,
"lon": 12.3571807
},
"nodes": [
1554301903,
1554301904,
1554301791,
1554301790,
1554301677,
1554301680,
1554301681,
1554301682,
1554301684,
1554301620,
1554301618,
1554301619,
1554301621,
1554301623,
1554301624,
1554301628,
1554301625,
1554301622,
1554301627,
1554301566,
1554301569,
1554301565,
1554301567,
1554301564,
1554301570,
1554301571,
1554301366,
1554301360,
1554301364,
1554301377,
1554301362,
1554301379,
1554301358,
1554301359,
1554301357,
1554301260,
1554301258,
1554301259,
1554301257,
1554301263,
1554301262,
1554301254,
1554301255,
1554301256,
1554301059,
173909072,
2975859377,
1554301786,
1554301787,
2960007163,
1554301844,
1554301842,
1554301845,
1554301902,
1554301903
],
"tags": {
"amenity": "place_of_worship",
"building": "church",
"denomination": "catholic",
"name": "Basilica dei Santi Maria e Donato",
"name:uk": "Собор Санта-Марія е Донато",
"religion": "christian",
"tourism": "attraction",
"wikidata": "Q2545358",
"wikipedia": "it:Duomo di Murano"
}
},
{
"type": "way",
"id": 142023283,
"center": {
"lat": 45.4586103,
"lon": 12.3487446
},
"nodes": [
1554307932,
1554307933,
1554307934,
1554307937,
1554307935,
1554307938,
1554307854,
1554307855,
1554307633,
1554307631,
1554307632,
1554307634,
1554307635,
1554307636,
1554307331,
1554307332,
1554307261,
1554307264,
1554306601,
1554306602,
1554306462,
1554306464,
1554305924,
1554305927,
1554305581,
1554305585,
1554305578,
1554305565,
1554305562,
1554305568,
1554305560,
1554305558,
1554305555,
1554305552,
1554305550,
1554305539,
1554305543,
1554305536,
1554305918,
1554305917,
1554306459,
1554306456,
1554306600,
1554306589,
1554307256,
1554307259,
1554307330,
1554307328,
1554307406,
1554307405,
1554307404,
1554307624,
1554307626,
1554307625,
1554307628,
1554307627,
1554307630,
1554307852,
1554307853,
1554307932
],
"tags": {
"building": "church",
"name": "Santa Maria degli Angeli",
"wikidata": "Q3585423",
"wikipedia": "it:Chiesa di Santa Maria degli Angeli (Murano)"
}
},
{
"type": "count",
"id": 0,
"tags": {
"nodes": "0",
"ways": "4",
"relations": "0",
"areas": "0",
"total": "4"
}
}
]
}
XML output
You just have to execute the following query to get a full list in XML.
Try this snippet on Overpass Turbo
[timeout:20];
area["place"="island"]["name"="Murano"]->.boundaryarea;
(
node(area.boundaryarea)["building"="church"];
way(area.boundaryarea)["building"="church"];
relation(area.boundaryarea)["building"="church"];
);
out center;
out count;
This will output the following
The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.