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:<p><a href="http://gist.github.com/559482" rel="nofollow">http://gist.github.com/559482</a><p>Since then, MongoDB 1.7 has been released with spherical sort support (<a href="http://www.mongodb.org/display/DOCS/Geospatial+Indexing#GeospatialIndexing-TheEarthisRoundbutMapsareFlat" rel="nofollow">http://www.mongodb.org/display/DOCS/Geospatial+Indexing#Geos...</a>)