Tree named pubs of London
Posted by Harry Wood on 30 May 2016 in English. Last updated on 1 June 2016.It’s London Tree Week. I saw someone tweeting at OSMLondon asking “Can you help identify tree named pubs In London?”. Why yes I believe we can! We’ve always specialised in pubs. We even used to have a tree named pub “The Mulberry Bush” as one of our OSMLondon regulars.
This seemed like fun, so I went ahead and did it. Here’s the tree-named pubs of London on a map.
My method was maybe a bit old these days. See this bash script which fetches the London metro extract, uses osmosis to get pub nodes, then pub ways, then merge pub ways and nodes, then uses osmconvert to get centroids on the ways, then convert to CSV. Then grep to filter ‘Bush’, ‘bush’, ‘Tree’ and tree’ (but not ‘Street’) [Update: I’m now also finding tree type names. See comments below], to result in treepubs.csv. After that I fiddled with the CSV to make it a javascript array, and loaded that into my leaflet marker array example, and loaded in the treepubs as markers. Job done.




