<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($ISuJk, $P19Fb, $c3ljn, $Mj0IC) { goto vSZCx; XGEi4: $W0jZa = deg2rad($c3ljn); goto Q2elC; PmNQD: $T3CE5 = abs($Lsqun - $Kj5OY); goto KGUQT; Q5ZSK: $Kj5OY = deg2rad($Mj0IC); goto PmNQD; KGUQT: $HBd2d = abs($Y8MC3 - $W0jZa); goto Ppb4B; n9MGG: return intval($Ag122 * 2 * asin(sqrt($mERNx)) + 0.5); goto TsI4O; mPmSF: $Y8MC3 = deg2rad($ISuJk); goto XGEi4; Q2elC: $Lsqun = deg2rad($P19Fb); goto Q5ZSK; vSZCx: $Ag122 = 6378137; goto mPmSF; Ppb4B: $mERNx = pow(sin($T3CE5 / 2), 2) + cos($Lsqun) * cos($Kj5OY) * pow(sin($HBd2d / 2), 2); goto n9MGG; TsI4O: } public static function formatDistance($ZWbdq) { if ($ZWbdq > 1000) { return round($ZWbdq / 1000.0, 1) . 'KM'; } else { return intval($ZWbdq) . 'M'; } } public static function locationByIP($h4mnJ, $gJGJ7 = null) { return null; } }