News for hackers. Stuff that matters.
Re:Calculate Latitude/Longitude Distances in MySQL with the ... by thibaut_barrere on Thursday October 28, 2010 @04:44AM (#1842223)
Anecdote on Haversine: in 1.6, MongoDB's built-in "geonear" was using non-spherical indexing, but I needed to get more accurate results in a project, so I queried 3 times more records and used Haversine afterward to sort records again, client-side. Here's the ruby code:

http://gist.github.com/559482

Since then, MongoDB 1.7 has been released with spherical sort support (http://www.mongodb.org/display/DOCS/Geospatial+Indexing#Geos...)

There are no comments on this comment yet.