The Castles (Q31097027)

  • matcher place: East Lothian (relation 1920902)
  • view on Wikidata
  • Overpass query: show queryOverpass Turbo
    [timeout:300][out:json];
    (
        node(around:1000,55.86913,-2.74990)[building][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[building][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[building][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[military][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[military][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[military][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["artwork:type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["artwork:type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["artwork:type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["artwork_type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["artwork_type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["artwork_type"="sculpture"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["artwork_type"="statue"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["artwork_type"="statue"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["artwork_type"="statue"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[embankment=yes][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[embankment=yes][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[embankment=yes][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["fortification_type"="hill_fort"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["fortification_type"="hill_fort"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["fortification_type"="hill_fort"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["historic"="archaeological_site"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["historic"="archaeological_site"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["historic"="archaeological_site"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[historic=heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[historic=heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[historic=heritage][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[historic=monument][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[historic=monument][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[historic=monument][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[memorial=statue][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[memorial=statue][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[memorial=statue][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["protect_class"="22"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["protect_class"="22"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["protect_class"="22"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)["site_type"="fortification"][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)["site_type"="fortification"][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)["site_type"="fortification"][~"^(addr:housenumber|.*name.*)$"~".",i];
        node(around:1000,55.86913,-2.74990)[tourism=artwork][~"^(addr:housenumber|.*name.*)$"~".",i];
        way(around:1000,55.86913,-2.74990)[tourism=artwork][~"^(addr:housenumber|.*name.*)$"~".",i];
        rel(around:1000,55.86913,-2.74990)[tourism=artwork][~"^(addr:housenumber|.*name.*)$"~".",i];
    );
    out center tags;
Wikidata location: 55.8691, -2.7499 view on OSM or edit on OSM

matches

login to upload wikidata tags

found a single match candidate

node: The Castles (OSM), 38 metres from Wikidata [show tags]
name: The Castles
historic: archaeological_site
wikidata: Q31097027

wikidata match: Q31097027

Search criteria from Wikidata

view with query.wikidata.org

military facility (Q18691599) military
building (Q41176) building=yes, building
hillfort (Q744099) fortification_type=hill_fort