Parsing traffic lights from input data

This commit is contained in:
DennisOSRM 2012-02-28 15:31:47 +01:00
parent 8839a5eb3f
commit ade2ecdb8e
2 changed files with 8 additions and 0 deletions

View File

@ -226,6 +226,9 @@ private:
if("" != keyVals.Find("barrier"))
n.bollard = true;
if("traffic_signals" == keyVals.Find("highway"))
n.trafficLight = true;
if(!(*addressCallback)(n, keyVals))
std::cerr << "[PBFParser] adress not parsed" << std::endl;

View File

@ -261,6 +261,11 @@ private:
node.bollard = true;
}
}
if ( xmlStrEqual( k, ( const xmlChar* ) "highway" ) == 1 ) {
if ( xmlStrEqual( value, ( const xmlChar* ) "traffic_lights" ) == 1 ){
node.trafficLight = true;
}
}
}
if ( k != NULL )
xmlFree( k );