diff --git a/Contractor/EdgeBasedGraphFactory.cpp b/Contractor/EdgeBasedGraphFactory.cpp index b0d7525a1..c440dd7b9 100644 --- a/Contractor/EdgeBasedGraphFactory.cpp +++ b/Contractor/EdgeBasedGraphFactory.cpp @@ -156,6 +156,7 @@ void EdgeBasedGraphFactory::Run() { //create Edge for NearestNeighborlookup edgeBasedEdges.push_back(newEdge); EdgeBasedNode currentNode; + currentNode.nameID = newEdge.data.nameID1; if(_nodeBasedGraph->GetEdgeData(e1).type != 14) { currentNode.lat1 = inputNodeInfoList[u].lat; currentNode.lon1 = inputNodeInfoList[u].lon; diff --git a/Contractor/EdgeBasedGraphFactory.h b/Contractor/EdgeBasedGraphFactory.h index 6239c04a0..c8eb95b0f 100644 --- a/Contractor/EdgeBasedGraphFactory.h +++ b/Contractor/EdgeBasedGraphFactory.h @@ -78,6 +78,7 @@ public: int lon1; int lon2; NodeID id; + NodeID nameID; }; typedef DynamicGraph< _EdgeBasedEdgeData> _EdgeBasedDynamicGraph;