From eca2c0c5efabd76c19c0a4a216806b48253e7432 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Tue, 15 Nov 2011 16:24:13 +0100 Subject: [PATCH] Store nameID with Edge --- Contractor/EdgeBasedGraphFactory.cpp | 1 + Contractor/EdgeBasedGraphFactory.h | 1 + 2 files changed, 2 insertions(+) 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;