Cover by Kyle Banker

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required