Skip to content

craigloftus/BrewMap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and grapes images are from http://www.freeiconsweb.com/Free-Downloads.asp?id=1291

Craig Loftus helped sort out my problems with javascript variable scope in the client.


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

About

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)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 70.0%
  • Python 28.7%
  • Shell 1.3%