From 8462d6d2c46a1ce8b7b39b9f87333100daf79198 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Sun, 24 Jan 2016 21:52:53 +0300 Subject: [PATCH] [ios] Added address in search result. --- .../MapViewControls/Search/TableView/MWMSearchCommonCell.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.mm b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.mm index fe99b5edd2..1f6d8bbfbc 100644 --- a/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.mm +++ b/iphone/Maps/Classes/CustomViews/MapViewControls/Search/TableView/MWMSearchCommonCell.mm @@ -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)