Map To Poster – Create Art of your favourite city
64 points
3 hours ago
| 11 comments
| github.com
| HN
hyperific
1 hour ago
[-]
Also check out prettymapp

https://prettymapp.streamlit.app/

reply
mft_
2 hours ago
[-]
I believe (from a quick code check on my phone) it should be possible to output the images to SVG with a little tweak, thanks to your use of matplotlib?

Is there a reason you’ve defaulted to PNG that I’m missing?

reply
originalankur
2 hours ago
[-]
Valid Point @mft_ plt.savefig(output_file, format='svg', facecolor=THEME['bg']) should do it. I will add a --format parameter and make the change.
reply
Kwpolska
44 minutes ago
[-]
Pretty cool! It would be great if there was a way to set coordinates manually, since Nominatim can sometimes produce mediocre results. Also, would be nice to have a way to render the same map in all themes, not just one.
reply
tomashubelbauer
2 hours ago
[-]
Three random themes for anyone who's Czech or likes Prague and doesn't want to set up the script locally: https://imgur.com/a/Ovg8mDW
reply
xixixao
1 hour ago
[-]
What’s up with the Zizkovska tower highlight?
reply
originalankur
1 hour ago
[-]
Looks beautiful. The gold+dark color does justice.
reply
stephenlf
1 hour ago
[-]
This repo is fantastic. The README should be the gold standard for OSS. Not to mention how stunning the outputs are. Thanks for sharing.
reply
kylecazar
14 minutes ago
[-]
Agree! The 'Modify when' column in the key functions table made me happier than it should have.
reply
tianqi
2 hours ago
[-]
That's splendid. I've long wanted to make a jigsaw puzzle out of Sydney's road map, so I can familiarise myself with the layout of roads while having fun. That way I can reduce my reliance on nav app and become one of those old-school drivers.
reply
bobnamob
2 hours ago
[-]
There's a reason Where 2 -> Google Maps happened in Sydney. The sheer number of one-way roads combined with the imposition of the harbour and the messy tunnel system make internalising Sydney navigation a life-long endeavour
reply
simonebrunozzi
2 hours ago
[-]
The map of Venice seems to be the only one whose image is "squeezed" horizontally. Wondering why.
reply
originalankur
2 hours ago
[-]
need to take into consideration the length and width of the city and choose distance appropriately. I haven't followed my own suggestion here - https://github.com/originalankur/maptoposter?tab=readme-ov-f... will fix.
reply
hehe23
1 hour ago
[-]
Hi! I generated a map as well, but indeed, the map is squeezed horizontally. I have here a screenshot from a map and the poster: https://photos.diffop.be/apps/photos/public/h6JKMJImLZCXutcT...

I have tried adjusting -d, but it only affects the scale.

Here is the command I used: python create_map_poster.py --city Leuven --country Belgium --distance 4000 --theme sunset

reply
emaro
2 hours ago
[-]
I tried it in a python3 venv, but the download data step is stuck at 0% unfortunately.
reply
originalankur
2 hours ago
[-]
It will work, give it time. Also default distance is 29000. Give distance of 10000 to see faster results. It certainly is working as many users have generated maps.
reply
originalankur
2 hours ago
[-]
Also note that as per their terms and conditions I need to give a user agent, so multiple users will be sharing same user agent right now.
reply
doophus
3 hours ago
[-]
Why are big chunks of Sam Francisco missing (eg around the bridge) missing from the example?
reply
Sajarin
3 hours ago
[-]
Those smooth chunks are all (mostly) public park land. Known as Presidio and part of the Golden Gate National Recreation Area.
reply
originalankur
2 hours ago
[-]
You know your city.
reply
originalankur
3 hours ago
[-]
python create_map_poster.py -c "San Francisco" -C "USA" -t sunset -d 10000

-d should be approx. 10k to 14k given the size of the city. You can give it a shot.

reply
cinntaile
3 hours ago
[-]
It says there are examples but I can't see them?
reply
originalankur
2 hours ago
[-]
Please check on desktop, the table is hiding images in responsive mode - You can see the images on X here https://x.com/getpy/status/2009255303775174684
reply
cinntaile
2 hours ago
[-]
Thanks, I didn't notice there was another column that I could sidescroll to!
reply
giuliomagnifico
3 hours ago
[-]
Nice! Thanks
reply