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
Parameter | Description | Version |
---|---|---|
$ip | IP address | |
$lang | Language ID |
Examples
© «Bitrix24», 2001-2024
Up