A single static page that points your phone at the nearest pub in the UK, with its name and distance.
index.html– the compass. Tap "Find beer", allow location and motion access.scripts/build_tiles.py– pulls every UKamenity=pubfrom OpenStreetMap (Overpass) and splits them into 1° tiles atdata/<lat>_<lon>.json..github/workflows/deploy.yml– runs the script weekly (and on push tomain) and deploys the page plus tiles to GitHub Pages.
Run locally:
python3 scripts/build_tiles.py data
python3 -m http.serverGeolocation and compass need HTTPS on a real phone, so test on the deployed Pages URL.
Pub data © OpenStreetMap contributors, ODbL.