mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
14 lines
248 B
JavaScript
14 lines
248 B
JavaScript
|
|
t = db.geo8
|
|
t.drop()
|
|
|
|
t.insert( { loc : [ 5 , 5 ] } )
|
|
t.insert( { loc : [ 5 , 6 ] } )
|
|
t.insert( { loc : [ 5 , 7 ] } )
|
|
t.insert( { loc : [ 4 , 5 ] } )
|
|
t.insert( { loc : [ 100 , 100 ] } )
|
|
|
|
t.ensureIndex( { loc : "2d" } )
|
|
|
|
t.runCommand( "geoWalk" );
|