Skip to content

Commit 85b8446

Browse files
committed
set name according to postal code if name is unavailable
1 parent 794503e commit 85b8446

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/geocoder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ void Geocoder::get_name(long long id, std::string &title, std::string &full, siz
453453
if (neng) name_en = neng;
454454
}
455455

456+
if (name.empty() && levels_in_title > 0) name=get_postal_code(id);
456457
if (name.empty()) name=" ";
457458

458459
toadd = std::string();

0 commit comments

Comments
 (0)