ignored edge type, i.e. ferry connections, can now be excluded from
nearest neighbor lookup
This commit is contained in:
parent
d7f8eafe2d
commit
79a989e504
@ -126,7 +126,7 @@ void EdgeBasedGraphFactory::Run() {
|
|||||||
++secondRestrictionIterator;
|
++secondRestrictionIterator;
|
||||||
} while(u == secondRestrictionIterator->fromNode);
|
} while(u == secondRestrictionIterator->fromNode);
|
||||||
}
|
}
|
||||||
if(_nodeBasedGraph->EndEdges(v) == _nodeBasedGraph->BeginEdges(v) + 1 && _nodeBasedGraph->GetEdgeData(e1).type != 14 ) {
|
if(_nodeBasedGraph->EndEdges(v) == _nodeBasedGraph->BeginEdges(v) + 1 && _nodeBasedGraph->GetEdgeData(e1).type != INT_MAX) {
|
||||||
EdgeBasedNode currentNode;
|
EdgeBasedNode currentNode;
|
||||||
currentNode.nameID = _nodeBasedGraph->GetEdgeData(e1).nameID;
|
currentNode.nameID = _nodeBasedGraph->GetEdgeData(e1).nameID;
|
||||||
currentNode.lat1 = inputNodeInfoList[u].lat;
|
currentNode.lat1 = inputNodeInfoList[u].lat;
|
||||||
@ -186,7 +186,7 @@ void EdgeBasedGraphFactory::Run() {
|
|||||||
EdgeBasedEdge newEdge(edgeBasedSource, edgeBasedTarget, v, nameID, distance, true, false, turnInstruction);
|
EdgeBasedEdge newEdge(edgeBasedSource, edgeBasedTarget, v, nameID, distance, true, false, turnInstruction);
|
||||||
edgeBasedEdges.push_back(newEdge);
|
edgeBasedEdges.push_back(newEdge);
|
||||||
|
|
||||||
if(_nodeBasedGraph->GetEdgeData(e1).type != 14 ) {
|
if(_nodeBasedGraph->GetEdgeData(e1).type != INT_MAX ) {
|
||||||
EdgeBasedNode currentNode;
|
EdgeBasedNode currentNode;
|
||||||
|
|
||||||
currentNode.nameID = _nodeBasedGraph->GetEdgeData(e1).nameID;
|
currentNode.nameID = _nodeBasedGraph->GetEdgeData(e1).nameID;
|
||||||
|
@ -264,6 +264,9 @@ struct Settings {
|
|||||||
return speedProfile.at(param).first;
|
return speedProfile.at(param).first;
|
||||||
}
|
}
|
||||||
int GetHighwayTypeID(const std::string & param) const {
|
int GetHighwayTypeID(const std::string & param) const {
|
||||||
|
if(param == excludeFromGrid) {
|
||||||
|
return INT_MAX;
|
||||||
|
}
|
||||||
if(speedProfile.find(param) == speedProfile.end()) {
|
if(speedProfile.find(param) == speedProfile.end()) {
|
||||||
DEBUG("There is a bug with highway \"" << param << "\"");
|
DEBUG("There is a bug with highway \"" << param << "\"");
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user