• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/google/converters/baseconverter.php
  • Класс: BitrixLocationSourceGoogleConvertersBaseConverter
  • Вызов: BaseConverter::convertTypes
public function convertTypes(array $types, string $typesClass): int
{
	$result = $typesClass::UNKNOWN;

	foreach($types as $type)
	{
		$result = PlaceTypeConverter::convert($type);

		if(!$typesClass::isValueExist($result))
		{
			$result = $typesClass::UNKNOWN;
			continue;
		}

		if($result !== $typesClass::UNKNOWN)
		{
			break;
		}
	}

	return $result;
}