O'Reilly logo

MongoDB in Action by Kyle Banker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required