From 8e3f0500294dc0773643cbf8e37178fccd6157e0 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Fri, 25 Aug 2017 14:04:48 +0300 Subject: [PATCH] [generator] Do not copy ref tags from boundaries and other relations --- generator/osm_translator.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generator/osm_translator.hpp b/generator/osm_translator.hpp index 8e8f6168e0..b6cc1a342c 100644 --- a/generator/osm_translator.hpp +++ b/generator/osm_translator.hpp @@ -197,6 +197,7 @@ protected: bool const isBoundary = (type == "boundary") && IsAcceptBoundary(e); bool const processAssociatedStreet = type == "associatedStreet" && TBase::IsKeyTagExists("addr:housenumber") && !TBase::IsKeyTagExists("addr:street"); + bool const isHighway = TBase::IsKeyTagExists("highway"); for (auto const & p : e.tags) { @@ -218,6 +219,10 @@ protected: if (p.first == "place") continue; + // Do not pass "ref" tags from boundaries and other, non-route relations to highways. + if (p.first == "ref" && isHighway) + continue; + TBase::AddCustomTag(p); } }