Forum: Ferret AAF and Location Filter

Bbe0862e17f3911349d9cad7b0a7b935?d=identicon&s=25 arvind gautam (Guest)
on 2008-07-13 07:44
(Received via mailing list)
I am using Acts as Ferret and trying to filter my search results by
location
(doing a location-based search).

I came across a locationfilter on
http://blog.tourb.us/archives/ferret-and-location-... <- this
blog post.

I don't really know how to use this from within my model (where I'm
actually
searching).

Help Please..?

-Arvind
F0bf457915a11e25d6744d02362511aa?d=identicon&s=25 Julio Cesar Ody (Guest)
on 2008-07-13 08:08
(Received via mailing list)
For location based search (ActiveRecord Based), you might want to take
a look at http://geokit.rubyforge.org/. It's so cool it supports more
than one algorithm to calculate proximity.

I haven't tried to mix ActsAsFerret with Geokit. Would be interesting
to know what happens.
Bbe0862e17f3911349d9cad7b0a7b935?d=identicon&s=25 arvind gautam (Guest)
on 2008-07-13 08:24
(Received via mailing list)
Julio,

I've actually checked that plugin and it seems to be great.
But what I'm trying to achieve is pretty much explained on that blog
post ->
http://blog.tourb.us/archives/ferret-and-location-... .
A-la Google Maps.
I want to be able to search for a particular named location
(name/description - text search) within an X mile radius of a given
lat/long.
That's why the filter for ferret :)

-Arvind
This topic is locked and can not be replied to.