Geospatial indexes
19/28
Importing the Data
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' } )