A map of English Heritage and National Trust Properties in the UK
JavaScript Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


UK BrewMap

Client and Server software to produce the uk brewery map based on 
OpenStreetMap data.

Please see http://wiki.openstreetmap.org/wiki/WikiProject_United_Kingdom_Breweries for details of
the tagging scheme.

The server side code reads a postgresql database that has been populated with OpenStreetMap data using osm2pgsql.
It queries the database to extract microbreweries (tagged microbrewery=yes), 'craft' breweries (craft=brewery) and 'industrial' breweries (industry=brewery).   It extracts data that is tagged as single points and ways representing areas.
The data is saved as a simple json file that can be downloaded by the client code.

The client code should run in any modern browser.  It downloads the json data prepared by the data using jQuery, parses it, and displays it on a map using the Leaflet library.

The development version of this code can be seen running at http://brewmap.maps3.org.uk

Python (>2.6?)

The code in this repository includes jQuery (http://jquery.org) and Leaflet (http://leaflet.cloudmade.com)

The factory, house, wine glass, beer and grapes images are from http://www.freeiconsweb.com/Free-Downloads.asp?id=1291

Craig Loftus developed most of the client side code.

Donald Noble provided the distillery still icon.
Rob Norris provided a better microbrewery icon and got the page icon working.

EH Logo from http://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/EnglishHeritageLogo.svg/120px-EnglishHeritageLogo.svg.png

All of my code is licenced under GPL3.   Licences for the included data and images are given in the links above.