MCPcopy Create free account
hub / github.com/comaps/comaps / IsCarDesignatedHighway

Function IsCarDesignatedHighway

generator/osm2type.cpp:1056–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056bool IsCarDesignatedHighway(uint32_t type)
1057{
1058 switch (ftypes::IsWayChecker::Instance().GetSearchRank(type))
1059 {
1060 // See search rank / designated list in IsWayChecker
1061 case ftypes::IsWayChecker::Motorway:
1062 case ftypes::IsWayChecker::Regular:
1063 case ftypes::IsWayChecker::Minors: return true;
1064 default: return false;
1065 }
1066}
1067
1068bool IsBicycleDesignatedHighway(uint32_t type)
1069{

Callers 1

PostprocessElementFunction · 0.85

Calls 1

GetSearchRankMethod · 0.80

Tested by

no test coverage detected