Hi I am quite a newbie in Ruby. I want to sort a list of locations by
relative distance (shortest to farthest relative to my location) on the
fly. For example, let say I am at x and y coordinate, I have other
points in the map around me. I want to be able to list the other points
in terms of the shortest distance from me to the farthest. I store
longitude and latitude information on the database. However, I cannot
store the relative distance permanently, as (i) number of points change
in real time; and (ii) I don't have relationship with the other points,
which means the many-to-many tables are still empty.

Any ideas?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to