Parsing traffic lights from input data
This commit is contained in:
parent
8839a5eb3f
commit
ade2ecdb8e
@ -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;
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user