{"id":59,"date":"2020-12-21T12:34:55","date_gmt":"2020-12-21T12:34:55","guid":{"rendered":"https:\/\/mapio.cymru\/?p=59"},"modified":"2020-12-21T16:14:35","modified_gmt":"2020-12-21T16:14:35","slug":"overpass","status":"publish","type":"post","link":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/","title":{"rendered":"Fun with Wales&#8217; map data: a tutorial using Overpass queries and OpenStreetmap"},"content":{"rendered":"<p><em>Map: places in Wales that have &#8216;llan&#8217; in their names<\/em><\/p>\n<p>Would you like to get castles, rivers, post boxes, or cycleways in Wales from a map?<\/p>\n<p>How about investigating place names in Welsh in your local area?<\/p>\n<p>How about getting other features in Wales and further afield, as open data from a map?<\/p>\n<p>This blog post will show you how to get open data from OpenStreetMap, with a particular emphasis on Welsh-language data.<\/p>\n<p>It is intended as a fun introduction, not as a comprehensive reference guide. No previous experience is necessary.<\/p>\n<p>We will be passing queries to the Overpass API, and it&#8217;s easy to get started. The queries can be run from your web browser in <a href=\"https:\/\/overpass-turbo.eu\/\">Overpass Turbo<\/a>, which is one seriously cool app. Other than that your curiosity is the only prerequisite!<\/p>\n<h2>Introductory concepts<\/h2>\n<p>Feel free to skip this section if you want to head to the practical bit straightaway.<\/p>\n<p>OpenStreetMap is a global map which has been built by thousands of people. It uses a wiki-like approach to mapping &#8211; anybody can edit and re-use the content. Because it&#8217;s all open data, you can use it however you want in your own learning, work, and leisure.<\/p>\n<p>There is a huge amount of Welsh-language data in OpenStreetMap.<\/p>\n<p>It&#8217;s independent of proprietary mapping providers, allowing you freedom to work with the data in your own projects.<\/p>\n<p>The underlying code is also freedom-respecting software and open source. As the Mapio Cymru project we have built a <a href=\"https:\/\/openstreetmap.cymru\/\">showcase map<\/a> which shows Welsh-language names for features including places, roads, rivers, and so on.<\/p>\n<h2>How to run an Overpass query<\/h2>\n<p>The quickest way to try Overpass queries is to visit the <a href=\"https:\/\/overpass-turbo.eu\">Overpass Turbo website<\/a>.<\/p>\n<p>The screen will be divided into an editor panel and a map\/data viewer panel. Now do this:<\/p>\n<ol>\n<li>Write (or paste!) a query into the editor.<\/li>\n<li>Click the Run button.<\/li>\n<li>The results are shown in the data viewer.<\/li>\n<li>Within the data viewer you can select Map tab or the Data tab.<\/li>\n<\/ol>\n<p>You&#8217;ll be following these same steps every time you run a query.<\/p>\n<h2>Towns query<\/h2>\n<p>Here is a simple query you can use. First drag the map and zoom until it shows an area you want to investigate, e.g. a part of Wales. Then follow the above steps using this query.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-linenumbers=\"false\">node[\"place\"=\"town\"]({{bbox}});\r\nout;<\/pre>\n<p>Bingo, you should now see towns plotted on the map area you&#8217;ve selected. Congratulations on accomplishing your first Overpass query!<\/p>\n<h2>The data<\/h2>\n<p>Select the Data tab in the data viewer to see the data. It will be in the default format, which is XML.<\/p>\n<p>Here&#8217;s a portion of the XML data you&#8217;ll see for the results of the above query, for two towns:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;node id=\"8997358\" lat=\"51.5912466\" lon=\"-2.7517629\"&gt;\r\n  &lt;tag k=\"name\" v=\"Caldicot\"\/&gt;\r\n  &lt;tag k=\"name:cy\" v=\"Cil-y-coed\"\/&gt;\r\n  &lt;tag k=\"place\" v=\"town\"\/&gt;\r\n  &lt;tag k=\"population\" v=\"11200\"\/&gt;\r\n  &lt;tag k=\"postal_code\" v=\"NP26 4\"\/&gt;\r\n  &lt;tag k=\"wikidata\" v=\"Q722585\"\/&gt;\r\n  &lt;tag k=\"wikipedia\" v=\"en:Caldicot, Monmouthshire\"\/&gt;\r\n&lt;\/node&gt;\r\n\r\n&lt;node id=\"21413062\" lat=\"51.8591257\" lon=\"-4.3115907\"&gt;\r\n  &lt;tag k=\"is_in\" v=\"Wales\"\/&gt;\r\n  &lt;tag k=\"name\" v=\"Carmarthen\"\/&gt;\r\n  &lt;tag k=\"name:br\" v=\"Caerfyrddin\"\/&gt;\r\n  &lt;tag k=\"name:cy\" v=\"Caerfyrddin\"\/&gt;\r\n  &lt;tag k=\"name:en\" v=\"Carmarthen\"\/&gt;\r\n  &lt;tag k=\"name:ja\" v=\"\u30ab\u30fc\u30de\u30fc\u30bc\u30f3\"\/&gt;\r\n  &lt;tag k=\"name:la\" v=\"Moridunum\"\/&gt;\r\n  &lt;tag k=\"name:ru\" v=\"\u041a\u0430\u0440\u043c\u0430\u0440\u0442\u0435\u043d\"\/&gt;\r\n  &lt;tag k=\"place\" v=\"town\"\/&gt;\r\n  &lt;tag k=\"population\" v=\"14185\"\/&gt;\r\n  &lt;tag k=\"population:date\" v=\"2011\"\/&gt;\r\n  &lt;tag k=\"source\" v=\"NPE\"\/&gt;\r\n  &lt;tag k=\"source:population\" v=\"Census\"\/&gt;\r\n  &lt;tag k=\"wikidata\" v=\"Q835835\"\/&gt;\r\n&lt;\/node&gt;\r\n<\/pre>\n<p>As you can see, the name:cy tag has the town&#8217;s name in Welsh. There are equivalent tags for other languages. There&#8217;s also a tag called name without a language code, <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Key:name\">here&#8217;s the definition of the name key<\/a>.<\/p>\n<p>In general name:cy will provide the name in Welsh for anything on the map &#8211; if it&#8217;s been submitted.<\/p>\n<p>The other data in the examples above should be fairly self-explanatory, and include latitude and longitude, Wikidata item identifier, and other things.<\/p>\n<p>Note that OpenStreetMap is always a work in progress. You&#8217;ll see pretty good data for many queries although some others will display gaps. (You can edit\/add place names on the map, and other features and their tags.)<\/p>\n<h2>Change your Overpass Turbo map to Mapio Cymru<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-69 size-full\" src=\"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/overpass-newid-map.png\" alt=\"\" width=\"846\" height=\"648\" srcset=\"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/overpass-newid-map.png 846w, https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/overpass-newid-map-300x230.png 300w, https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/overpass-newid-map-768x588.png 768w\" sizes=\"auto, (max-width: 846px) 100vw, 846px\" \/><\/p>\n<p>Within Overpass Turbo your underlying map will probably be the main OpenStreetMap. This is OK but it won&#8217;t always display all names in Welsh.<\/p>\n<p>You can change it to the Mapio Cymru map server, like this:<\/p>\n<ol>\n<li>Select Settings menu<\/li>\n<li>Select Map<\/li>\n<li>In the Tile-Server box put: <strong>\/\/openstreetmap.cymru\/osm_tiles\/{z}\/{x}\/{y}.png<\/strong><\/li>\n<\/ol>\n<p>Please note that when you click on map pins any links will still go to the main OpenStreetMap.<\/p>\n<h2>Farms, cities, and other places<\/h2>\n<p>You can take the query above and modify it:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">node[\"place\"=\"farm\"]({{bbox}});\r\nout;<\/pre>\n<p>Spot the difference between this query and the one above. Alternatively use one of the possible <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Key:place\">key values for place<\/a>. For example you can use &#8220;village&#8221;, &#8220;city&#8221;, &#8220;island&#8221; and so on.<\/p>\n<h2>Your bounding box<\/h2>\n<p>In general:<\/p>\n<ul>\n<li>If your query refers to a bbox (bounding box) the query will run on the visible map, the portion of the map you&#8217;ve selected.<\/li>\n<li>You can also reduce the width of the map: drag its edge to reduce its size, and increase the size of the editor.<\/li>\n<li>If your query has a lot of results, there may be too much data to plot on the Overpass Turbo map in your browser. Try zooming in to reduce the size of the bounding box.<\/li>\n<\/ul>\n<h2>Towns in Wales only<\/h2>\n<p>No matter how much you move the bounding box it&#8217;s not possible to get all of Wales, and Wales only. Our query needs to change.<\/p>\n<p>This time, click the Wizard button and type &#8216;towns in Wales&#8217; then click Build Query. When I ran it it suggested &#8216;town in Wales&#8217; then gave the following query, and yours will be similar or the same.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/*\r\nThis has been generated by the overpass-turbo wizard.\r\nThe original search was:\r\n\u201ctown in wales\u201d\r\n*\/\r\n[out:json][timeout:25];\r\n\/\/ fetch area \u201cwales\u201d to search in\r\n{{geocodeArea:wales}}-&gt;.searchArea;\r\n\/\/ gather results\r\n(\r\n  \/\/ query part for: \u201ctown\u201d\r\n  node[\"place\"=\"town\"](area.searchArea);\r\n  way[\"place\"=\"town\"](area.searchArea);\r\n  relation[\"place\"=\"town\"](area.searchArea);\r\n);\r\n\/\/ print results\r\nout body;\r\n&gt;;\r\nout skel qt;<\/pre>\n<p>Where possible the Wizard will take the English you type and give a query in Overpass query language. As far as I know the Wizard is only available in English at the moment.<\/p>\n<p>searchArea above is a variable containing our geocode area for Wales. It is set for the life of the query. We don&#8217;t have to call it searchArea, we can call it almost anything &#8211; as long as there&#8217;s no clash with other reserved terms.<\/p>\n<p>The above query contains comments which have no effect on the query. There are two styles:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\/* comment within slash star delimiters *\/\r\n\r\n\/\/ comment between double slash and end of line<\/pre>\n<h2>Llan place names<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-68\" src=\"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg\" alt=\"\" width=\"1920\" height=\"1080\" \/><\/p>\n<p>As well as Llanelwy this will return Rhosllannerchrugog in the results &#8211; and so on. It&#8217;s a case-insensitive search.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:50];\r\n(\r\n  node[\"name\"~\"Llan\",i][place]({{bbox}});\r\n);\r\nout center;<\/pre>\n<p>This is a narrower search for Llan with a capital L.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:50];\r\n(\r\n  node[\"name\"~\"Llan\"][place]({{bbox}});\r\n);\r\nout center;<\/pre>\n<p>Here&#8217;s a search that includes the tags <em>name<\/em> a <em>name:cy<\/em> for a comprehensive map which includes places which currently lack a <em>name:cy<\/em> tag and names like Llanandras (Presteigne) and Llanllieni (Leominster) (diolch\/thanks for your <a href=\"https:\/\/twitter.com\/carlmorris\/status\/1341050742623383552\">replies<\/a> via Twitter!).<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">(\r\nnode({{bbox}})[\"name:cy\"~\"Llan\"][place];\r\nnode({{bbox}})[\"name\"~\"Llan\"][place];\r\n);\r\nout;<\/pre>\n<p>This will give all places in Wales with Llan in the name. It gives data only &#8211; in Overpass Turbo the map tab will be blank. You can use the CSV results data in a project, e.g. in a spreadsheet.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:csv(\"name:cy\", \"name\", ::lat, ::lon, \"place\", ::id; true; \",\")][timeout:50];\r\n{{geocodeArea:wales}}-&gt;.searchArea;\r\n(\r\nnode[\"name\"~\"Llan\"][place](area.searchArea);\r\nnode[\"name:cy\"~\"Llan\"][place](area.searchArea);\r\n);\r\nout;<\/pre>\n<p>You could modify one of the above for &#8216;Aber&#8217;, &#8216;Caer&#8217;, &#8216;Tre&#8217; and so on.<\/p>\n<h2>Castles in any area<\/h2>\n<p>Now try this query.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:25];\r\n\/\/ gather results\r\n(\r\n  \/\/ query part for: \u201ccastle\u201d\r\n  node[\"historic\"=\"castle\"]({{bbox}});\r\n  way[\"historic\"=\"castle\"]({{bbox}});\r\n  relation[\"historic\"=\"castle\"]({{bbox}});\r\n);\r\n\/\/ print results\r\nout body;\r\n&gt;;\r\nout skel qt;<\/pre>\n<p>This is OK but how about all the castles in Wales only? Use this:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:25];\r\n{{geocodeArea:wales}}-&gt;.searchArea;\r\n\/\/ gather results\r\n(\r\n  \/\/ query part for: \u201ccastle\u201d\r\n  node[\"historic\"=\"castle\"](area.searchArea);\r\n  way[\"historic\"=\"castle\"](area.searchArea);\r\n  relation[\"historic\"=\"castle\"](area.searchArea);\r\n);\r\n\/\/ print results\r\nout body;\r\n&gt;;\r\nout skel qt;<\/pre>\n<p>Here are some others to try. In each case you should edit the three statements above to cover all nodes, ways and relations in the search. Let&#8217;s look up the definitions of those in a jiffy&#8230;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">\"natural\"=\"peak\"\r\n\r\n\"site_type\"=\"megalith\"\r\n\r\n\"historic:civilization\"=\"ancient_roman\"\r\n\r\n\"amenity\"=\"bicycle parking\"\r\n\r\n\"amenity\"=\"recycling\"\r\n\r\n\"amenity\"=\"bus station\"<\/pre>\n<p>The last one will identify, among others, the National Express coach station in Cardiff &#8211; currently the only bus station in the city.<\/p>\n<h2>Elements of OpenStreetMap<\/h2>\n<p>There are millions of possible Overpass queries.<\/p>\n<p>You can play around with basic queries without having a comprehensive understanding of OpenStreetMap. The wizard may help.<\/p>\n<p>Sooner or later though you might want more context to help you write that special query for your own interest. This portion from the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Elements\">documentation on elements<\/a> has some vital definitions will help:<\/p>\n<p>Elements are the basic components of OpenStreetMap&#8217;s conceptual data model of the physical world. They consist of<\/p>\n<ul>\n<li>nodes (defining points in space),<\/li>\n<li>ways (defining linear features and area boundaries), and<\/li>\n<li>relations (which are sometimes used to explain how other elements work together).<\/li>\n<\/ul>\n<p>All of the above can have one or more associated tags (which describe the meaning of a particular element).<\/p>\n<p>If you want to see some examples of nodes, use this query.<\/p>\n<p>In Overpass Turbo this will only work for small bounding boxes, because the amounts of data are relatively large.<\/p>\n<h2>Show the Wales Coastal Path<\/h2>\n<p>This is a simple query that only shows one relation &#8211; the northern part of the Wales Coastal Path.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">relation(1850847);&gt;;out;<\/pre>\n<p>This shows the entire Wales Coastal Path. (Because this is stored as a relation of relations, the query uses a &#8216;recurse down relations&#8217; operator &gt;&gt; to display the relations, ways, and nodes within the overall relation. Here&#8217;s more info on the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_API\/Overpass_QL#Recurse_down_relations_.28.3E.3E.29\">recurse down relations operator<\/a>.)<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:25];\r\nrel(1820890);\r\n(._;&gt;&gt;;);\r\nout;<\/pre>\n<h2>Hiking routes<\/h2>\n<p>Taken from the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_API\/Overpass_API_by_Example#Hiking_routes\">Overpass API examples<\/a>. You probably need to zoom into a bounding box.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[bbox:{{bbox}}];\r\n(\r\n  relation[route=hiking][network~\"^.wn$\"];\r\n  way(r);\r\n  &gt;;\r\n);\r\nout;\r\n\r\n{{style:\r\nway\r\n{ color:green; fill-color:green; }\r\n\r\nrelation[network=lwn] way\r\n{ color:blue; fill-color:cyan; }\r\n\r\nrelation[network=iwn] way\r\n{ color:red; fill-color:red; }\r\n\r\nrelation[network=nwn] way\r\n{ color:green; fill-color:green; }\r\n\r\nrelation[network=rwn] way\r\n{ color:yellow; fill-color:yellow; }\r\n\r\n}}<\/pre>\n<h2>Rectangular buildings in Wales that are taller than they are wide<\/h2>\n<p>This one&#8217;s adapted from the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_API\/Overpass_API_by_Example#Buildings_that_are_taller_then_they_are_wide\">examples<\/a>.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[out:json][timeout:25];\r\n{{geocodeArea:wales}}-&gt;.searchArea;\r\n\/\/ Find rectangular buildings that are taller then they are wide\r\n(\r\n  \/\/ Compare the height to the average length of a side\r\n  way[\"building\"][\"height\"](area.searchArea)(if:\r\n    count_members() &lt; 6 &amp;&amp; is_closed() &amp;&amp;\r\n    number(t[\"height\"]) &gt; length() \/ 4);\r\n  \/\/ Assume a floor is 3 m tall\r\n  way[\"building\"][\"building:levels\"](area.searchArea)(if:\r\n    count_members() &lt; 6 &amp;&amp; is_closed() &amp;&amp;\r\n    number(t[\"building:levels\"]) * 3 &gt; length() \/ 4);\r\n);\r\n\r\n\/\/ Print results\r\nout body;\r\n&gt;;\r\nout skel qt;<\/pre>\n<h2>What&#8217;s next? Edit the map<\/h2>\n<p>If you notice any deficiencies in the data then you can edit the map. Welcome to the open data mapping community!<\/p>\n<p>Overpass can be used deliberately to look for opportunities to improve the map.<\/p>\n<h2>Overpass Turbo in Welsh?<\/h2>\n<p>Overpass Turbo&#8217;s interface is available in a few languages but it doesn&#8217;t offer Welsh as an interface language yet. If you&#8217;d like to contribute to the translation head to its <a href=\"https:\/\/www.transifex.com\/overpass-turbo\/overpass-turbo\/\">Transifex project<\/a>.<\/p>\n<h2>Write your own queries<\/h2>\n<p>Start with the <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_turbo\/Examples\">Overpass Turbo examples<\/a> and <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_API\/Overpass_API_by_Example\">Overpass API examples<\/a> provided by the OSM community.<\/p>\n<p>You can even delve into the <a href=\"https:\/\/dev.overpass-api.de\/overpass-doc\/en\/index.html\">user manual for Overpass<\/a>.<\/p>\n<h2>Using Python instead of Overpass Turbo<\/h2>\n<p>If you can use Python you can run Overpass queries in your code using <a href=\"https:\/\/github.com\/mvexel\/overpass-api-python-wrapper\">this simple wrapper<\/a> instead of the Overpass Turbo web interface. Write an app and wow us!<\/p>\n<p>Alternatively check out these <a href=\"https:\/\/wiki.openstreetmap.org\/wiki\/Overpass_API#Programs.2FScripts_around_Overpass\">other methods of querying Overpass via code<\/a>.<\/p>\n<p>In any case Overpass Turbo is handy for perfecting your queries.<\/p>","protected":false},"excerpt":{"rendered":"<p>Map: places in Wales that have &#8216;llan&#8217; in their names Would you like to get castles, rivers, post boxes, or cycleways in Wales from a map? How about investigating place names in Welsh in your local area? How about getting other features in Wales and further afield, as open data from a map? This blog [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":76,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[6],"class_list":["post-59","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-canllawiau","tag-overpass"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fun with Wales&#039; map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fun with Wales&#039; map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru\" \/>\n<meta property=\"og:description\" content=\"Map: places in Wales that have &#8216;llan&#8217; in their names Would you like to get castles, rivers, post boxes, or cycleways in Wales from a map? How about investigating place names in Welsh in your local area? How about getting other features in Wales and further afield, as open data from a map? This blog [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/\" \/>\n<meta property=\"og:site_name\" content=\"Mapio Cymru\" \/>\n<meta property=\"article:published_time\" content=\"2020-12-21T12:34:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-12-21T16:14:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Carl Morris\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carl Morris\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"21 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/\"},\"author\":{\"name\":\"Carl Morris\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\"},\"headline\":\"Fun with Wales&#8217; map data: a tutorial using Overpass queries and OpenStreetmap\",\"datePublished\":\"2020-12-21T12:34:55+00:00\",\"dateModified\":\"2020-12-21T16:14:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/\"},\"wordCount\":3280,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/llan2.jpg\",\"keywords\":[\"Overpass\"],\"articleSection\":[\"Guides\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/\",\"name\":\"Fun with Wales' map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/llan2.jpg\",\"datePublished\":\"2020-12-21T12:34:55+00:00\",\"dateModified\":\"2020-12-21T16:14:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[[\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/\"]]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/llan2.jpg\",\"contentUrl\":\"https:\\\/\\\/mapio.cymru\\\/wp-content\\\/uploads\\\/2020\\\/12\\\/llan2.jpg\",\"width\":1200,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/2020\\\/12\\\/overpass\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fun with Wales&#8217; map data: a tutorial using Overpass queries and OpenStreetmap\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/\",\"name\":\"Mapio Cymru\",\"description\":\"We are mapping Wales in the Welsh language\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mapio.cymru\\\/#\\\/schema\\\/person\\\/1c23e0f158d5ea179435a2349c3214c8\",\"name\":\"Carl Morris\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g\",\"caption\":\"Carl Morris\"},\"sameAs\":[\"https:\\\/\\\/morris.cymru\"],\"url\":\"https:\\\/\\\/mapio.cymru\\\/en\\\/author\\\/carlmorris\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fun with Wales' map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/","og_locale":"en_US","og_type":"article","og_title":"Fun with Wales' map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru","og_description":"Map: places in Wales that have &#8216;llan&#8217; in their names Would you like to get castles, rivers, post boxes, or cycleways in Wales from a map? How about investigating place names in Welsh in your local area? How about getting other features in Wales and further afield, as open data from a map? This blog [&hellip;]","og_url":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/","og_site_name":"Mapio Cymru","article_published_time":"2020-12-21T12:34:55+00:00","article_modified_time":"2020-12-21T16:14:35+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg","type":"image\/jpeg"}],"author":"Carl Morris","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Carl Morris","Est. reading time":"21 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#article","isPartOf":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/"},"author":{"name":"Carl Morris","@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8"},"headline":"Fun with Wales&#8217; map data: a tutorial using Overpass queries and OpenStreetmap","datePublished":"2020-12-21T12:34:55+00:00","dateModified":"2020-12-21T16:14:35+00:00","mainEntityOfPage":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/"},"wordCount":3280,"commentCount":1,"image":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#primaryimage"},"thumbnailUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg","keywords":["Overpass"],"articleSection":["Guides"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/","url":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/","name":"Fun with Wales' map data: a tutorial using Overpass queries and OpenStreetmap - Mapio Cymru","isPartOf":{"@id":"https:\/\/mapio.cymru\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#primaryimage"},"image":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#primaryimage"},"thumbnailUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg","datePublished":"2020-12-21T12:34:55+00:00","dateModified":"2020-12-21T16:14:35+00:00","author":{"@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8"},"breadcrumb":{"@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":[["https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/"]]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#primaryimage","url":"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg","contentUrl":"https:\/\/mapio.cymru\/wp-content\/uploads\/2020\/12\/llan2.jpg","width":1200,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/mapio.cymru\/en\/2020\/12\/overpass\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mapio.cymru\/en\/"},{"@type":"ListItem","position":2,"name":"Fun with Wales&#8217; map data: a tutorial using Overpass queries and OpenStreetmap"}]},{"@type":"WebSite","@id":"https:\/\/mapio.cymru\/en\/#website","url":"https:\/\/mapio.cymru\/en\/","name":"Mapio Cymru","description":"We are mapping Wales in the Welsh language","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mapio.cymru\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mapio.cymru\/#\/schema\/person\/1c23e0f158d5ea179435a2349c3214c8","name":"Carl Morris","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce0b6535b657764bdba3be40bf9acf37705ae25f41c612d18e94f00c13570330?s=96&d=mm&r=g","caption":"Carl Morris"},"sameAs":["https:\/\/morris.cymru"],"url":"https:\/\/mapio.cymru\/en\/author\/carlmorris\/"}]}},"_links":{"self":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":19,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/posts\/59\/revisions\/83"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/media\/76"}],"wp:attachment":[{"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mapio.cymru\/en\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}