[generator] Fixed some values of places in Germany.

This commit is contained in:
Maksim Andrianov 2020-01-16 17:07:05 +03:00 committed by Daria Volvenkova
parent faadc0828b
commit 5db4dc8878

View file

@ -581,6 +581,18 @@ void PreprocessElement(OsmElement * p)
++iter;
}
}
// We replace a value of 'place' with a value of 'de: place' because most people regard
// places names as 'de: place' defines it.
// TODO(@m.andrianov): A better solution for the future is writing this rule in replaced_tags.txt
// file. But syntax for this isn't supported by relace tags mechanism.
auto const dePlace = p->GetTag("de:place");
if (!dePlace.empty())
{
p->UpdateTag("place", [&](auto & value) {
value = dePlace;
});
}
}
void PostprocessElement(OsmElement * p, FeatureBuilderParams & params)