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)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
//HashSet<OsmNode> nodes = XmlImporter.ImportXml("/home/glax/Downloads/oberbayern-latest.osm");
|
HashSet<OsmNode> nodes = XmlImporter.ImportXml("/home/glax/Downloads/germany-latest.osm");
|
||||||
//HashSet<Region> regions = XmlImporter.SplitIntoRegions(nodes);
|
HashSet<Region> regions = XmlImporter.SplitIntoRegions(nodes);
|
||||||
//WriteRegionsToFile(regions, "/home/glax/Downloads/oberbayern-latest");
|
WriteRegionsToFile(regions, "/home/glax/Downloads/germany-latest");
|
||||||
|
|
||||||
|
/*
|
||||||
Coordinates start = new Coordinates(48.243351f, 11.640417f);
|
Coordinates start = new Coordinates(48.243351f, 11.640417f);
|
||||||
Coordinates finish = new Coordinates(48.25239f, 11.53272f);
|
Coordinates finish = new Coordinates(48.25239f, 11.53272f);
|
||||||
|
|
||||||
OsmNode[] path = Pathfinder.CustomAStar("/home/glax/Downloads/oberbayern-latest", start, finish, OsmEdge.speedType.car).ToArray();
|
OsmNode[] path = Pathfinder.CustomAStar("/home/glax/Downloads/oberbayern-latest", start, finish, OsmEdge.speedType.car).ToArray();
|
||||||
Console.WriteLine("{0}\n", path[0].ToString());
|
Console.WriteLine("{0}\n", path[0].ToString());
|
||||||
for (int i = 0; i < path.Length - 1; i++)
|
for (int i = 0; i < path.Length - 1; i++)
|
||||||
@ -38,6 +39,6 @@ public class Server
|
|||||||
else
|
else
|
||||||
Console.WriteLine("NO EDGE\n{0}", n2.ToString());
|
Console.WriteLine("NO EDGE\n{0}", n2.ToString());
|
||||||
}
|
}
|
||||||
Console.WriteLine();
|
Console.WriteLine();*/
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user