News for hackers. Stuff that matters.
Re:City Roads – Draw all roads in a city at once by anvaka on Wednesday January 22, 2020 @03:18PM (#22121560)
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

Re:City Roads – Draw all roads in a city at once by thdrdt on Thursday January 23, 2020 @01:06AM (#22125237)
I like the interaction design a lot while loading the data.

The first time it took very long and after a while it said 'still loading'. Then after a while 'sorry this is taking so long'. And then 'trying another server'.

This is great interaction because the user knows what is going on and the app is still busy.

Great job!

Re:City Roads – Draw all roads in a city at once by slazaro on Wednesday January 22, 2020 @06:54PM (#22123376)
Small feature request: Being able to rotate the image. For some cities, the "canonical" map is not vertically aligned with north (e.g. Barcelona, in maps usually the coast is horizontal, so north is pointing top-right).
Re:City Roads – Draw all roads in a city at once by jdtang13 on Wednesday January 22, 2020 @08:29PM (#22123976)
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 by anvaka on Wednesday January 22, 2020 @11:34PM (#22124900)
Thank you!

The rendering is done with WebGL. I wrote a silly 2d renderer to learn more about the platform, and never documented it. Thought it would not be very useful.

Ended up using it in a lot of tiny projects, but didn't have chance to document it yet. Here it is https://github.com/anvaka/w-gl

Re:City Roads – Draw all roads in a city at once by oh_sigh on Wednesday January 22, 2020 @04:09PM (#22122069)
I don't know if open street data let's you monetize like this, but consider adding a link to Shutterfly or some similar site that would let the user get their road network of choice be printed out on a mug or t shirt.

A site featured on hn a few weeks ago which showed height renderings of various locales let you do something like that.

Re:City Roads – Draw all roads in a city at once by windthrown on Wednesday January 22, 2020 @04:54PM (#22122464)
This is already incorporated into the site. After the roads render, click "Customize", then "Onto a mug" and a link to zazzle.com will open to order a mug.
Re:City Roads – Draw all roads in a city at once by rhn_mk1 on Wednesday January 22, 2020 @05:30PM (#22122767)
OpenStreetMap data license (ODBL) allows any use of renderings as long as attribution is present, and that modifications to the data have been made available under ODBL.
Re:City Roads – Draw all roads in a city at once by tnorthcutt on Wednesday January 22, 2020 @05:00PM (#22122517)
That one is also from anvaka :)
Re:City Roads – Draw all roads in a city at once by oh_sigh on Wednesday January 22, 2020 @05:28PM (#22122757)
Funny. I wonder if the similar visual styles led me to connect the two despite not even remembering what exactly the terrain height mapping one was.

Now I feel kind of silly suggesting to this person a great idea that was actually...their own.

Re:City Roads – Draw all roads in a city at once by cglace on Wednesday January 22, 2020 @04:12PM (#22122099)
Do you remember the site that was submitted?
Re:City Roads – Draw all roads in a city at once by jesterpm on Wednesday January 22, 2020 @04:28PM (#22122250)
Peak map: Visualize the elevation of any area using a ridgeline chart

https://news.ycombinator.com/item?id=21968874

Re:City Roads – Draw all roads in a city at once by jschwartzi on Wednesday January 22, 2020 @05:50PM (#22122919)
Bonus points if you let me add UTM or Lat+Long coordinates to have marks appear for the peaks I've bagged on the peak map. Then I can buy a mug or print a poster that lists all the peaks I've bagged or intend to bag.
Re:City Roads – Draw all roads in a city at once by anvaka on Wednesday January 22, 2020 @05:14PM (#22122638)
Oh! This one is fun :)!
Re:City Roads – Draw all roads in a city at once by chris_wot on Thursday January 23, 2020 @01:57AM (#22125442)
Can you export it to SVG? I can see this really helping Wikipedia editors.
Re:City Roads – Draw all roads in a city at once by anvaka on Friday January 24, 2020 @11:05PM (#22144592)
Done!
Re:City Roads – Draw all roads in a city at once by chris_wot on Sunday January 26, 2020 @06:55PM (#22155752)
Thanks!
Re:City Roads – Draw all roads in a city at once by ym705 on Wednesday January 22, 2020 @05:12PM (#22122621)
Your projects are awesome anvaka! Please continue doing those!
Re:City Roads – Draw all roads in a city at once by anvaka on Wednesday January 22, 2020 @05:22PM (#22122707)
Sincerely thank you. I'm so happy to know this!
Re:City Roads – Draw all roads in a city at once by niceworkbuddy on Thursday January 23, 2020 @05:28AM (#22126369)
Yeah it's really nice! :) However i think there should be an option to disable showing sidewalks for pedestrians, so only roads for cars should be seen then. It would be nice to see where you can drive your car ;)
Re:City Roads – Draw all roads in a city at once by gjhr on Thursday January 23, 2020 @05:07AM (#22126278)
Very cool! It would be nice to be able to group multiple cities in one map. Greater London and the City of London are listed separately so Greater London has a big hole in the middle.
Re:City Roads – Draw all roads in a city at once by hoseja on Thursday January 23, 2020 @06:01AM (#22126512)
Yes, this would be great.
Re:City Roads – Draw all roads in a city at once by bduerst on Wednesday January 22, 2020 @05:55PM (#22122965)
Well done. If possible, can you add functionality for:

- Pre-saved color swatches to cycle through, like those at color.adobe.com/trends

- Custom cell phone cases. A bunch like casetify offer affiliate revenue.

Re:City Roads – Draw all roads in a city at once by agumonkey on Wednesday January 22, 2020 @06:02PM (#22123017)
I like the minimalism of it. That said, I'd be happy if you exposed road segment classes (I believe OSM maps have that) for styling to give main streets or highways a bolder tone.

Kudos :)

Re:City Roads – Draw all roads in a city at once by pfundstein on Wednesday January 22, 2020 @05:24PM (#22122729)
Tokyo (massive map) seems a bit buggy, and there's several distinct groups of roads loading. Awesome tool nonetheless!
Re:City Roads – Draw all roads in a city at once by jolmg on Wednesday January 22, 2020 @05:56PM (#22122982)
It seems they're islands that are also part of Tokyo. From[1]:

> Also within the administrative boundaries of Tokyo Metropolis are two island chains in the Pacific Ocean directly south: the Izu Islands, and the Ogasawara Islands

[1] https://en.wikipedia.org/wiki/Tokyo

Re:City Roads – Draw all roads in a city at once by x__x on Wednesday January 22, 2020 @11:19PM (#22124835)
What are the copyright terms on these maps? What if someone wanted to use these on custom t-shirts and posters to sell?
Re:City Roads – Draw all roads in a city at once by judge2020 on Wednesday January 22, 2020 @11:37PM (#22124910)
The OSM data license would still apply here, meaning you must attribute them [0].

As for the visuals of this map, chances are the MIT license for the repository applies to it as well [1] [not a lawyer].

0: https://wiki.openstreetmap.org/wiki/Legal_FAQ#3a._I_would_li...

1: https://github.com/anvaka/city-roads/blob/master/LICENSE

Re:City Roads – Draw all roads in a city at once by johanam on Wednesday January 22, 2020 @07:41PM (#22123689)
Would you happen to support Canberra, Australia? Or is there a way to request a city if it's not listed?
Re:City Roads – Draw all roads in a city at once by twic on Wednesday January 22, 2020 @07:49PM (#22123736)
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 by anvaka on Friday January 24, 2020 @11:05PM (#22144595)
Should work a bit better now
Re:City Roads – Draw all roads in a city at once by jakecopp on Thursday January 23, 2020 @12:25AM (#22125081)
I found this bug too!
Re:City Roads – Draw all roads in a city at once by iagovar on Wednesday January 22, 2020 @03:58PM (#22121958)
It's pretty cool mate. Gonna make a wallpaper with it.
Re:City Roads – Draw all roads in a city at once by anvaka on Wednesday January 22, 2020 @05:23PM (#22122719)
Yay! I'd love to know how it goes! I'm myself not sure what would be the best resolution and line thickness to do wallpapers. If you find something appealing - please share?
Re:City Roads – Draw all roads in a city at once by rmoriz on Wednesday January 22, 2020 @11:59PM (#22124987)
Would love to see a version that renders train/street car tracks
Re:City Roads – Draw all roads in a city at once by yayitswei on Thursday January 23, 2020 @01:14AM (#22125271)
Or bike lanes!
Re:City Roads – Draw all roads in a city at once by scatters on Thursday January 23, 2020 @05:32AM (#22126390)
It already renders bike lanes - it displays all highway classes, from freeways to walking trails.
Re:City Roads – Draw all roads in a city at once by Moru on Thursday January 23, 2020 @04:08AM (#22126032)
There are some bike apps that can do this though. With GPS support for navigation :-)
Re:City Roads – Draw all roads in a city at once by archivist1 on Thursday January 23, 2020 @12:41AM (#22125135)
It's interesting to note the size of the download for a city. Guess it's related to the complexity of the road network, not necessarily the number of roads. Interesting to think about the "entropy" of a city's network and compare between cities. For instance, Sydney AU is 25Mb, but NYC is only 11Mb. Even tho population of NYC is ~e x Sydney.
Re:City Roads – Draw all roads in a city at once by samcrawford on Thursday January 23, 2020 @01:43AM (#22125396)
Check out Sao Paulo - it was over 500MB! Was very impressed that the map still rendered and was responsive on my 4 year old laptop too.