| 125 | } |
| 126 | |
| 127 | void GetCityBoundariesInRectForTesting(CitiesBoundariesTable const & table, m2::RectD const & rect, |
| 128 | vector<uint32_t> & featureIds) |
| 129 | { |
| 130 | featureIds.clear(); |
| 131 | for (auto const & kv : table.m_table) |
| 132 | { |
| 133 | for (auto const & cb : kv.second) |
| 134 | { |
| 135 | if (rect.IsIntersect(cb.m_bbox.ToRect())) |
| 136 | { |
| 137 | featureIds.push_back(kv.first); |
| 138 | break; |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | } // namespace search |
no test coverage detected