<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($u2xO_, $BJ36T, $XjA3A, $jgErb) { goto PSAlo; PSAlo: $XuMyB = 6378137; goto FX0YS; e7t_l: $N2mui = deg2rad($jgErb); goto cYut6; Dw01V: $IXn_O = deg2rad($XjA3A); goto unmBJ; MyW_y: return intval($XuMyB * 2 * asin(sqrt($NygAp)) + 0.5); goto qroof; xLfKS: $NygAp = pow(sin($X96tW / 2), 2) + cos($vjLmk) * cos($N2mui) * pow(sin($rFujb / 2), 2); goto MyW_y; cYut6: $X96tW = abs($vjLmk - $N2mui); goto rA0t1; unmBJ: $vjLmk = deg2rad($BJ36T); goto e7t_l; FX0YS: $syVzm = deg2rad($u2xO_); goto Dw01V; rA0t1: $rFujb = abs($syVzm - $IXn_O); goto xLfKS; qroof: } public static function formatDistance($J3C30) { if ($J3C30 > 1000) { return round($J3C30 / 1000.0, 1) . 'KM'; } else { return intval($J3C30) . 'M'; } } public static function locationByIP($flpew, $pW0Nz = null) { return null; } }