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;

@idname@countdenominationreligionstart_datenotewikidata@lat@lon
142020978S. Maffio Chiesa sconsacrata 45.458685812.3599463
142022351Chiesa di San Pietro Martire catholicchristian1417 Q358537745.455066912.3526017
142023249Basilica dei Santi Maria e Donato catholicchristian Q254535845.457495912.3571807
142023283Santa Maria degli Angeli Q358542345.458610312.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

  <?xml version="1.0" encoding="UTF-8"?>
  <osm version="0.6" generator="Overpass API 0.7.56.9 76e5016d">
  <note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
  <meta osm_base="2021-07-22T17:08:42Z" areas="2021-07-22T16:37:02Z"/>

    <way id="142020978">
      <center lat="45.4586858" lon="12.3599463"/>
      <nd ref="1554307392"/>
      <nd ref="1554307608"/>
      <nd ref="1554307609"/>
      <nd ref="1554307837"/>
      <nd ref="1554307756"/>
      <nd ref="1554307757"/>
      <nd ref="1554307610"/>
      <nd ref="1554307611"/>
      <nd ref="1554307317"/>
      <nd ref="1554307316"/>
      <nd ref="1554307395"/>
      <nd ref="1554307393"/>
      <nd ref="1554307392"/>
      <tag k="building" v="church"/>
      <tag k="name" v="S. Maffio"/>
      <tag k="note" v="Chiesa sconsacrata"/>
    </way>
    <way id="142022351">
      <center lat="45.4550669" lon="12.3526017"/>
      <nd ref="1554293872"/>
      <nd ref="1554294215"/>
      <nd ref="1554294327"/>
      <nd ref="1554294325"/>
      <nd ref="1554294329"/>
      <nd ref="1554294481"/>
      <nd ref="1554294589"/>
      <nd ref="1554294717"/>
      <nd ref="1554294719"/>
      <nd ref="1554294867"/>
      <nd ref="1554294868"/>
      <nd ref="1554294869"/>
      <nd ref="1554294871"/>
      <nd ref="1554294721"/>
      <nd ref="1554294724"/>
      <nd ref="1554294592"/>
      <nd ref="1554294595"/>
      <nd ref="1554294598"/>
      <nd ref="1554294606"/>
      <nd ref="1554294610"/>
      <nd ref="1554294608"/>
      <nd ref="1554294612"/>
      <nd ref="1554294216"/>
      <nd ref="1554293374"/>
      <nd ref="1554293371"/>
      <nd ref="1554293370"/>
      <nd ref="1554293372"/>
      <nd ref="1554293369"/>
      <nd ref="2917241760"/>
      <nd ref="1554293322"/>
      <nd ref="1554293323"/>
      <nd ref="1554293319"/>
      <nd ref="1554293321"/>
      <nd ref="1554293317"/>
      <nd ref="1554293646"/>
      <nd ref="1554293647"/>
      <nd ref="1554293705"/>
      <nd ref="1554293703"/>
      <nd ref="1554293876"/>
      <nd ref="1554293874"/>
      <nd ref="1554293872"/>
      <tag k="amenity" v="place_of_worship"/>
      <tag k="building" v="church"/>
      <tag k="denomination" v="catholic"/>
      <tag k="name" v="Chiesa di San Pietro Martire"/>
      <tag k="religion" v="christian"/>
      <tag k="start_date" v="1417"/>
      <tag k="tourism" v="attraction"/>
      <tag k="wikidata" v="Q3585377"/>
      <tag k="wikipedia" v="it:Chiesa di San Pietro Martire (Murano)"/>
    </way>
    <way id="142023249">
      <center lat="45.4574959" lon="12.3571807"/>
      <nd ref="1554301903"/>
      <nd ref="1554301904"/>
      <nd ref="1554301791"/>
      <nd ref="1554301790"/>
      <nd ref="1554301677"/>
      <nd ref="1554301680"/>
      <nd ref="1554301681"/>
      <nd ref="1554301682"/>
      <nd ref="1554301684"/>
      <nd ref="1554301620"/>
      <nd ref="1554301618"/>
      <nd ref="1554301619"/>
      <nd ref="1554301621"/>
      <nd ref="1554301623"/>
      <nd ref="1554301624"/>
      <nd ref="1554301628"/>
      <nd ref="1554301625"/>
      <nd ref="1554301622"/>
      <nd ref="1554301627"/>
      <nd ref="1554301566"/>
      <nd ref="1554301569"/>
      <nd ref="1554301565"/>
      <nd ref="1554301567"/>
      <nd ref="1554301564"/>
      <nd ref="1554301570"/>
      <nd ref="1554301571"/>
      <nd ref="1554301366"/>
      <nd ref="1554301360"/>
      <nd ref="1554301364"/>
      <nd ref="1554301377"/>
      <nd ref="1554301362"/>
      <nd ref="1554301379"/>
      <nd ref="1554301358"/>
      <nd ref="1554301359"/>
      <nd ref="1554301357"/>
      <nd ref="1554301260"/>
      <nd ref="1554301258"/>
      <nd ref="1554301259"/>
      <nd ref="1554301257"/>
      <nd ref="1554301263"/>
      <nd ref="1554301262"/>
      <nd ref="1554301254"/>
      <nd ref="1554301255"/>
      <nd ref="1554301256"/>
      <nd ref="1554301059"/>
      <nd ref="173909072"/>
      <nd ref="2975859377"/>
      <nd ref="1554301786"/>
      <nd ref="1554301787"/>
      <nd ref="2960007163"/>
      <nd ref="1554301844"/>
      <nd ref="1554301842"/>
      <nd ref="1554301845"/>
      <nd ref="1554301902"/>
      <nd ref="1554301903"/>
      <tag k="amenity" v="place_of_worship"/>
      <tag k="building" v="church"/>
      <tag k="denomination" v="catholic"/>
      <tag k="name" v="Basilica dei Santi Maria e Donato"/>
      <tag k="name:uk" v="Собор Санта-Марія е Донато"/>
      <tag k="religion" v="christian"/>
      <tag k="tourism" v="attraction"/>
      <tag k="wikidata" v="Q2545358"/>
      <tag k="wikipedia" v="it:Duomo di Murano"/>
    </way>
    <way id="142023283">
      <center lat="45.4586103" lon="12.3487446"/>
      <nd ref="1554307932"/>
      <nd ref="1554307933"/>
      <nd ref="1554307934"/>
      <nd ref="1554307937"/>
      <nd ref="1554307935"/>
      <nd ref="1554307938"/>
      <nd ref="1554307854"/>
      <nd ref="1554307855"/>
      <nd ref="1554307633"/>
      <nd ref="1554307631"/>
      <nd ref="1554307632"/>
      <nd ref="1554307634"/>
      <nd ref="1554307635"/>
      <nd ref="1554307636"/>
      <nd ref="1554307331"/>
      <nd ref="1554307332"/>
      <nd ref="1554307261"/>
      <nd ref="1554307264"/>
      <nd ref="1554306601"/>
      <nd ref="1554306602"/>
      <nd ref="1554306462"/>
      <nd ref="1554306464"/>
      <nd ref="1554305924"/>
      <nd ref="1554305927"/>
      <nd ref="1554305581"/>
      <nd ref="1554305585"/>
      <nd ref="1554305578"/>
      <nd ref="1554305565"/>
      <nd ref="1554305562"/>
      <nd ref="1554305568"/>
      <nd ref="1554305560"/>
      <nd ref="1554305558"/>
      <nd ref="1554305555"/>
      <nd ref="1554305552"/>
      <nd ref="1554305550"/>
      <nd ref="1554305539"/>
      <nd ref="1554305543"/>
      <nd ref="1554305536"/>
      <nd ref="1554305918"/>
      <nd ref="1554305917"/>
      <nd ref="1554306459"/>
      <nd ref="1554306456"/>
      <nd ref="1554306600"/>
      <nd ref="1554306589"/>
      <nd ref="1554307256"/>
      <nd ref="1554307259"/>
      <nd ref="1554307330"/>
      <nd ref="1554307328"/>
      <nd ref="1554307406"/>
      <nd ref="1554307405"/>
      <nd ref="1554307404"/>
      <nd ref="1554307624"/>
      <nd ref="1554307626"/>
      <nd ref="1554307625"/>
      <nd ref="1554307628"/>
      <nd ref="1554307627"/>
      <nd ref="1554307630"/>
      <nd ref="1554307852"/>
      <nd ref="1554307853"/>
      <nd ref="1554307932"/>
      <tag k="building" v="church"/>
      <tag k="name" v="Santa Maria degli Angeli"/>
      <tag k="wikidata" v="Q3585423"/>
      <tag k="wikipedia" v="it:Chiesa di Santa Maria degli Angeli (Murano)"/>
    </way>
    <count id="0">
      <tag k="nodes" v="0"/>
      <tag k="ways" v="4"/>
      <tag k="relations" v="0"/>
      <tag k="areas" v="0"/>
      <tag k="total" v="4"/>
    </count>

  </osm>


Back to Open Street Map cookbook page