We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8ec2b2f + 660d83c commit 96727e6Copy full SHA for 96727e6
Resources/doc/index.md
@@ -94,8 +94,9 @@ information in your development environment, for instance:
94
->geocode($request->server->get('REMOTE_ADDR'));
95
96
// Find the 5 nearest objects (15km) from the current user.
97
+ $address = $result->first();
98
$objects = ObjectQuery::create()
- ->filterByDistanceFrom($result->getLatitude(), $result->getLongitude(), 15)
99
+ ->filterByDistanceFrom($address->getLatitude(), $address->getLongitude(), 15)
100
->limit(5)
101
->find();
102
0 commit comments