A minimal self hosted tile explorer for osm data.
- Download python/pip and run
pip3 install osmium Pillow numpy
- Download project files here
- Download your osm data from https://download.geofabrik.de/ (anything .osm.pbf) and place in root folder next to build_database.py
- Build the database
python3 build_database.py <the .osm.pbf file>
- Run the server
python3 api.py
- Open the browser and go to http://localhost:8000
This is a very bare bones approach to the task of mapping and was meant for dipping my toes into rtrees, cairo, caching, and other performance guides. I highly recommended osmnx for a more fleshed out project. The sydney_sample.png was rendered with tile resolution=1024 and query_limit=10000 for a more detailed result.