From 37128688319a5b4078cfcdd522803246cc02b0ef Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Fri, 16 Mar 2012 13:22:51 +0100 Subject: [PATCH] Fixing a bug with hinting coordinates on one-way streets. --- DataStructures/PhantomNodes.h | 2 +- DataStructures/SearchEngine.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DataStructures/PhantomNodes.h b/DataStructures/PhantomNodes.h index 6725cef87..537c749ef 100644 --- a/DataStructures/PhantomNodes.h +++ b/DataStructures/PhantomNodes.h @@ -73,7 +73,7 @@ inline std::ostream& operator<<(std::ostream &out, const PhantomNodes & pn){ } inline std::ostream& operator<<(std::ostream &out, const PhantomNode & pn){ - + out << "node: " << pn.edgeBasedNode << ", name: " << pn.nodeBasedEdgeNameID << ", w1: " << pn.weight1 << ", w2: " << pn.weight2 << ", ratio: " << pn.ratio << ", loc: " << pn.location; return out; } diff --git a/DataStructures/SearchEngine.h b/DataStructures/SearchEngine.h index d42fbd81c..ad58dd11c 100644 --- a/DataStructures/SearchEngine.h +++ b/DataStructures/SearchEngine.h @@ -340,13 +340,13 @@ public: _RetrievePackedPathFromHeap(_forwardHeap, _backwardHeap, middle, packedPath); //Setting weights to correspond with that of the actual chosen path - if(packedPath[0] == phantomNodes.startPhantom.edgeBasedNode && phantomNodes.startPhantom.isBidirected()) { +// if(packedPath[0] == phantomNodes.startPhantom.edgeBasedNode && phantomNodes.startPhantom.isBidirected()) { // INFO("Setting weight1=" << phantomNodes.startPhantom.weight1 << " to that of weight2=" << phantomNodes.startPhantom.weight2); - phantomNodes.startPhantom.weight1 = phantomNodes.startPhantom.weight2; - } else { +// phantomNodes.startPhantom.weight1 = phantomNodes.startPhantom.weight2; +// } else { // INFO("Setting weight2=" << phantomNodes.startPhantom.weight2 << " to that of weight1=" << phantomNodes.startPhantom.weight1); - phantomNodes.startPhantom.weight2 = phantomNodes.startPhantom.weight1; - } +// phantomNodes.startPhantom.weight2 = phantomNodes.startPhantom.weight1; +// } // std::cout << "0: "; // for(unsigned i = 0; i < packedPath.size(); ++i) // std::cout << packedPath[i] << " ";