Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The client and server side code to produce a map of uk breweries based on OpenStreetMap Data (http://wiki.openstreetmap.org/wiki/WikiProject_United_Kingdom_Breweries)

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 client
Octocat-spinner-32 server
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README
Octocat-spinner-32 deploy.sh
Octocat-spinner-32 index.html
README
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

Dependencies
============
Python (>2.6?)
python-psycopg2

Contributors
============
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.


Licence
=======
All of my code is licenced under GPL3.   Licences for the included data and images are given in the links above.
Something went wrong with that request. Please try again.