Appendix E. Spatial indexing

With the proliferation of smart mobile devices, the demand for location-based services has been increasing steadily. To build these location-dependent applications requires a database capable of indexing and querying spatial data. This feature was added to the MongoDB road map fairly early on, and MongoDB’s spatial indexing, though not as fully featured as, say, PostGIS, nevertheless now powers the location queries for a number of popular sites.[1]

1 The most prominent of these is Foursquare (http://foursquare.com). You can learn more about Foursquare’s MongoDB usage at http://mng.bz/rh4n.

As the name implies, spatial indexes are optimized for data representing locations. In the case of MongoDB, this data is typically ...

Get MongoDB in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.