title: Wrong distance calculation with MongoDB
body: <p>I am executing the following raw query with MongoDB:</p>
  
  <pre><code>qry = {"position" : SON([("$near", [52.497309,13.39385]), ("$maxDistance", distance/111.12 )])}
  locations = Locations.objects(__raw__=qry)
  </code></pre>
  
  <p>The position in the database is set to <code>[52.473266, 13.45494]</code>.</p>
  
  <p>I get a result once I set the distance to 7.3 or higher, so it seems the two locations must at least be 7.3 kilometer away from each other. </p>
  
  <p>When I calculate the distance of those two geo locations with <a href="http://en.wikipedia.org/wiki/Google_Maps" rel="nofollow noreferrer">Google Maps</a> (for example going by car) it's telling me it's only 5.2 kilometer away from each other. </p>
  
  <p>I tested it with loads of different locations and there is always a big difference in the distance calculation of google and Mongodb</p>
  
  <p>Am i missing anything or can somebody explain please where this difference is coming from?</p>
  
  <p>I already checked <a href="https://stackoverflow.com/a/7841830/1331671">this answer</a> but it's not working for me...</p>