Skip to content

Commit

Permalink
if <accessclass>=no then immediately return. Fixes ticket 41
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed Dec 5, 2011
1 parent afe9157 commit abfb498
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions DataStructures/ExtractorCallBacks.h
Expand Up @@ -103,7 +103,7 @@ class ExtractorCallbacks{
std::string route( w.keyVals.Find("route") );
double maxspeed( atoi(w.keyVals.Find("maxspeed").c_str()) );
std::string access( w.keyVals.Find("access") );
std::string accessClass( w.keyVals.Find(settings.accessTag) );
std::string accessTag( w.keyVals.Find(settings.accessTag) );
std::string man_made( w.keyVals.Find("man_made") );
std::string barrier( w.keyVals.Find("barrier") );

Expand Down Expand Up @@ -135,10 +135,11 @@ class ExtractorCallbacks{
}
}

if("yes" == accessClass || "designated" == accessClass)
if("yes" == accessTag || "designated" == accessTag)
w.access = true;
else if("no" == accessClass)
w.access = false;
else if("no" == accessTag) {
return true;
}

//Let's process oneway property, if speed profile obeys to it
if(oneway != "no" && oneway != "false" && oneway != "0" && settings.obeyOneways) {
Expand Down

0 comments on commit abfb498

Please sign in to comment.