Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ThinkingSphinx::Search.search('keywords',
- :geo => [
- degrees_to_radians(params[:lat].to_f),
- degrees_to_radians(params[:lon].to_f)
- ],
- :latitude_attr => "latitude",
- :longitude_attr => "longitude"
- )
Add Comment
Please, Sign In to add comment