From cab544ca8d2529f60e76d704480eac0e19dfa2f5 Mon Sep 17 00:00:00 2001 From: Skud <skud@infotrope.net> Date: Fri, 26 Apr 2013 18:49:46 +1000 Subject: [PATCH] added units example to docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6cdcd75f..d2ec199f 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ To find objects by location, use the following scopes: Venue.near('Omaha, NE, US', 20) # venues within 20 miles of Omaha Venue.near([40.71, 100.23], 20) # venues within 20 miles of a point + Venue.near([40.71, 100.23], 20, :units => :km) + # venues within 20 kilometres of a point Venue.geocoded # venues with coordinates Venue.not_geocoded # venues without coordinates -- GitLab