From 2a69582cc78691d1acf872764258a39cc9136009 Mon Sep 17 00:00:00 2001 From: vng Date: Sat, 15 Jan 2011 02:57:04 +0200 Subject: [PATCH] Add house numbers for features with empty names. --- indexer/osm2type.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indexer/osm2type.cpp b/indexer/osm2type.cpp index 5b1092610c..e0bc33989e 100644 --- a/indexer/osm2type.cpp +++ b/indexer/osm2type.cpp @@ -499,7 +499,11 @@ namespace ftype { ++m_count; // do not call is_name_tag(k), but exactly "name" tag - if (k == "name" && m_name.empty()) + if (m_name.empty() && k == "name") + m_name = v; + + // add house number as name + if (m_name.empty() && k == "addr:housenumber") m_name = v; if (k == "layer" && m_layer == 0)