So, you want a coffee, and cafes are usually quite expensive. What's the other best option for you? Of course, coffee vending machines! And this very straightforward application will let you find a lot of coffee machines everywhere in the world.
The application is a very simple Python server with a JavaScript frontend using Leaflet. The backend uses OSMPythonTools to run an overpass query to find coffee vending machines in a 2.5 km radius starting from a marker placed down by the user. The service, at the moment, does not implement a search box.
The service can be run locally with very few and easy steps:
- Clone this repo and
cdinto it - Run
source backend/venv/bin/activateif you're on macOS/Linux orbackend\venv\Scripts\activateif you're on Windows to activate the virtual environment - Simply run
python backend/src/coffeeGrabber/main.pyon macOS/Linux orpython backend\src\coffeeGrabber\main.pyon Windows. - Open your browser and go to
127.0.0.1:5000. Enjoy! - Remember to deactivate your virtual environment at the end with
deactivate.