Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
map
 
 
 
 
wbc
 
 
 
 
 
 
 
 

Beer Fest JSON

This is a dataset of Great American Beer Fest (GABF) Winners and World Beer Cup (WBC) Winners.

Check it Out

https://www.andrewvantassel.com/beerfest-winners

Data is from

Setup

This would be best with the Google Places API, add your API key to lib/Google.php Otherwise download and import US cities from https://simplemaps.com/data/us-cities

mongoimport -d beer-fest -c cities --type csv --file uscities.csv --headerline

Using the Scripts

composer install
# After the winners are announced you can update the year at the top of these files then run
php gabf-update.php
php wbc-update.php
# Mongo import
php mongo-import.php

Mongo Coord Updates

db.winners.updateMany({"city":"Saint Louis"},{$set: {coords: [-90.2451,38.6358], lat:38.6358, lng:-90.2451}});
db.winners.updateMany({"city":"Fort Myers"},{$set: {coords:[-81.8303,26.6195], lat:26.6195, lng:-81.8303}});
db.winners.updateMany({"city":"Ft. Bragg"},{$set: {coords: [-123.8013,39.44], lat:39.44, lng:-123.8013}});

Running the app

php -S 127.0.0.1:8080

Pins Map

Heat Map

About

GABF and WBC Winners in JSON

Resources

Releases

No releases published

Packages

No packages published