README.md in geocoder-1.4.6 vs README.md in geocoder-1.4.7
- old
+ new
@@ -154,13 +154,13 @@
### For ActiveRecord models:
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.near('Omaha, NE, US') # venues within 20 (default) miles of Omaha
+ Venue.near([40.71, -100.23], 50) # venues within 50 miles of a point
+ Venue.near([40.71, -100.23], 50, :units => :km)
+ # venues within 50 kilometres of a point
Venue.geocoded # venues with coordinates
Venue.not_geocoded # venues without coordinates
by default, objects are ordered by distance. To remove the ORDER BY clause use the following: