t = db.geo_center_sphere1; function test(index) { t.drop(); skip = 3 // lower for more rigor, higher for more speed (tested with .5, .678, 1, 2, 3, and 4) searches = [ // x , y rad [ [ 5 , 0 ] , 0.05 ] , // ~200 miles [ [ 135 , 0 ] , 0.05 ] , [ [ 5 , 70 ] , 0.05 ] , [ [ 135 , 70 ] , 0.05 ] , [ [ 5 , 85 ] , 0.05 ] , [ [ 20 , 0 ] , 0.25 ] , // ~1000 miles [ [ 20 , -45 ] , 0.25 ] , [ [ -20 , 60 ] , 0.25 ] , [ [ -20 , -70 ] , 0.25 ] , ]; correct = searches.map( function(z){ return []; } ); num = 0; for ( x=-179; x<=179; x += skip ){ for ( y=-89; y<=89; y += skip ){ o = { _id : num++ , loc : [ x , y ] } t.save( o ) for ( i=0; i