top | item 42481206

City Roads: A tool to draw all roads in a city at once

471 points| gaws | 1 year ago |anvaka.github.io | reply

59 comments

order
[+] Liftyee|1 year ago|reply
In the age of bloated resource hogs, I was pleasantly surprised that this rendered with no perceptible lag or stuttering, even on my phone. Impressive how everything is drawn so efficiently.
[+] mrbluecoat|1 year ago|reply
I agree. The pinch zoom was also buttery smooth. Nice job!
[+] stevage|1 year ago|reply
So, it's a filter on OpenStreetMap to retrieve all ways with a highway=* tag, and draw them identically?

I think a much faster and easier way to implement this would be using existing sources of vector tiles, but scaled down. You could probably even just use Mapbox GL JS, and scale the whole canvas down by a factor of 4 or something, to avoid the issue of small roads not being present at city-scale zoom levels.

[+] thih9|1 year ago|reply
OSM content attribution is missing (either not added or getting clipped) when the data is exported for printing on a mug.
[+] matsemann|1 year ago|reply
Do you need the attribution when you print it on a mug for personal use?
[+] pmg101|1 year ago|reply
If you choose Brighton and zoom in on Hove Park you see the fingerprint maze there very beautifully rendered as a vector, amazing OSM has this detail!
[+] JSR_FDED|1 year ago|reply
I was intrigued by how many of the 3000 cities you’ve cached I had heard of. You used population size >100k as cutoff, it would be interesting to compare how many cities someone has heard of with their population size.

This would be a fun metric to rate someone’s “global orientation”.

Only recognize the cities with >1M people? Low GO score (or more charitably, high Local Focus score :-)

[+] rplnt|1 year ago|reply
There are many quizzes like that on Sporcle.
[+] crabmusket|1 year ago|reply
I have a map of Brugge (Bruges) from this tool printed off on my wall. It's a great concept!
[+] lippihom|1 year ago|reply
Was hoping to do something like this but have had the formatting always come out wonky. Any tips?
[+] anvaka|1 year ago|reply
oh wow. Glad you liked it!
[+] rl_for_energy|1 year ago|reply
One of those simple charming tech experiences. Thanks for sharing!
[+] latkin|1 year ago|reply
In case others gave up, it took about 2.5 minutes to load my (midsize city) hometown from OpenStreetMap. So hang in there.
[+] remram|1 year ago|reply
Probably going to hit the paradox here, where most people are going to request a place where many people live, even though most places are small.

I probably have no chance, living in NYC.

[+] sandworm101|1 year ago|reply
I'm at 10 minutes now, for a town of <15k. Render time might depend more on total area than number of lines to draw. Update: gave up after 20min. Something might be wrong with the particular city.
[+] NavinF|1 year ago|reply
That's surprising. It only took me a couple of seconds to load NYC on my iPhone over 5G
[+] dudeinjapan|1 year ago|reply
Well done! I tried Tokyo, and discovered it looks funny/disjointed because several far away islands like Hachijojima are part of Tokyo municipality.
[+] Amorymeltzer|1 year ago|reply
Neat! Lovely to look at. Is it caching just the most popular or previous searches?

The option to print on a mug with one link is pretty neat! Might actually do that...

[+] robinduckett|1 year ago|reply
It seems to render each lane of the roads in my city seperately. It looks good at maximal zoom but worse if you zoom in.
[+] okasaki|1 year ago|reply
Great idea. Might print some and hang them.
[+] dotancohen|1 year ago|reply
I was thinking that this would be a great gift, to print a set of dinner plates with every place that I know the couple lived in. Each plate a different city.

Though I'm a bit worried about paint near food, especially for custom jobs.

[+] tekno45|1 year ago|reply
Idk how long itd take normally so just kinda neat.

But i love the slack in the dragging around the map.

[+] elbac|1 year ago|reply
This is wonderful. Great job.
[+] kayvulpe|1 year ago|reply
Incredible! May take a while for a big city, but well worth the wait.