* earth_eccentricity_sq = 2*$earth_flattening - pow($earth_flattening, 2);
* This library is an implementation of UCB CS graduate student, Ka-Ping Yee (http://www.zesty.ca).
* This version has been taken from Drupal's location module: http://drupal.org/project/location
- **/
+ */
static protected $_earthFlattening;
static protected $_earthRadiusSemiMinor;
}
/**
- * @param float $longitude
* @param float $latitude
+ * @param float $longitude
* @param float $distance
* @param string $tablePrefix
*
$params = array();
$clause = array();
- list($minLongitude, $maxLongitude) =
- self::earthLongitudeRange($longitude,
- $latitude,
- $distance
- );
- list($minLatitude, $maxLatitude) =
- self::earthLatitudeRange(
- $longitude,
- $latitude,
- $distance
- );
+ list($minLongitude, $maxLongitude) = self::earthLongitudeRange($longitude, $latitude, $distance);
+ list($minLatitude, $maxLatitude) = self::earthLatitudeRange($longitude, $latitude, $distance);
// DONT consider NAN values (which is returned by rad2deg php function)
// for checking BETWEEN geo_code's criteria as it throws obvious 'NAN' field not found DB: Error
* @param array $values
*
* @throws Exception
+ * @return void
*/
public static function process(&$query, &$values) {
list($name, $op, $distance, $grouping, $wildcard) = $values;
}
if (empty($proximityAddress)) {
- return;
+ return NULL;
}
if (isset($proximityAddress['state_province_id'])) {
$qill[] = $proximityAddress['country'];
}
-
if (
isset($proximityAddress['distance_unit']) &&
$proximityAddress['distance_unit'] == 'miles'
$qill .= ': ' . ts('We could not geocode the destination address.');
$query->_qill[$grouping][] = $qill;
$query->_where[$grouping][] = ' (0) ';
- return;
+ return NULL;
}
$query->_qill[$grouping][] = $qill;
$distance
);
- return;
+ return NULL;
}
/**
* @param array $input
+ * retun void
*/
public static function fixInputParams(&$input) {
foreach ($input as $param) {
}
}
}
- return;
+ return NULL;
}
}
}