Using browser geolocation, BreweryDB API, Google Map API, Google Maps Distance Matrix API, and my fork of the Beer Advocate API we get all breweries in your location sorted by distance and then pull in the beers at each individual brewery.
#Working Copy Just go to https://stanleysmith.net/BreweryDB-API/index.html to see it in action.
You just need to add a keys.php file with the following:
<?php
$breweryKey = 'YOUR_BREWERYDB_KEY';
$mapsKey = 'YOUR_GOOGLE_API_KEY';
#This is the location to your own site's instance of the serveBeerData.php file from my Beer Advocate API fork
$serverScorePHPFileLocation = 'http://yoursite.com/beer-advocate-api/serveBeerData.php'
?>