• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/osm/converters/baseconverter.php
  • Класс: BitrixLocationSourceOsmConvertersBaseConverter
  • Вызов: BaseConverter::getLocationTypeField
private function getLocationTypeField(AddressFieldCollection $addressFieldCollection): ?Field
{
	/** @var Field[] $items */
	$items = array_reverse($addressFieldCollection->getSortedItems());

	foreach ($items as $item)
	{
		if (!LocationType::isValueExist($item->getType()))
		{
			continue;
		}

		return $item;
	}

	return null;
}