| 165 | } |
| 166 | |
| 167 | bool PassesRestrictionV3(Graph::Edge const & e, FunctionalRoadClass functionalRoadClass, FormOfWay formOfWay, |
| 168 | RoadInfoGetter & infoGetter, Score & score) |
| 169 | { |
| 170 | CHECK(!e.IsFake(), ("Edges should not be fake:", e)); |
| 171 | auto const frcScore = GetFrcScore(e, functionalRoadClass, infoGetter); |
| 172 | if (!frcScore) |
| 173 | return false; |
| 174 | |
| 175 | score = *frcScore; |
| 176 | Score constexpr kScoreForFormOfWay = 25; |
| 177 | if (formOfWay == FormOfWay::Roundabout && infoGetter.Get(e.GetFeatureId()).m_isRoundabout) |
| 178 | score += kScoreForFormOfWay; |
| 179 | |
| 180 | return true; |
| 181 | } |
| 182 | |
| 183 | bool ConformLfrcnp(Graph::Edge const & e, FunctionalRoadClass lowestFrcToNextPoint, int frcThreshold, |
| 184 | RoadInfoGetter & infoGetter) |
no test coverage detected