Plugins - ActsAsLocateable

StarAdd to favorites

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

Jeff Lee

http://www.baconbear.com/articles/2006/12/29/actsaslocateable-released

http://svn.baconbear.com/rails_plugins/acts_as_locateable/trunk/

Rails' (MIT)

  • Currently 4.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Model

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?