public static function GetLocation()
 {
     if ($strIP = self::IPAddress()) {
         $iNumber = self::IPAddressToIPNumber($strIP);
         if (self::GetProvider() == 'IPDBCOM') {
             return IpToLocation::get()->filter(array('IPFrom:LessThanOrEqual' => $iNumber))->sort('IPFrom DESC')->first();
         } else {
             return IpToLocation::get()->filter(array('IPFrom:LessThanOrEqual' => $iNumber, 'IPTo:GreaterThanOrEqual' => $iNumber))->first();
         }
     }
     return null;
 }
 public function getLocation($ip, $ipNumber)
 {
     $location = IpToLocation::get()->filter(array('IPFrom:LessThanOrEqual' => $ipNumber, 'IPTo:GreaterThanOrEqual' => $ipNumber, 'Type' => ContinentalContentUtils::IPType($ip) == 'ipv4' ? 'IpV4' : 'IpV6'))->first();
     $this->debugLocation($location);
     return $location;
 }