OSM routing in csharp
Routing OpenStreetMap data in csharp. The program loads OSM XML file as a graph and then looks for shortest path between two nodes using dijkstra algorithm. It respects oneway, but no other tags.
Sourcecode:
program-v5.cs (fully commented in English) or compiled binary
Dokumentace:
dijkstra-docs.pdf (CZECH) for english try translate.google.com or contact me
Test run:
osmdijkstrarouter.exe highways-beroun.osm 783206932 121111858
—> finds shortest way output.gpx shown on map
Routování v OpenStreetMap datech v jazyce csharp. Načte OSM XML data jako graf a v něm pak nalezne nejkratší cestu. Respektuje pouze jednosměrky.