Skip to content
Snippets Groups Projects
Commit bdb2e1d1 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge pull request #455 from Skud/doctweak

added units example to docs
parents ae1e1295 cab544ca
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,8 @@ To find objects by location, use the following scopes: ...@@ -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('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) # 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.geocoded # venues with coordinates
Venue.not_geocoded # venues without coordinates Venue.not_geocoded # venues without coordinates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment