forked from organicmaps/organicmaps
Add email into meta information
This commit is contained in:
parent
8ed8c5969f
commit
fef85efec2
2 changed files with 12 additions and 1 deletions
|
@ -87,6 +87,12 @@ public:
|
|||
if (!value.empty())
|
||||
m_params.GetMetadata().Add(feature::FeatureMetadata::FMD_TURN_LANES_BACKWARD, value);
|
||||
}
|
||||
else if (k == "email" || k == "contact:email")
|
||||
{
|
||||
string const & value = ValidateAndFormat_email(v);
|
||||
if (!value.empty())
|
||||
m_params.GetMetadata().Add(feature::FeatureMetadata::FMD_EMAIL, value);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -157,5 +163,9 @@ protected:
|
|||
{
|
||||
return v;
|
||||
}
|
||||
string ValidateAndFormat_email(string const & v) const
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
@ -28,7 +28,8 @@ namespace feature
|
|||
FMD_ELE,
|
||||
FMD_TURN_LANES,
|
||||
FMD_TURN_LANES_FORWARD,
|
||||
FMD_TURN_LANES_BACKWARD
|
||||
FMD_TURN_LANES_BACKWARD,
|
||||
FMD_EMAIL
|
||||
};
|
||||
|
||||
bool Add(EMetadataType type, string const & s)
|
||||
|
|
Loading…
Add table
Reference in a new issue