TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Dijkstra’s algorithm in the web browser with OpenStreetMap

158 pointsby ctcliffover 8 years ago

12 comments

teraflopover 8 years ago
Anyone who&#x27;s interested in this might want to check out the OSRM project, which uses a much more complex routing algorithm to efficiently find paths through the <i>entire</i> OSM graph, instead of just a tiny subset: <a href="http:&#x2F;&#x2F;map.project-osrm.org&#x2F;" rel="nofollow">http:&#x2F;&#x2F;map.project-osrm.org&#x2F;</a><p>(Also, it&#x27;s open-source.)
评论 #12641599 未加载
评论 #12640378 未加载
评论 #12640450 未加载
评论 #12640658 未加载
kevanover 8 years ago
Related: A few friends and I built a similar visualization for pathfinding algorithms with OSM data for an AI class:<p><a href="http:&#x2F;&#x2F;www.kevanahlquist.com&#x2F;osm_pathfinding&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.kevanahlquist.com&#x2F;osm_pathfinding&#x2F;</a><p>It shows how nodes are explored on the map with different search algorithms and the optimal path once the search is completed.
评论 #12641869 未加载
ddlutzover 8 years ago
Have you tried this with A* and seen any performance differences? This is very fast in the browser with a small map, but I imagine with a much larger map the difference would be noticeable.
评论 #12639859 未加载
jlaroccoover 8 years ago
Bug report: if I open this in a background tab the map is zoomed in very close at a weird spot near the middle and it&#x27;s confusing what is being demonstrated.
maxericksonover 8 years ago
Small discussion of a previous routing algorithm implemented in a similar way:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12187275" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12187275</a>
d33over 8 years ago
How about an open source version?
sapien13over 8 years ago
Nice work. I think we are doing somethings correlated. <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12647348" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12647348</a>
soperjover 8 years ago
this is unbelievably relevant for me right now, because this is exactly what I was looking to implement. Any gotchas? Lessons learned?
评论 #12639807 未加载
janciover 8 years ago
It would be more interesting, if the path is animated and shows the computation of the algorithm, not only the result.
_RPMover 8 years ago
Interesting. It&#x27;d be pretty cooler if this was free software though.
mgalkaover 8 years ago
Very cool project. Great presentation.
liotierover 8 years ago
I thought that Dijkstra required rasterization... But here it appears that it works with graph... Is there something I have missed ?
评论 #12642717 未加载