where dbis the connection to your db, you can use #command:
db.command({'geoNear' => "places", 'near'=>[50,50], 'num' => 10})
This should be OrderedHashin ruby 1.8, hashes are ordered in 1.9, so you can use the default hash when using 1.9
source
share