3namespace Bitrix\Location\Service;
5use Bitrix\Location\Exception\RuntimeException;
6use Bitrix\Location\Common\BaseService;
8use Bitrix\Location\Entity;
9use Bitrix\Location\Repository\LocationRepository;
10use Bitrix\Location\Infrastructure\Service\Config;
11use Bitrix\Location\Common\RepositoryTrait;
44 $result = $this->repository->findById($locationId, $languageId, $searchScope);
69 $result = $this->repository->findByExternalId($externalId, $sourceCode, $languageId, $searchScope);
97 return $this->repository->findByCoords(
149 $result = $this->repository->findParents(
$location, $languageId, $searchScope);
167 return $this->repository->save(
$location);
178 return $this->repository->delete(
$location);
188 $this->setRepository(
$config->get(
'repository'));
202 return $this->repository->saveParents($parents);
processException(\Exception $exception)
findByCoords(float $lat, float $lng, int $zoom, string $languageId)
findByExternalId(string $externalId, string $sourceCode, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
findById(int $locationId, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
findParents(Entity\Location $location, string $languageId, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
save(Entity\Location $location)
saveParents(Entity\Location\Parents $parents)
autocomplete(array $params, int $searchScope=LOCATION_SEARCH_SCOPE_ALL)
__construct(Config\Container $config)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
const LOCATION_SEARCH_SCOPE_EXTERNAL
const LOCATION_SEARCH_SCOPE_ALL
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']