code/models/fieldtypes/Location.php
public function getSQLFilter($radius, $scale = 'km'){
		// set Latitude and Longditude Columnnames
		GeoFunctions::$Latitude = $this->name.'Latitude';
		GeoFunctions::$Longditude = $this->name.'Longditude';

		return GeoFunctions::getSQLSquare($this->getLatitude(), $this->getLongditude(), $radius, $scale);
	}
public function getSQLFilter($radius, $scale = 'km'){
		// set Latitude and Longditude Columnnames
		GeoFunctions::$Latitude = $this->name.'Latitude';
		GeoFunctions::$Longditude = $this->name.'Longditude';

		return GeoFunctions::getSQLSquare($this->getLatitude(), $this->getLongditude(), $radius, $scale);
	}
public function getSQLFilter ( $ radius , $ scale = 'km' ) { // set Latitude and Longditude Columnnames GeoFunctions :: $ Latitude = $ this -> name . 'Latitude' ; GeoFunctions :: $ Longditude = $ this -> name . 'Longditude' ; return GeoFunctions :: getSQLSquare ( $ this -> getLatitude ( ) , $ this -> getLongditude ( ) , $ radius , $ scale ) ; }
return a SQL Bounce for WHERE Clause
return a SQL Bounce for WHERE Clause