Single-origin coffee sources
Single-Origin Coffee Sources
I love coffee and I regularly try beans from new locations. I’ve kept a running list of my single-origin beans for a little while and I thought it’d be interesting to plot their locations. I intentionally kept to a uniform format with the raw data but some massaging of the data was necessary before OpenStreetMap could provide accurate geolocation data. In some cases the region listed by the roaster could be improved by gleaning information from the name of the supplier and in some cases there were differences in the anglicised version of the town or province name. In all cases it was an interesting dive into the providers and it was an excuse to experiment with Leaflet for programatically creating maps.
The script and the Javascript are quick-and-dirty jobs - this was definitely more about the fun of the data and the visualisation than an exercise in writing beautiful code - coffee_geo.py
The location markers are clickable to show more information about the beans.