private function ip2location() {
		$db = new Database( $this->opts['ip2location_db'], $this->opts['ip2location_method'] );
		try {
			$record = $db->lookup( $this->ip, Database::ALL );

			return $this->cleanResponse( RecordConverter::ip2locationRecord( $record ) );
		} catch ( \Exception $e ) {
			throw new GeotException( $e->getMessage() );
		}
	}
private function ip2location() {
		$db = new Database( $this->opts['ip2location_db'], $this->opts['ip2location_method'] );
		try {
			$record = $db->lookup( $this->ip, Database::ALL );

			return $this->cleanResponse( RecordConverter::ip2locationRecord( $record ) );
		} catch ( \Exception $e ) {
			throw new GeotException( $e->getMessage() );
		}
	}
private function ip2location ( ) { $ db = new Database ( $ this -> opts [ 'ip2location_db' ] , $ this -> opts [ 'ip2location_method' ] ) ; try { $ record = $ db -> lookup ( $ this -> ip , Database :: ALL ) ; return $ this -> cleanResponse ( RecordConverter :: ip2locationRecord ( $ record ) ) ; } catch ( \ Exception $ e ) { throw new GeotException ( $ e -> getMessage ( ) ) ; } }
Use ip2location database
@return GeotRecord
@throws GeotException
Use ip2location database