using OSMDatastructure; using OSMDatastructure.Graph; using Pathfinding; namespace Server; public class Server { public static void Main(string[] args) { ConsoleWriter newConsole = new ConsoleWriter(); Console.SetOut(newConsole); Console.SetError(newConsole); RegionConverter.ConvertXMLToRegions("D:/stuttgart-regbez-latest.osm", "D:/stuttgart-regbez-latest"); //RegionConverter.ConvertXMLToRegions("D:/map.osm", "D:/map"); //RegionConverter.ConvertXMLToRegions("D:/germany-latest.osm", "D:/germany-latest"); /* Coordinates start = new Coordinates(48.794567f, 9.820625f); Coordinates finish = new Coordinates(48.79593f, 9.824013f); DateTime startTime = DateTime.Now; OsmNode[] path = Pathfinder.CustomAStar("D:/map", start, finish, Tag.SpeedType.car).ToArray(); TimeSpan duration = DateTime.Now - startTime; Console.WriteLine($"Took {duration.TotalMilliseconds}ms ({duration:g})"); for (int i = 0; i < path.Length - 1; i++) { Console.WriteLine(path[i]); } Console.WriteLine();*/ } }