Documentation

getGeoPosition

array|null public static
\Bitrix\Main\Service\GeoIp\Manager::getGeoPosition(
 string $ip = '',
 string $lang = ''
);

Static method returns array with latitude and longitude as follows:

Array(
                'latitude' => 54.12342,
                'longitude' => 20.34567,
            );

Parameters

ParameterDescriptionVersion
$ipIP address
$langLanguage ID

Examples



© «Bitrix24», 2001-2024