[ios] Added address in search result.

This commit is contained in:
VladiMihaylenko 2016-01-24 21:52:53 +03:00 committed by Sergey Yershov
parent c881278e51
commit 8462d6d2c4

View file

@ -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)