TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

City Roads – Draw all roads in a city at once

668 点作者 jordinebot超过 5 年前

46 条评论

anvaka超过 5 年前
Hey there, I&#x27;m the author of the tool!<p>Just wanted to thank you for the comments, feedback and shares! I &#x27;m very happy!<p>PS: If you liked that project you may find my other stuff interesting: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;search?q=from%3Aanvaka%20min_retweets%3A20&amp;src=typed_query" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;search?q=from%3Aanvaka%20min_retweets%3A...</a> - it&#x27;s just a hobby but I love it :D
评论 #22125237 未加载
评论 #22123376 未加载
评论 #22123976 未加载
评论 #22122069 未加载
评论 #22125442 未加载
评论 #22122621 未加载
评论 #22126369 未加载
评论 #22126278 未加载
评论 #22122965 未加载
评论 #22123017 未加载
评论 #22122729 未加载
评论 #22124835 未加载
评论 #22123689 未加载
评论 #22121958 未加载
评论 #22124987 未加载
评论 #22125135 未加载
crazygringo超过 5 年前
I love how elegant it is!<p>Unfortunately it can&#x27;t seem to find most cities I try. Just one example, typing &quot;New Hartford&quot; only finds one in Iowa, instead of listing all of them [1]. Most other medium-sized towns I tried show no results at all.<p>I&#x27;d also love it if there were a way to export as SVG&#x27;s -- these seem like they would make amazing posters to frame.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;New_Hartford" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;New_Hartford</a>
评论 #22122746 未加载
评论 #22123187 未加载
c0nsumer超过 5 年前
Neat, but this does not seem to be all roads, it seems to be everything tagged highway=*.<p>Specifically, non-motorized walking&#x2F;biking paths and mountain bike trails (highway=path) are rendered.<p>Ref: <a href="https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Marquette%2C%20MI&amp;areaId=3600134503" rel="nofollow">https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Marquette%2C%20MI&amp;are...</a>
评论 #22121581 未加载
thunderbong超过 5 年前
Beautiful! I tried it with quite a few cities. Most of the cities hardly look as if they were planned out!<p>A few from the Wikipedia list [0] looks nice though.<p>[0]: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Planned_cities" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Planned_cities</a><p>Quezon City: <a href="https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Quezon" rel="nofollow">https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Quezon</a> City&amp;areaId=3600106569<p>Chandigarh: <a href="https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Chandigarh&amp;areaId=3601942809" rel="nofollow">https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Chandigarh&amp;areaId=360...</a><p>Singapore: <a href="https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Singapore&amp;areaId=3600536780" rel="nofollow">https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Singapore&amp;areaId=3600...</a>
评论 #22123533 未加载
评论 #22124545 未加载
jdboyd超过 5 年前
It&#x27;s really simple looking, but I entered my city, and I just love the graphic that was rendered. Is there any chance of making it produce SVGs to download?
评论 #22121074 未加载
Treblemaker超过 5 年前
Would love to find something like this for rural areas. Maddening sometimes how details disappear from most online maps based only on zoom level rather than on feature density.
评论 #22126191 未加载
评论 #22120941 未加载
chillly超过 5 年前
The site times out, YC has struck.<p>It says it is contacting openstreetmaps, but the global mapping community is called openstreetmap (no &#x27;s&#x27;).
评论 #22122375 未加载
DonaldFisk超过 5 年前
It seems to be missing most of Scotland. No Glasgow, Edinburgh, Dundee, Perth, or Inverness. It does have Stirling, Aberdeen, and Falkirk. It&#x27;s also missing parts of Australia: no Perth, Brisbane, Darwin, or Alice Springs.
ademars94超过 5 年前
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.
评论 #22144690 未加载
glitcher超过 5 年前
Awesome project, love the output!<p>My wishlist item would be to have an option to render an additional x miles around the city limits boundaries to help incorporate communities that have the same city in their address but are technically not within the city limits.
thr0w__4w4y超过 5 年前
Can someone either explain the use case for this to me, or explain what I&#x27;m missing? Too small to be of any use to me, no street names... maybe it&#x27;s just a &quot;cool&quot; thing you put on a mug or get printed on a T-shirt?<p>I&#x27;m probably just not in touch with my inner artist and am too quick to look for the functional &#x2F; business purpose of this.<p>By the way, really solid work and very kind of the author to share this. I can still appreciate it even if I don&#x27;t see how I&#x27;d ever need to use it.
frebord超过 5 年前
Okkk now how do I import this into Cities Skylines
评论 #22123515 未加载
anon767超过 5 年前
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
评论 #22122625 未加载
评论 #22121683 未加载
teniutza超过 5 年前
Really great idea and nicely made! Congratulations! I&#x27;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.<p>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.
评论 #22144683 未加载
sethammons超过 5 年前
&gt; Something went wrong. The error was:<p>&gt; { &quot;statusError&quot;: 504, &quot;message&quot;: &quot;Unexpected status code 504 when calling <a href="https:&#x2F;&#x2F;overpass.openstreetmap.ru&#x2F;cgi&#x2F;interpreter&quot;" rel="nofollow">https:&#x2F;&#x2F;overpass.openstreetmap.ru&#x2F;cgi&#x2F;interpreter&quot;</a> }<p>And the referenced url 404s
评论 #22121970 未加载
dcustodio超过 5 年前
Amazing! Thank you so much for this. I am getting myself an A3 diagram of my hometown.
Sohcahtoa82超过 5 年前
It&#x27;s definitely missing a lot of roads in my city.<p>Compare it&#x27;s view to Beaverton, Oregon: <a href="https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Beaverton%2C%20OR&amp;areaId=3600423111" rel="nofollow">https:&#x2F;&#x2F;anvaka.github.io&#x2F;city-roads&#x2F;?q=Beaverton%2C%20OR&amp;are...</a><p>With the Google Maps view: <a href="https:&#x2F;&#x2F;www.google.com&#x2F;maps&#x2F;@45.5029349,-122.8365195,13.75z" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;maps&#x2F;@45.5029349,-122.8365195,13.75z</a><p>It&#x27;s like most of the Cedar Hills neighborhood doesn&#x27;t exist. It also drew a line for a power line where there is no road.
评论 #22122027 未加载
评论 #22123242 未加载
评论 #22122046 未加载
exdsq超过 5 年前
It&#x27;s interesting to see how some cities are spread out. For instance, Aleppo is pretty interesting in that it has clusters of compact streets growing out of the center.
nanidin超过 5 年前
Looks great - one observation, when I enter Kansas City I have to choose MO or KS. It would be great to be able to select a county or metro area.<p>I wonder if something similar was used to create the laser cut wood maps you can find on Etsy[0].<p>[0] <a href="https:&#x2F;&#x2F;www.etsy.com&#x2F;listing&#x2F;605571478&#x2F;kansas-city-wooden-map-laser-cut-wood" rel="nofollow">https:&#x2F;&#x2F;www.etsy.com&#x2F;listing&#x2F;605571478&#x2F;kansas-city-wooden-ma...</a>
评论 #22144804 未加载
Seb-C超过 5 年前
That&#x27;s an impressive work! It runs smoothly even for large cities.<p>I guess you cannot really fix it because it probably comes from the data you are using, but for Tokyo the default zoom is broken because a bunch of unrelated places is also displayed.<p>Do you think you could also include the railroads&#x2F;subways? I think here it is a more relevant way of finding your path in the city rather than the roads and the result could be quite interesting.
评论 #22125191 未加载
dvasdekis超过 5 年前
Typed in &#x27;Brisbane&#x27;, an Australian city of 3 million, but the only result that came up was Brisbane, Santa Monica.<p>Any thoughts on international support? :)
评论 #22122435 未加载
评论 #22124359 未加载
ksbakan超过 5 年前
Wow this thing is fast!<p>I expected lag on my phone but it works great.
评论 #22121287 未加载
tmhrtly超过 5 年前
If you folks are enjoying this but want more flexibility, check out Mapbox - it lets you define fully custom styles for OpenStreetMap maps and download them as high res images or embed them in apps (basically this but more flexible and a bit harder to use). <a href="https:&#x2F;&#x2F;www.mapbox.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.mapbox.com&#x2F;</a>
movablepoint超过 5 年前
Nice work! Easy to use (and fast).<p>Reminds me of this print I still have on my wall called &quot;All Streets Limited&quot; by Ben Fry.
评论 #22122668 未加载
irrational超过 5 年前
I did my city. Lots of streets (that are decades old) are not on there, including the street that my house is on (which has been there since at least 1970). Other streets cut out and then pick back up a half mile or so later. What happened to the road in between those two points?
ohlookabird超过 5 年前
It looks great, but is the rendering of the OSM data the main thing or am I overlooking a feature here?
评论 #22121510 未加载
chadlavi超过 5 年前
Huh, didn&#x27;t find my hometown somehow. Dies this only work for cities over a certain size?
评论 #22122763 未加载
londons_explore超过 5 年前
Did you compare to a regular old canvas doing path calls?<p>Or SVG?<p>Most web browsers these days should GPU accelerate line drawing, making the whole lot one single openGL&#x2F;directX&#x2F;vulkan api call.<p>If it doesn&#x27;t perform equivalently, it&#x27;s really a browser bug, and ought to be fixed.
评论 #22123776 未加载
ppod超过 5 年前
Very nice, customisable colours for water and different land types would be great.
vrsfvwae5tbh超过 5 年前
Weird edge case: there&#x27;s a big gap in the middle of London where the City of London is. Technically the City of London is a seperate entity, but for most practical day to day purposes they are considered the same.
keyle超过 5 年前
Export to something printable would be really neat. The export to PNG is cute but it&#x27;s 2K wide, not useful for anything but potentially a desktop background.
tsukurimashou超过 5 年前
Great project, a small thing you could add is a scale on some corner with just a line saying how much meters &#x2F; kilometers it represents
krzyk超过 5 年前
I see an empty page when I enter my city (after it downloads it, I disabled uBlock but that didn&#x27;t change anything) :(
评论 #22122773 未加载
markdown超过 5 年前
Awesome tool. How did you choose which cities to support? The capital and largest city of my country isn&#x27;t supported.
pgt超过 5 年前
This is so cool! Doesn&#x27;t find Cape Town, South Africa, which does show up on OpenStreetMap.org, though.
makotoNagano超过 5 年前
Really awesome! some weird quirks with the City search though. Couldn&#x27;t find Cape Town, South Africa
评论 #22127764 未加载
seaish超过 5 年前
Apparently it can&#x27;t load all of California, but other than that, this is really cool.
评论 #22122505 未加载
ajsharp超过 5 年前
This is incredibly cool. Cheers.
评论 #22122480 未加载
izzydata超过 5 年前
My neighborhood was non-existant between the two cities that end on both sides of it.
subterrane超过 5 年前
It renders footways as roads so don&#x27;t use this while driving. :D
FpUser超过 5 年前
Love it, keep going
werber超过 5 年前
Unable to export to png in Safari on iPhone xs
tantalor超过 5 年前
Can I play Pac-Man on it?
Bendingo超过 5 年前
Very cool!
nehagup超过 5 年前
HAHAHA.. I searched for &quot;New Delhi&quot;, India The system crashed. Makes sense after all Delhi is as big as Singapore.
anticensor超过 5 年前
I misread it as the website that <i>tenders</i> every single road within a city.