Slide 14
Slide 14 text
14
How to make it work
1) Put your coordinates into an arrary
{ loc : [ 50 , 30 ] } //SUGGESTED OPTION!
{ loc : { x : 50 , y : 30 } }!
{ loc : { foo : 50 , y : 30 } }!
{ loc : { lon : 40.739037, lat: 73.992964 } }!
2) Make a 2d index
db.places.ensureIndex( { loc : "2d" } )!