Skip to content

Commit

Permalink
Merge pull request #10 from b13/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
bmack authored Sep 20, 2018
2 parents bf92016 + 674eec5 commit 98109ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions Classes/Service/RadiusService.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ public function getDistance($coordinates1, $coordinates2)
* fetches all records within a certain radius of given coordinates
* see http://spinczyk.net/blog/2009/10/04/radius-search-with-google-maps-and-mysql/.
*
* @param array $coordinates an associative array with "latitude" and "longitude" keys
* @param int $maxDistance the radius in kilometers
* @param string $tableName the DB table that should be queried
* @param string $latitudeField the DB field that holds the latitude coordinates
* @param string $longitudeField the DB field that holds the longitude coordinates
* @param array $coordinates an associative array with "latitude" and "longitude" keys
* @param int $maxDistance the radius in kilometers
* @param string $tableName the DB table that should be queried
* @param string $latitudeField the DB field that holds the latitude coordinates
* @param string $longitudeField the DB field that holds the longitude coordinates
* @param string $additionalFields additional fields to be selected from the table (uid is always selected)
*
* @return array
*/
Expand All @@ -89,7 +90,7 @@ public function findAllDatabaseRecordsInRadius($coordinates, $maxDistance = 250,
return $queryBuilder
->select(...$fields)
->addSelectLiteral(
$distanceSqlCalc
$distanceSqlCalc . ' AS `distance`'
)
->from($tableName)
->where(
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'createDirs' => '',
'clearCacheOnLoad' => 0,
'lockType' => '',
'version' => '3.0.0',
'version' => '4.0.0',
'constraints' => [
'depends' => [
'typo3' => '8.7.0-9.9.99',
Expand Down

0 comments on commit 98109ef

Please sign in to comment.