Live data from Hacker News

City Roads – Draw all roads in a city at once

anvaka.github.io

91–100 of 145 posts

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

#91
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?

Try "Australian Capital Territory". The search is using some sort of metadata from OSM, which is mildly quirky.

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

#92

Did you compare to a regular old canvas doing path calls? Or SVG? Most web browsers these days should GPU accelerate line drawing, making the whole lot one single openGL/directX/vulkan api call. If it doesn't perform equivalently, it's really a browser bug, and ought to be fixed.

Unless you queue up primitives for batch rendering, there is no chance that the canvas API is even remotely as fast as proper WebGL usage due to its design. You need to create a vertex buffer (at least somewhere under hood) and submit it in a single operation (at least under the hood) to get this kind of performance. Looping over lines on the CPU with immediate submission doesn't get you anywhere close.

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

#93
post #83

Okkk now how do I import this into Cities Skylines

There was a plugin: https://steamcommunity.com/app/255710/discussions/0/14562024... It sounds like the version someone built later sort of works: https://steamcommunity.com/sharedfiles/filedetails/comments/...

Shameless plug for https://abstreet.org. (Importing any city from OSM still needs lots of work, though.)

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

#94
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

This tool has some insanely good performance -- kudos! What did you build it on?

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

#95
post #67

Earlier quoted context omitted.

Same here, was interested to see it was only certain suburbs which had the driveways mapped.

Do you guys think it would be worth removing the foot paths? Someone here proposes to remove them altogether: https://github.com/anvaka/city-roads/issues/3 - I'm not sure yet which direction would make more sense?

I don't know if it would complicate the UI too much, yet having a toggle for them would be amazing. There are solid arguments each for having them and not, for example they're perfect for trail systems, yet horrible when it comes to sidewalks which turn each road into a triple line.

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

#96
post #67

Earlier quoted context omitted.

Same here, was interested to see it was only certain suburbs which had the driveways mapped.

Do you guys think it would be worth removing the foot paths? Someone here proposes to remove them altogether: https://github.com/anvaka/city-roads/issues/3 - I'm not sure yet which direction would make more sense?

Maybe you need some checkboxes in the Customize panel.

SVG export would also be pretty useful.

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

#97

Earlier quoted context omitted.

It doesn't have export to svg... and I don't know what other comment you're referring to. :S

≥ 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!

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

#99

Beautiful! I tried it with quite a few cities. Most of the cities hardly look as if they were planned out! A few from the Wikipedia list [0] looks nice though. [0]: https://en.wikipedia.org/wiki/Planned_cities Quezon City: https://anvaka.github.io/city-roads/?q=Quezon City&areaId=3600106569 Chandigarh: https://anvaka.github.io/city-roads/?q=Chandigarh&areaId=360... Singapore: https://anvaka.github.io/city-roads/?q=Si…

Ah Chandigarh. Good choice. The beauty of this city is evident in even this minimalist drawing.
Post reply on HN