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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.