Skip to content

Commit 98109ef

Browse files
authored
Merge pull request #10 from b13/release
Release
2 parents bf92016 + 674eec5 commit 98109ef

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

Classes/Service/RadiusService.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ public function getDistance($coordinates1, $coordinates2)
7070
* fetches all records within a certain radius of given coordinates
7171
* see http://spinczyk.net/blog/2009/10/04/radius-search-with-google-maps-and-mysql/.
7272
*
73-
* @param array $coordinates an associative array with "latitude" and "longitude" keys
74-
* @param int $maxDistance the radius in kilometers
75-
* @param string $tableName the DB table that should be queried
76-
* @param string $latitudeField the DB field that holds the latitude coordinates
77-
* @param string $longitudeField the DB field that holds the longitude coordinates
73+
* @param array $coordinates an associative array with "latitude" and "longitude" keys
74+
* @param int $maxDistance the radius in kilometers
75+
* @param string $tableName the DB table that should be queried
76+
* @param string $latitudeField the DB field that holds the latitude coordinates
77+
* @param string $longitudeField the DB field that holds the longitude coordinates
78+
* @param string $additionalFields additional fields to be selected from the table (uid is always selected)
7879
*
7980
* @return array
8081
*/
@@ -89,7 +90,7 @@ public function findAllDatabaseRecordsInRadius($coordinates, $maxDistance = 250,
8990
return $queryBuilder
9091
->select(...$fields)
9192
->addSelectLiteral(
92-
$distanceSqlCalc
93+
$distanceSqlCalc . ' AS `distance`'
9394
)
9495
->from($tableName)
9596
->where(

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'createDirs' => '',
2424
'clearCacheOnLoad' => 0,
2525
'lockType' => '',
26-
'version' => '3.0.0',
26+
'version' => '4.0.0',
2727
'constraints' => [
2828
'depends' => [
2929
'typo3' => '8.7.0-9.9.99',

0 commit comments

Comments
 (0)