Fixing Maney Hill street bug.
This commit is contained in:
parent
6b99e44177
commit
7fee51081f
@ -335,7 +335,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline std::string GetEscapedNameForNameID(const NodeID nameID) const {
|
inline std::string GetEscapedNameForNameID(const NodeID nameID) const {
|
||||||
return ( nameID >= _names->size() ? std::string("") : HTMLEntitize(_names->at(nameID)) );
|
return ( (nameID >= _names->size() || nameID == 0) ? std::string("") : HTMLEntitize(_names->at(nameID)) );
|
||||||
}
|
}
|
||||||
|
|
||||||
inline short GetTypeOfEdgeForOriginDestinationNodeID(NodeID s, NodeID t) const {
|
inline short GetTypeOfEdgeForOriginDestinationNodeID(NodeID s, NodeID t) const {
|
||||||
|
@ -62,9 +62,9 @@ public:
|
|||||||
reply.content += ("\"status_message\":");
|
reply.content += ("\"status_message\":");
|
||||||
reply.content += "\"Found route between points\",";
|
reply.content += "\"Found route between points\",";
|
||||||
unsigned streetID = sEngine->GetNameIDForOriginDestinationNodeID(phantomNodes->startNode1, phantomNodes->startNode2);
|
unsigned streetID = sEngine->GetNameIDForOriginDestinationNodeID(phantomNodes->startNode1, phantomNodes->startNode2);
|
||||||
startPointName = sEngine->GetEscapedNameForNameID(streetID);
|
startPointName = (0 == streetID ? "Unnamed origin street" : sEngine->GetEscapedNameForNameID(streetID) );
|
||||||
streetID = sEngine->GetNameIDForOriginDestinationNodeID(phantomNodes->targetNode1, phantomNodes->targetNode2);
|
streetID = sEngine->GetNameIDForOriginDestinationNodeID(phantomNodes->targetNode1, phantomNodes->targetNode2);
|
||||||
endPointName = sEngine->GetEscapedNameForNameID(streetID);
|
endPointName = (0 == streetID ? "Unnamed destination street" : sEngine->GetEscapedNameForNameID(streetID) );
|
||||||
|
|
||||||
routeInstructionString += "[\"Head ";
|
routeInstructionString += "[\"Head ";
|
||||||
_Coordinate tmpCoord;
|
_Coordinate tmpCoord;
|
||||||
|
Loading…
Reference in New Issue
Block a user