[generator] Add airport iata for airports only.

This commit is contained in:
tatiana-yan 2020-02-03 18:13:59 +03:00 committed by Maksim Andrianov
parent 9989ae9dc2
commit a1a15b4c4d

View file

@ -281,6 +281,9 @@ string MetadataTagProcessorImpl::ValidateAndFormat_wikipedia(string v) const
string MetadataTagProcessorImpl::ValidateAndFormat_airport_iata(string const & v) const
{
if (!ftypes::IsAirportChecker::Instance()(m_params.m_types))
return {};
if (v.size() != 3)
return {};