Keys →
Functions ↓
function llLocateTimezone ( $lat, $long, $tzInfo, $ctry='' ) {#-k geo#- given lat & long, find the tz from the global tzInfo array#- (loaded from JSON array in 'timezoneData.js') $d = 9999999; foreach ($tzInfo as $key => $tz) { if (strlen($ctry)) { if ($tz['cc'] == $ctry) { $dist[$key] = llDistance ( $lat, $long, $tz['lat'], $tz['lon'] ); if ($dist[$key] < $d) { $d = $dist[$key]; $dk = $key; } } } else { $dist[$key] = llDistance ( $lat, $long, $tz['lat'], $tz['lon'] ); if ($dist[$key] < $d) { $d = $dist[$key]; $dk = $key; } } } return $dk; }?>