Published on 25 Sep 2019 10:54AM
A few months ago I found the pizza repository of Steve Kinney, a project to list all the best pizzerias around the world. As a fan of pizza and being born in the hometown of it (Naples for those unaware), I started contributing to it pizzerias in Italy and Poland mostly that I knew by first-hand experience were very good.
To make a longer story short, slowly the contributions piled up and I wasn't satisfied with a few technical solutions adopted, mainly the use of Ruby and implementing the list of pizzerias in Markdown in the Readme file. My fork of the original project grew distant enough that I agreed with Steve to make it a separate project and adding to it a UI, moving it at the same time to a Go codebase.
Therefore now the project is feature-complete for the time being. The pizzerias’ list is no more just in markdown but it is implemented as a struct in Go which I wrote a script to convert it into GeoJson, a much more apt format to handle geographical locations as the pizzerias are. From there, it is easy to load it from the frontend and visualize it with an OSM Map through the Leaflet library. A few touches of CSS and the UI is done, supporting visualizing, searching and zooming automatically to the user's location thanks to the Geolocation API of modern browsers.
- Golang (backend)
- Pizzeria's data are kept in GeoJson
- Handling of the GeoJson data is done through jQuery and Leaflet.js