<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($eEXx7, $tBJUR, $bgi4s, $LZLvz) { goto I6XhY; aHPsq: $kiKC9 = deg2rad($tBJUR); goto wA8ga; OA6YO: $vIW4T = deg2rad($eEXx7); goto Orqp6; I6XhY: $q2CW_ = 6378137; goto OA6YO; by837: $RPUOt = abs($vIW4T - $ydj6n); goto nnWGe; IUYv3: $aXmdr = abs($kiKC9 - $FCMOP); goto by837; nnWGe: $Ee110 = pow(sin($aXmdr / 2), 2) + cos($kiKC9) * cos($FCMOP) * pow(sin($RPUOt / 2), 2); goto Qp3LV; Orqp6: $ydj6n = deg2rad($bgi4s); goto aHPsq; Qp3LV: return intval($q2CW_ * 2 * asin(sqrt($Ee110)) + 0.5); goto FTU7p; wA8ga: $FCMOP = deg2rad($LZLvz); goto IUYv3; FTU7p: } public static function formatDistance($WeFU3) { if ($WeFU3 > 1000) { return round($WeFU3 / 1000.0, 1) . 'KM'; } else { return intval($WeFU3) . 'M'; } } public static function locationByIP($TOxsO, $E1HRj = null) { return null; } }