• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/google/repository.php
  • Класс: BitrixLocationSourceGoogleRepository
  • Вызов: Repository::findByText
public function findByText(string $query, string $languageId)
{
	if($query == '')
	{
		return null;
	}

	return $this->find(
		new RequestersByQueryRequester($this->httpClient, $this->cachePool),
		new ConvertersByQueryConverter($languageId),
		[
			'query' => $query,
			'language' => $this->googleSource->convertLang($languageId)
		]
	);
}