<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($i4W9V, $FqPmL, $J4j1j, $cH5PE) { goto GoWlg; sQK6_: $Zsk88 = deg2rad($cH5PE); goto NW827; VArTG: $kQCUX = abs($bd917 - $wl0ZK); goto e0NGB; bXR6S: $aqpde = deg2rad($FqPmL); goto sQK6_; GoWlg: $Ss15O = 6378137; goto j_MoQ; j_MoQ: $bd917 = deg2rad($i4W9V); goto v0Ct6; mbzPk: return intval($Ss15O * 2 * asin(sqrt($jFZ6i)) + 0.5); goto f9Ooq; e0NGB: $jFZ6i = pow(sin($lOCTe / 2), 2) + cos($aqpde) * cos($Zsk88) * pow(sin($kQCUX / 2), 2); goto mbzPk; v0Ct6: $wl0ZK = deg2rad($J4j1j); goto bXR6S; NW827: $lOCTe = abs($aqpde - $Zsk88); goto VArTG; f9Ooq: } public static function formatDistance($CZ1SN) { if ($CZ1SN > 1000) { return round($CZ1SN / 1000.0, 1) . 'KM'; } else { return intval($CZ1SN) . 'M'; } } public static function locationByIP($RVEj2, $XcezL = null) { return null; } }