Live data from Hacker News

City Roads – Draw all roads in a city at once

anvaka.github.io

51–60 of 145 posts

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

#51
post #35
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

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.

That one is also from anvaka :)

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

#53
post #33

It's definitely missing a lot of roads in my city. Compare it's view to Beaverton, Oregon: https://anvaka.github.io/city-roads/?q=Beaverton%2C%20OR&are... With the Google Maps view: https://www.google.com/maps/@45.5029349,-122.8365195,13.75z It's like most of the Cedar Hills neighborhood doesn't exist. It also drew a line for a power line where there is no road.

OpenStreetMap's definition of Beaverton is quite complicated: https://www.openstreetmap.org/relation/423111 It includes several cut-outs for neighborhoods (including Cedar Hills) and other features. I'd guess that the OSM mappers were trying to represent a particular legal definition of the Beaverton city limits. How accurate it is, I wouldn't know. Perhaps in situations like this, "City Roads" might consider ignorin…

The boundary was initially imported from US Census Bureau data, which frequently does attempt to follow actual administrative boundaries.

The source data tends to not be incredibly accurate.

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

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

Your projects are awesome anvaka! Please continue doing those!

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

#55
post #15

My Girlfriend is an architect and she finds this tool great :) She asks if it would be possible to export these maps as .dwg file

The data is coming from OpenStreetMap, via http://overpass-api.de/

It's kind of overwhelming, but there's all sorts of tools that can take OSM data and do something with it.

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

#56
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.

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

#59

Earlier quoted context omitted.

Try a smaller city. This rendered almost immediately for me: https://anvaka.github.io/city-roads/?q=La%20Plata%2C%20Argen...

Now the site is not loading at all for me. Oops, there it goes. I think it could be overwhelmed. I think it just does not have data on smaller towns and cities. I've tried several US smaller cities and nothing works. However, your link does. I can get San Diego and Irvine, CA. But I can't get Redlands or Yucaipa, CA. I can't get Polson, MT (nor Kalispell nor Helena). Edit: Update - Finally got some data on Polson, MT…

Sorry it takes so long sometimes! I assume overpass (the back end that gives data) may experience higher loads which would affect response time! But glad it finally worked!
Post reply on HN