MongoDB supports indexes on two dimensional fields:

db.cities.createIndex( { location: '2d' } )
and

MongoDB supports indexes on geospatial fields:

db.cities.createIndex( { location: '2dsphere' } )