Example #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);
 }
Example #2
0
 private function getRegionByIp(GeoIP $geoIP)
 {
     return $geoIP->getLocation();
 }