Intro to MongoDB Geospatial Queries
The post will walk you through creating the needed 2d index and executing geo queries using $near, $maxDistance, $box, $within, $box:
MongoDB has supported geospatial queries for a while, and in the upcoming 1.7 release it’ll get even better. Let’s take a look at how easy it is to query MongoDB in an idiomatic geospatial manner.
In the upcoming release (remember production ready MongoDB versions are using even numbers: 1.2, 1.4, 1.6, 1.8), the geo model will ☞ not be flat anymore.
Original title and link: Intro to MongoDB Geospatial Queries (NoSQL databases © myNoSQL)
via: http://blog.mxunit.org/2010/11/simple-geospatial-queries-with-mongodb.html