Skip to content

Commit

Permalink
Fix wrong example in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MAXakaWIZARD committed Jan 6, 2016
1 parent 8ec2b2f commit 660d83c
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 660d83c

Please sign in to comment.