void Start()
    {
        graphData = ExampleGraphData.getInstance();

        string selectedMapName;

        if (SelectedMap == ExampleOSMMaps.Custom)
        {
            selectedMapName = CustomMap;
        }
        else
        {
            selectedMapName = SelectedMap.ToString();
        }

        var loader = DataLoaderFactory.createLoader(LoaderType.OsmLoader, selectedMapName);

        loader.LoadNodeData();

        EdgeBuilder edgeBuilder = new DefaultEdgeBuilder();

        edgeBuilder.getNodePairs();
        edgeBuilder.spawnEdges();
    }
 public override GraphData getGraphData()
 {
     return(ExampleGraphData.getInstance());
 }
Exemple #3
0
 public OsmLoader(string resourcePath) : base(resourcePath)
 {
     preloadNodes = new Dictionary <ulong, XmlNode>();
     graphData    = ExampleGraphData.getInstance();
     nodeBuilder  = new OsmNodeBuilder();
 }
 public DefaultEdgeBuilder() : base()
 {
     graphData = ExampleGraphData.getInstance();
 }