diff --git a/Server/Server.cs b/Server/Server.cs index c542bbe..d3dfcce 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -1,3 +1,4 @@ +using System.Drawing; using OSMDatastructure; using OSMDatastructure.Graph; using Pathfinding; @@ -19,12 +20,16 @@ public class Server //RegionConverter.ConvertXMLToRegions("D:/germany-latest.osm", "D:/germany-latest"); - Coordinates start = new Coordinates( 48.7933798f, 9.8275859f); - Coordinates finish = new Coordinates( 48.795918f, 9.021618f); + Coordinates start = new Coordinates(48.7933798f, 9.8275859f); + Coordinates finish = new Coordinates(48.795918f, 9.021618f); PathResult result = Pathfinder.AStar("D:/stuttgart-regbez-latest", start, - finish, Tag.SpeedType.car, 0.1, 0.2, + finish, Tag.SpeedType.car, 0.01, 0.0001, 0); + + Console.WriteLine("Drawing area"); + ValueTuple area = Renderer.DrawArea(result.regionManager); - Renderer.DrawGraph(result.name); + Console.WriteLine("Drawing route"); + Renderer.DrawGraph(result.name, area.Item1, area.Item2); } } \ No newline at end of file diff --git a/Server/Server.csproj b/Server/Server.csproj index 1fa3be0..4f40e19 100644 --- a/Server/Server.csproj +++ b/Server/Server.csproj @@ -13,6 +13,7 @@ +