• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/import/compiler/compiler.php
  • Класс: BitrixSaleLocationImportCompileris
  • Вызов: is::checkIsAllowedCityVillage
private function checkIsAllowedCityVillage($item)
{
	$baseType = $this->sysMaps['FIAS2BASETYPE'][$item['SHORTNAME']];

	//if($baseType == 'CITY' || $baseType == 'VILLAGE')
	//	$this->output('Doubtfull cityvillage: '.$item['FORMALNAME'].' ('.$item['SHORTNAME'].')');

	$skip = array('5544bf6a-0ec1-4b5f-bbc5-49294f71de16'/*тягловая подстанция*/, '22a77f13-3764-41dc-aa23-db680b03ef5d'/*6 км АЗС*/, '3f2ab130-274e-4fd6-b611-a94467b04f57'/*Велтон Парк duplicate*/, '762758bb-18b9-440f-bc61-8e1e77ff3fd8', /*Московский посёлок, not exists*/);

	return 	($baseType == 'CITY' || $baseType == 'VILLAGE') && 
			(
				$this->fiasToBaseType[$baseType][$item['SHORTNAME']]['U'] /*code is in a list of allowed types for export*/
				||
				isset($this->fias2yandexCityMap[$item['AOGUID']] /*code is present in yandex2fias city map*/
			) &&
			!in_array($item['AOGUID'], $skip) // not one of those forbidden broken items
			);
}