[metadata] Assign information about available internet for feature.

This commit is contained in:
vng 2015-06-18 14:26:37 +03:00 committed by Alex Zolotarev
parent fddad64d85
commit 19f3285287

View file

@ -142,11 +142,14 @@ void FeatureType::ParseMetadata() const
if (m_bMetadataParsed) return;
m_pLoader->ParseMetadata();
if (HasInternet())
m_metadata.Add(Metadata::FMD_INTERNET, "wlan");
m_bMetadataParsed = true;
}
namespace
{
template <class TCont>
@ -353,6 +356,8 @@ string FeatureType::GetRoadNumber() const
bool FeatureType::HasInternet() const
{
ParseTypes();
bool res = false;
ForEachType([&res](uint32_t type)