[search] Add elevation to search result description

Signed-off-by: David Martinez <47610359+dvdmrtnz@users.noreply.github.com>
This commit is contained in:
David Martinez 2024-01-20 14:55:35 +01:00 committed by Viktor Govako
parent e5155b1958
commit c12f22f8cc

View file

@ -300,6 +300,8 @@ void FillDetails(FeatureType & ft, Result::Details & details)
auto const fee = feature::GetLocalizedFeeType(typesHolder);
auto const elevation = feature::FormatElevation(ft.GetMetadata(feature::Metadata::FMD_ELE));
std::string description;
auto const append = [&description](std::string_view sv)
@ -315,6 +317,7 @@ void FillDetails(FeatureType & ft, Result::Details & details)
append(airportIata);
append(roadShield);
append(brand);
append(elevation);
append(cuisine);
append(fee);