diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-03-15 19:26:16 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:56:30 +0300 |
commit | 2574479255d234b9f8722bcac442a9030d0e92fe (patch) | |
tree | 679dca80c996dfb6964075219045f31ed5166a71 /indexer/map_object.cpp | |
parent | 4a2c4cfddeb2a2c10a7a1013a8c87175c079b6eb (diff) |
[omim] [editor] Added MapObject::GetCuisines method. Renamed old GetCuisines to GetLocalizedCuisines.
Diffstat (limited to 'indexer/map_object.cpp')
-rw-r--r-- | indexer/map_object.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indexer/map_object.cpp b/indexer/map_object.cpp index 9d956ab7f2..2a35265110 100644 --- a/indexer/map_object.cpp +++ b/indexer/map_object.cpp @@ -126,12 +126,19 @@ Internet MapObject::GetInternet() const vector<string> MapObject::GetCuisines() const { + vector<string> cuisines; + Cuisines::Instance().Parse(m_metadata.Get(feature::Metadata::FMD_CUISINE), cuisines); + return cuisines; +} + +vector<string> MapObject::GetLocalizedCuisines() const +{ vector<string> localized; Cuisines::Instance().ParseAndLocalize(m_metadata.Get(feature::Metadata::FMD_CUISINE), localized); return localized; } -string MapObject::FormatCuisines() const { return strings::JoinStrings(GetCuisines(), " • "); } +string MapObject::FormatCuisines() const { return strings::JoinStrings(GetLocalizedCuisines(), " • "); } string MapObject::GetOpeningHours() const { |