<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($z5oay, $WmnyY, $WIutp, $AbbCR) { goto uSgy0; L40Vx: $n79L4 = deg2rad($WmnyY); goto WI2na; s5qml: $ZLjtx = deg2rad($WIutp); goto L40Vx; qk9SN: $znzu0 = abs($Kpb6A - $ZLjtx); goto sdqax; oAffG: $Kpb6A = deg2rad($z5oay); goto s5qml; ktm5J: $WUEim = abs($n79L4 - $frAdM); goto qk9SN; Gthu3: return intval($RYw5P * 2 * asin(sqrt($K5AwQ)) + 0.5); goto W7tM2; uSgy0: $RYw5P = 6378137; goto oAffG; sdqax: $K5AwQ = pow(sin($WUEim / 2), 2) + cos($n79L4) * cos($frAdM) * pow(sin($znzu0 / 2), 2); goto Gthu3; WI2na: $frAdM = deg2rad($AbbCR); goto ktm5J; W7tM2: } public static function formatDistance($eTyp7) { if ($eTyp7 > 1000) { return round($eTyp7 / 1000.0, 1) . 'KM'; } else { return intval($eTyp7) . 'M'; } } public static function locationByIP($RsqtJ, $bOB5d = null) { return null; } }