forked from organicmaps/organicmaps
[ios] Added address in search result.
This commit is contained in:
parent
c881278e51
commit
8462d6d2c4
1 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,11 @@
|
|||
{
|
||||
[super config:result];
|
||||
self.typeLabel.text = @(result.GetFeatureType()).capitalizedString;
|
||||
self.locationLabel.text = @(result.GetRegionString());
|
||||
search::AddressInfo info {};
|
||||
info.MakeFrom(result);
|
||||
string const address = info.FormatAddress();
|
||||
string const location = address.empty() ? result.GetRegionString() : address;
|
||||
self.locationLabel.text = @(location.c_str());
|
||||
[self.locationLabel sizeToFit];
|
||||
|
||||
if (!forHeight)
|
||||
|
|
Loading…
Add table
Reference in a new issue