Hacker Newsnew | past | comments | ask | show | jobs | submit | originalankur's commentslogin

lol, I didn't even think of it. May be I should start taking country too. Edge case :-p

The initial version were coordinates actually but then realised people mostly love their cities more than anything and it's easy that way. Will add this feature back as optional parameters.

There is throttling in the code when making api request to respect the map provider as per their terms and conditions. Can make few thing parallel but it's a hobby project how many posters would one person want to generate?.

Looks beautiful. The gold+dark color does justice.

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.

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.

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.

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


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.

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

Thanks, I didn't notice there was another column that I could sidescroll to!

You know your city.

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: