OSMServer/Server/Server.cs
2023-04-13 19:18:25 +02:00

30 lines
971 B
C#

using OSMDatastructure;
using OSMDatastructure.Graph;
using Pathfinding;
using RenderPath;
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.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,
0);
Renderer.DrawGraph(result.name);
}
}