Skip to content

Commit

Permalink
set name according to postal code if name is unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus committed Nov 7, 2018
1 parent 794503e commit 85b8446
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/geocoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ void Geocoder::get_name(long long id, std::string &title, std::string &full, siz
if (neng) name_en = neng;
}

if (name.empty() && levels_in_title > 0) name=get_postal_code(id);
if (name.empty()) name=" ";

toadd = std::string();
Expand Down

0 comments on commit 85b8446

Please sign in to comment.