Michael Wong wrote: > 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. [...]
No need to implement this yourself. Use PostgreSQL, PostGIS, and (if necessary) GeoRuby. This will make the task almost trivial. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- 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 -~----------~----~----~----~------~----~------~--~---

