Allowing toll_booth's to be bypassed.

This commit is contained in:
DennisOSRM 2012-03-13 16:03:43 +01:00
parent 26f3c51cf0
commit 6d74ae1b84
2 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ private:
denseTagIndex += 2;
}
std::string barrierValue = keyVals.Find("barrier");
if(0 < barrierValue.length() && "border_control" != barrierValue)
if(0 < barrierValue.length() && "border_control" != barrierValue && "toll_booth" != barrierValue)
n.bollard = true;
if("traffic_signals" == keyVals.Find("highway"))

View File

@ -256,7 +256,7 @@ private:
}
}
if ( xmlStrEqual( k, ( const xmlChar* ) "barrier" ) == 1 ) {
if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "border_control" ) != 1){
if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "border_control" ) != 1 && xmlStrEqual( value, ( const xmlChar* ) "toll_booth" ) != 1){
node.bollard = true;
}
}