forked from organicmaps/organicmaps
Added AddressInfo::FormatTypes()
This commit is contained in:
parent
bb9a614eda
commit
708e96f839
2 changed files with 13 additions and 0 deletions
|
@ -426,3 +426,15 @@ string Framework::AddressInfo::FormatAddress() const
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
string Framework::AddressInfo::FormatTypes() const
|
||||
{
|
||||
string result;
|
||||
for (size_t i = 0; i < m_types.size(); ++i)
|
||||
{
|
||||
if (!result.empty())
|
||||
result += ' ';
|
||||
result += m_types[i];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -222,6 +222,7 @@ public:
|
|||
vector<string> m_types;
|
||||
|
||||
string FormatAddress() const;
|
||||
string FormatTypes() const;
|
||||
};
|
||||
|
||||
/// Get address information for point on map.
|
||||
|
|
Loading…
Add table
Reference in a new issue