NNGrid supports nameID of edges.

This commit is contained in:
DennisOSRM
2011-11-15 16:47:53 +01:00
parent eca2c0c5ef
commit caf8cd701e
3 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -156,8 +156,9 @@ 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.nameID = newEdge.data.nameID1;
currentNode.lat1 = inputNodeInfoList[u].lat;
currentNode.lon1 = inputNodeInfoList[u].lon;
currentNode.lat2 = inputNodeInfoList[v].lat;
@@ -166,6 +167,7 @@ void EdgeBasedGraphFactory::Run() {
edgeBasedNodes.push_back(currentNode);
}
if(_nodeBasedGraph->GetEdgeData(e2).type != 14) {
currentNode.nameID = newEdge.data.nameID2;
currentNode.lat1 = inputNodeInfoList[v].lat;
currentNode.lon1 = inputNodeInfoList[v].lon;
currentNode.lat2 = inputNodeInfoList[w].lat;