modified: Server/Server.cs
This commit is contained in:
parent
556b0736f1
commit
583fe3c18d
@ -20,12 +20,13 @@ public class Server
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
//HashSet<OsmNode> nodes = XmlImporter.ImportXml("/home/glax/Downloads/oberbayern-latest.osm");
|
||||
//HashSet<Region> regions = XmlImporter.SplitIntoRegions(nodes);
|
||||
//WriteRegionsToFile(regions, "/home/glax/Downloads/oberbayern-latest");
|
||||
HashSet<OsmNode> nodes = XmlImporter.ImportXml("/home/glax/Downloads/germany-latest.osm");
|
||||
HashSet<Region> 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();*/
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user