Creating static map images with OpenStreetMap, Web Mercator, and Pillow - alexwlchan

Shared: | Tags: map programming til

Alex shares how to create static maps using Python and in doing so calculate a position on the unit square from coordinates. There's helpful Python code and a link to the OSM wiki describing the maths behind it. This was something I'd struggled to do when trying to add new points to the tiny-world-map. I was able to adjust the base map and add my own cities and plan to use this to add railway stations to the media map.

Read from link