add test case for ignoring unknown restrictions

This commit is contained in:
karenzshea
2016-08-31 09:52:05 -04:00
parent d8e444e620
commit 146eb3a20e
2 changed files with 29 additions and 2 deletions
+5 -2
View File
@@ -96,10 +96,13 @@ RestrictionParser::TryParse(const osmium::Relation &relation) const
if (value.find("only_") == 0)
{
is_only_restriction = true;
} else if (value.find("no_") == 0)
}
else if (value.find("no_") == 0)
{
is_only_restriction = false;
} else // unrecognized value type
}
else // unrecognized value type
{
return {};
}