mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-28 08:53:37 +00:00
[core] Switch to ankerl::unordered_dense
Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
@@ -732,11 +732,12 @@ Result Ranker::MakeResult(RankerResult const & rankerResult, bool needAddress, b
|
||||
case RankerResult::Type::Building:
|
||||
res.FromFeature(rankerResult.GetID(), rankerResult.GetBestType(),
|
||||
rankerResult.GetBestType(&m_params.m_preferredTypes), rankerResult.m_details);
|
||||
|
||||
|
||||
// Extract branch metadata if available
|
||||
if (rankerResult.GetID().IsValid())
|
||||
{
|
||||
m_dataSource.ReadFeature([&](FeatureType & ft) {
|
||||
m_dataSource.ReadFeature([&](FeatureType & ft)
|
||||
{
|
||||
auto const branch = ft.GetMetadata(feature::Metadata::FMD_BRANCH);
|
||||
if (!branch.empty())
|
||||
res.SetBranch(std::string(branch));
|
||||
|
||||
Reference in New Issue
Block a user