Skip to content

Commit

Permalink
Merge pull request #109 from MAXakaWIZARD/pr-fix-docs
Browse files Browse the repository at this point in the history
Fix wrong example in docs
  • Loading branch information
willdurand committed Jan 8, 2016
2 parents 8ec2b2f + 660d83c commit 96727e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Resources/doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ information in your development environment, for instance:
->geocode($request->server->get('REMOTE_ADDR'));

// Find the 5 nearest objects (15km) from the current user.
$address = $result->first();
$objects = ObjectQuery::create()
->filterByDistanceFrom($result->getLatitude(), $result->getLongitude(), 15)
->filterByDistanceFrom($address->getLatitude(), $address->getLongitude(), 15)
->limit(5)
->find();

Expand Down

0 comments on commit 96727e6

Please sign in to comment.