Geospatial indexes
28/35
Let's start with a map...
Geospatial indexes (geoNear command)
MongoDB supports indexes on two dimensional fields:
db.cities.createIndex( { location: '2d' } )
and
MongoDB supports indexes on
geospatial fields
:
db.cities.createIndex( { location: '2dsphere' } )