• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/osm/osmsource.php
  • Класс: BitrixLocationSourceOsmOsmSource
  • Вызов: OsmSource::getJSParams
public function getJSParams(): array
{
	$token = $this->getOsmToken();

	return [
		'serviceUrl' => $this->getOsmApiUrl(),
		'mapServiceUrl' => $this->getOsmMapServiceUrl(),
		'token' => $token ? $token->getToken() : null,
		'useGeocodingService' => true,
		'hostName' => $this->getOsmHostName()
	];
}