From fe0ccd0fca955fa04052ea9765290ca012c00ab3 Mon Sep 17 00:00:00 2001 From: glax Date: Thu, 6 Apr 2023 14:46:19 +0200 Subject: [PATCH] working --- Server/Server.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Server/Server.cs b/Server/Server.cs index 36fef27..19de963 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -13,21 +13,21 @@ public class Server Console.SetOut(newConsole); Console.SetError(newConsole); - //RegionConverter.ConvertXMLToRegions("D:/stuttgart-regbez-latest.osm", "D:/stuttgart-regbez-latest"); + RegionConverter.ConvertXMLToRegions("D:/stuttgart-regbez-latest.osm", "D:/stuttgart-regbez-latest"); //RegionConverter.ConvertXMLToRegions("D:/map.osm", "D:/map"); - Console.WriteLine("Loaded"); + //RegionConverter.ConvertXMLToRegions("D:/germany-latest.osm", "D:/germany-latest"); - - Coordinates start = new Coordinates(48.793319f, 9.832102f); - Coordinates finish = new Coordinates(48.8407888f, 10.0676020f); + /* + 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:/stuttgart-regbez-latest", start, finish, Tag.SpeedType.car).ToArray(); + 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(); + Console.WriteLine();*/ } } \ No newline at end of file