working version

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-12-11 15:52:18 +01:00
parent bd179da7a4
commit 29df6cd942
3 changed files with 26 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
#include "editor/xml_feature.hpp"
//#include "editor/feature_type_to_osm.hpp"
#include "editor/feature_type_to_osm.hpp"
#include "editor/keys_to_remove.hpp"
#include "indexer/classificator.hpp"
@@ -642,6 +642,14 @@ void XMLFeature::RemoveTag(string_view key)
void XMLFeature::SetOSMTagsForType(uint32_t type)
{
TypeToOSMTranslator translator = getOSMTranslator();
auto result = translator.osmTagsFromType(type);
ASSERT(!result.empty(), ());
ASSERT_EQUAL(result[0].key, "amenity", ());
ASSERT_EQUAL(result[0].value, "restaurant", ());
if (ftypes::IsRecyclingCentreChecker::Instance()(type))
{
SetTagValue("amenity", "recycling");