Live data from Hacker News

City Roads – Draw all roads in a city at once

anvaka.github.io

131–140 of 145 posts

Re: City Roads – Draw all roads in a city at once

#131
post #79

I love how elegant it is! Unfortunately it can't seem to find most cities I try. Just one example, typing "New Hartford" only finds one in Iowa, instead of listing all of them [1]. Most other medium-sized towns I tried show no results at all. I'd also love it if there were a way to export as SVG's -- these seem like they would make amazing posters to frame. [1] https://en.wikipedia.org/wiki/New_Hartford

I tried Inverness, but strangely it only found those in the new world, not the original in Scotland.

Seems to be struggling with some of the nations in the UK. I can get London (England) and Swansea (Wales) no problem, but Edinburgh, Dundee, Glasgow (Scotland) etc. don't work. Nor do Derry, Belfast etc. (Northern Irish cities).

Re: City Roads – Draw all roads in a city at once

#132

Really awesome! some weird quirks with the City search though. Couldn't find Cape Town, South Africa

Yeah saw that too, it takes a bit of fiddling to get the right search term, try:

https://anvaka.github.io/city-roads/?q=City%20of%20Cape%20To...

Re: City Roads – Draw all roads in a city at once

#134
post #131
post #79

Earlier quoted context omitted.

I tried Inverness, but strangely it only found those in the new world, not the original in Scotland.

Seems to be struggling with some of the nations in the UK. I can get London (England) and Swansea (Wales) no problem, but Edinburgh, Dundee, Glasgow (Scotland) etc. don't work. Nor do Derry, Belfast etc. (Northern Irish cities).

The data is coming from https://nominatim.openstreetmap.org/search?format=json, and it appears that it doesn't do any keyword searching - so if you type "edinburgh" it only finds regions which start with edinburgh. Typing "City of edinburgh" will find the correct council region.

https://anvaka.github.io/city-roads/?q=city%20of%20edinburgh...

Re: City Roads – Draw all roads in a city at once

#135
Can someone either explain the use case for this to me, or explain what I'm missing? Too small to be of any use to me, no street names... maybe it's just a "cool" thing you put on a mug or get printed on a T-shirt?

I'm probably just not in touch with my inner artist and am too quick to look for the functional / business purpose of this.

By the way, really solid work and very kind of the author to share this. I can still appreciate it even if I don't see how I'd ever need to use it.

Re: City Roads – Draw all roads in a city at once

#136
post #20

Hey there, I'm the author of the tool! Just wanted to thank you for the comments, feedback and shares! I 'm very happy! PS: If you liked that project you may find my other stuff interesting: https://twitter.com/search?q=from%3Aanvaka%20min_retweets%3A... - it's just a hobby but I love it :D

Can you export it to SVG? I can see this really helping Wikipedia editors.

Done!

Re: City Roads – Draw all roads in a city at once

#137
post #89
post #20

Hey there, I'm the author of the tool! Just wanted to thank you for the comments, feedback and shares! I 'm very happy! PS: If you liked that project you may find my other stuff interesting: https://twitter.com/search?q=from%3Aanvaka%20min_retweets%3A... - it's just a hobby but I love it :D

Would you happen to support Canberra, Australia? Or is there a way to request a city if it's not listed?

Should work a bit better now

Re: City Roads – Draw all roads in a city at once

#138

Really great idea and nicely made! Congratulations! I'm considering making a poster out of it, with our home town. I think my wife would love to have it. Seeing it on the wall would probably make us less home-sick. How complicated would it be to add the option of highlighting one or two streets? Something like, make the street line thicker or change its color.

Thank you! I've added a way to export maps to SVG file, which can be edited by an SVG editor, those editors also usually support adjusting thickness and changing colors of the roads. Would this work?

Re: City Roads – Draw all roads in a city at once

#139

It would be really neat to be able to set a custom resolution to render as a .png image. Like e.g. if somebody wanted to create a poster.

While this may be possible some day, you can export today as vector file and then use https://ezgif.com/svg-to-png tool to save the SVG at any resolution. Would this work?

Re: City Roads – Draw all roads in a city at once

#140

Earlier quoted context omitted.

≥ Yes, but it is (as of this moment) an experimental feature. Add "?svg=1" to the end of the URL to enable this feature [0]. [0]: https://github.com/anvaka/city-roads/issues/4

Amazing! Thanks x1000000!

Should now work for all :)
Post reply on HN