expanded _PathData struct to include name, turn instruction and length

This commit is contained in:
DennisOSRM 2011-11-15 11:29:49 +01:00
parent 647f054714
commit f7326ca7f1

View File

@ -27,8 +27,11 @@ or see http://www.gnu.org/licenses/agpl.txt.
#include "Util.h"
struct _PathData {
_PathData(NodeID n) : node(n) { }
_PathData(NodeID no, unsigned na, unsigned tu, unsigned le) : node(no), nameID(na), turnInstruction(tu), lengthOfSegment(le) { }
NodeID node;
unsigned nameID;
unsigned turnInstruction;
unsigned lengthOfSegment;
};
typedef boost::unordered_map<std::string, NodeID> StringMap;