• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/geometry/converter/manager.php
  • Класс: BitrixLocationGeometryConverterManager
  • Вызов: Manager::makeConverter
static function makeConverter(string $format): Converter
{
	$map = [
		self::FORMAT_GEOJSON => GeoJsonConverter::class,
		self::FORMAT_ARRAY => ArrayConverter::class,
	];

	if (!isset($map[$format]))
	{
		throw new SystemException('Converter has not been found');
	}

	return new $map[$format];
}