working
This commit is contained in:
parent
0bfc120ede
commit
2d5ffabb5d
@ -15,12 +15,8 @@ public class Server
|
|||||||
//RegionConverter.ConvertXMLToRegions("D:/stuttgart-regbez-latest.osm", "D:/stuttgart-regbez-latest");
|
//RegionConverter.ConvertXMLToRegions("D:/stuttgart-regbez-latest.osm", "D:/stuttgart-regbez-latest");
|
||||||
RegionConverter.ConvertXMLToRegions("D:/map.osm", "D:/map");
|
RegionConverter.ConvertXMLToRegions("D:/map.osm", "D:/map");
|
||||||
Console.WriteLine("Loaded");
|
Console.WriteLine("Loaded");
|
||||||
RegionLoader rl = new RegionLoader("D:/map");
|
Region? r = Region.FromFile("D:/map/13870001898000.region");
|
||||||
Region r = rl.GetRegion(13870001898000);
|
Console.WriteLine("loaded region");
|
||||||
Console.WriteLine(r.nodes.First());
|
|
||||||
Console.WriteLine(r.ways.First());
|
|
||||||
Console.WriteLine(rl.GetTagsForWay(13870001898000, 5897420)!.Last());
|
|
||||||
Console.WriteLine("Region loaded");
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Coordinates start = new Coordinates(48.243351f, 11.640417f);
|
Coordinates start = new Coordinates(48.243351f, 11.640417f);
|
||||||
|
Reference in New Issue
Block a user