| 54 | } |
| 55 | |
| 56 | std::optional<std::string> WikidataHelper::GetWikidataId(uint32_t featureId) const |
| 57 | { |
| 58 | auto const itFeatureIdToOsmId = m_featureIdToOsmId.find(featureId); |
| 59 | if (itFeatureIdToOsmId == std::end(m_featureIdToOsmId)) |
| 60 | return {}; |
| 61 | |
| 62 | auto const osmId = itFeatureIdToOsmId->second; |
| 63 | auto const itOsmIdToWikidataId = m_osmIdToWikidataId.find(osmId); |
| 64 | return itOsmIdToWikidataId == std::end(m_osmIdToWikidataId) ? std::optional<std::string>() |
| 65 | : itOsmIdToWikidataId->second; |
| 66 | } |
| 67 | |
| 68 | std::string DescriptionsCollectionBuilderStat::LangStatisticsToString() const |
| 69 | { |