Live data from Hacker News

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

christophercliff.com

11–20 of 37 posts

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

#13
post #8

Anyone who'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 entire OSM graph, instead of just a tiny subset: http://map.project-osrm.org/ (Also, it's open-source.)

Their data is wrong, at least for Edinburgh.

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

#14
post #8

Anyone who'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 entire OSM graph, instead of just a tiny subset: http://map.project-osrm.org/ (Also, it's open-source.)

Their data is wrong, at least for Edinburgh.

You have the power to help improve it.

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

#15
post #9
post #8

Anyone who'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 entire OSM graph, instead of just a tiny subset: http://map.project-osrm.org/ (Also, it's open-source.)

Are there any instructions? It took me a long while to figure out how to drop pins (the placeholder text says you have to press Enter, but you actually need to use the mouse), and now I have no idea how to display the route.

You can type place names into the entry boxes on the front-end - they get converted to lon/lat using a geocoding database.

OR you can drop pins on the map.

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

#16
post #15
post #9

Earlier quoted context omitted.

Are there any instructions? It took me a long while to figure out how to drop pins (the placeholder text says you have to press Enter, but you actually need to use the mouse), and now I have no idea how to display the route.

You can type place names into the entry boxes on the front-end - they get converted to lon/lat using a geocoding database. OR you can drop pins on the map.

Is the geocoding database public as well? If so, do you know where it's hosted?

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

#17
Related: A few friends and I built a similar visualization for pathfinding algorithms with OSM data for an AI class:

http://www.kevanahlquist.com/osm_pathfinding/

It shows how nodes are explored on the map with different search algorithms and the optimal path once the search is completed.

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

#18
Related: A few friends and I built a similar visualization for pathfinding algorithms with OSM data for an AI class:

http://www.kevanahlquist.com/osm_pathfinding/

It shows how nodes are explored on the map with different search algorithms and the optimal path once the search is completed.

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

#19
post #16
post #15

Earlier quoted context omitted.

You can type place names into the entry boxes on the front-end - they get converted to lon/lat using a geocoding database. OR you can drop pins on the map.

Is the geocoding database public as well? If so, do you know where it's hosted?

It's https://nominatim.openstreetmap.org/.

There's a use policy: http://wiki.openstreetmap.org/wiki/Nominatim_usage_policy

Post reply on HN