diff --git a/astar/Astar.cs b/astar/Astar.cs index 5222650..11a5240 100644 --- a/astar/Astar.cs +++ b/astar/Astar.cs @@ -9,7 +9,8 @@ namespace astar public Astar() { this.logger = new Logger(LogType.Console, loglevel.DEBUG); - Importer.Import(logger); + Dictionary nodes = Importer.Import(logger); + } } } \ No newline at end of file diff --git a/astar/Importer.cs b/astar/Importer.cs index dfda644..64fa000 100644 --- a/astar/Importer.cs +++ b/astar/Importer.cs @@ -5,7 +5,7 @@ namespace astar { public class Importer { - public static void Import(Logger logger) + public static Dictionary Import(Logger logger) { XmlReader reader = XmlReader.Create(new MemoryStream(osm_data.map)); reader.MoveToContent(); @@ -84,6 +84,7 @@ namespace astar } logger.log(loglevel.INFO, "Loaded. Nodes: {0}", nodes.Count); + return nodes; } internal static void ImportWay(Way way)