예제 #1
0
 /**
  * Get location from IP.
  *
  * @param string $ip Optional
  * @return array 
  * @static 
  */
 public static function getLocation($ip = null)
 {
     return \Torann\GeoIP\GeoIP::getLocation($ip);
 }
예제 #2
0
 private function getRegionByIp(GeoIP $geoIP)
 {
     return $geoIP->getLocation();
 }