| 155 | } |
| 156 | |
| 157 | bool PassesRestriction(Graph::Edge const & e, FunctionalRoadClass restriction, FormOfWay formOfWay, int frcThreshold, |
| 158 | RoadInfoGetter & infoGetter) |
| 159 | { |
| 160 | if (e.IsFake() || restriction == FunctionalRoadClass::NotAValue) |
| 161 | return true; |
| 162 | |
| 163 | auto const frc = HighwayClassToFunctionalRoadClass(infoGetter.Get(e.GetFeatureId()).m_hwClass); |
| 164 | return static_cast<int>(frc) <= static_cast<int>(restriction) + frcThreshold; |
| 165 | } |
| 166 | |
| 167 | bool PassesRestrictionV3(Graph::Edge const & e, FunctionalRoadClass functionalRoadClass, FormOfWay formOfWay, |
| 168 | RoadInfoGetter & infoGetter, Score & score) |
no test coverage detected