title: MongoDb $near query in using java not giving proper locations
body: <p>I have query regarding <code>$near</code> in mongodb</p>
  
  <p>I have to find out the users from particular location around the radius.</p>
  
  <p>I have location <code>[ 18.58528075595879 , 73.73364686965942]</code> , and from which i want to search the users from <code>250</code> yards radius.</p>
  
  <p>I have users table in which I have <code>gpsloc</code> array.
  I have put index "2d" on gpsloc </p>
  
  <pre><code>db.users.ensureIndex({loc: "2d"})
  </code></pre>
  
  <p>The query which i am trying</p>
  
  <pre><code>{ "gpsloc" : { "$near" : [ 18.58528075595879 , 73.73364686965942] , "$maxDistance" : 228.6} , "height" : "Average" , "hair" : "Brown" , "gender" : "Male"}
  </code></pre>
  
  <p>What it takes in <code>maxDistance (distance in meters/km/?)</code></p>