All kinds of barriers get parsed now, not only bollards.

This commit is contained in:
DennisOSRM 2012-02-28 15:15:08 +01:00
parent d61ece7891
commit 8839a5eb3f
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ private:
keyVals.Add(key, value); keyVals.Add(key, value);
denseTagIndex += 2; denseTagIndex += 2;
} }
if("bollard" == keyVals.Find("barrier")) if("" != keyVals.Find("barrier"))
n.bollard = true; n.bollard = true;
if(!(*addressCallback)(n, keyVals)) if(!(*addressCallback)(n, keyVals))

View File

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