| 146 | } |
| 147 | |
| 148 | HierarchyLinker::Node::Ptrs HierarchyLinker::Link() |
| 149 | { |
| 150 | for (auto & node : m_nodes) |
| 151 | { |
| 152 | auto const & place = node->GetData(); |
| 153 | auto const parentPlace = FindPlaceParent(place); |
| 154 | if (!parentPlace) |
| 155 | continue; |
| 156 | |
| 157 | tree_node::Link(node, parentPlace); |
| 158 | } |
| 159 | return m_nodes; |
| 160 | } |
| 161 | |
| 162 | HierarchyEntryEnricher::HierarchyEntryEnricher(std::string const & osm2FtIdsPath, std::string const & countryFullPath) |
| 163 | : m_featureGetter(countryFullPath) |
no test coverage detected