Store nameID with Edge

This commit is contained in:
DennisOSRM 2011-11-15 16:24:13 +01:00
parent 11653ef58f
commit eca2c0c5ef
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -78,6 +78,7 @@ public:
int lon1;
int lon2;
NodeID id;
NodeID nameID;
};
typedef DynamicGraph< _EdgeBasedEdgeData> _EdgeBasedDynamicGraph;