Agile Web Development

Build it. Launch it. Love it.

ActsAsLocateable

ActsAsLocateable is an easy way to give any model the ability to be found by location. For instance, say you have a model Store which is associated with a zip code indicating where that Store is located. To find all the stores within a specific radius of another ZipCode, you can do a

Store.findwithinradius(10, 12345) # Find all stores within 10 miles of zip code 12345

Vitals

Home http://www.baconbear.com/articles/2006/12/29/actsaslocateable-released
Repository http://svn.baconbear.com/rails_plugins/acts_as_locateable/trunk/
License Rails' (MIT)
Tags Tag_red
Rating (3 votes)
Owner Jeff Lee
Created 30 December 2006

Comments

Add a comment