Con MongoDB 2.4 usa l'indice "2dsphere" per GeoJSON Points, LineStrings e Polygons.
Ad esempio, puoi creare questo indice:
db.mycoll.ensureIndex( { loc : "2dsphere" } )
E salva questa LineString:
{ loc : { type : "LineString" , coordinates : [ [ 1 , 2 ] , [ 3 , 4 ] ] } }
Vedi http://docs.mongodb.org/manual/applications/2dsphere/ .