<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class LBSUtil { public static function distance($LdyS4, $gdign, $q6by6, $laIT_) { goto iLHRF; VWCsJ: $Yd9eI = deg2rad($LdyS4); goto SCJ31; iLHRF: $yuNra = 6378137; goto VWCsJ; mPIiI: $xtvnD = deg2rad($gdign); goto jqfO4; clVRh: $D4fz6 = abs($xtvnD - $k9G64); goto dwmUY; dwmUY: $zOtiC = abs($Yd9eI - $t0yUS); goto HepBf; SCJ31: $t0yUS = deg2rad($q6by6); goto mPIiI; HepBf: $UwJHc = pow(sin($D4fz6 / 2), 2) + cos($xtvnD) * cos($k9G64) * pow(sin($zOtiC / 2), 2); goto UjWX1; jqfO4: $k9G64 = deg2rad($laIT_); goto clVRh; UjWX1: return intval($yuNra * 2 * asin(sqrt($UwJHc)) + 0.5); goto dYueo; dYueo: } public static function formatDistance($gA9c1) { if ($gA9c1 > 1000) { return round($gA9c1 / 1000.0, 1) . 'KM'; } else { return intval($gA9c1) . 'M'; } } public static function locationByIP($L6lVN, $BYzWI = null) { return null; } }