From 583fe3c18db5618faeab6a036bb34b283f439d23 Mon Sep 17 00:00:00 2001 From: C9Glax <13404778+C9Glax@users.noreply.github.com> Date: Wed, 8 Feb 2023 23:13:56 +0100 Subject: [PATCH] modified: Server/Server.cs --- Server/Server.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Server/Server.cs b/Server/Server.cs index a4705c7..78a376e 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -20,12 +20,13 @@ public class Server public static void Main(string[] args) { - //HashSet nodes = XmlImporter.ImportXml("/home/glax/Downloads/oberbayern-latest.osm"); - //HashSet regions = XmlImporter.SplitIntoRegions(nodes); - //WriteRegionsToFile(regions, "/home/glax/Downloads/oberbayern-latest"); + HashSet nodes = XmlImporter.ImportXml("/home/glax/Downloads/germany-latest.osm"); + HashSet regions = XmlImporter.SplitIntoRegions(nodes); + WriteRegionsToFile(regions, "/home/glax/Downloads/germany-latest"); + + /* Coordinates start = new Coordinates(48.243351f, 11.640417f); Coordinates finish = new Coordinates(48.25239f, 11.53272f); - OsmNode[] path = Pathfinder.CustomAStar("/home/glax/Downloads/oberbayern-latest", start, finish, OsmEdge.speedType.car).ToArray(); Console.WriteLine("{0}\n", path[0].ToString()); for (int i = 0; i < path.Length - 1; i++) @@ -38,6 +39,6 @@ public class Server else Console.WriteLine("NO EDGE\n{0}", n2.ToString()); } - Console.WriteLine(); + Console.WriteLine();*/ } } \ No newline at end of file