• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/google/repository.php
  • Класс: Bitrix\Location\Source\Google\Repository
  • Вызов: Repository::findByExternalId
public function findByExternalId(string $locationExternalId, string $sourceCode, string $languageId)
{
	if($sourceCode !== self::$sourceCode || $locationExternalId === '')
	{
		return null;
	}

	return $this->find(
		new Requesters\ByIdRequester($this->httpClient, $this->cachePool),
		new Converters\ByIdConverter($languageId),
		[
			'placeid' => $locationExternalId,
			'language' => $this->googleSource->convertLang($languageId)
		]
	);
}