title: MongoDB $geoNear distance are huge different from original/google distance
body: <p>This is my url=/location/23.605835/85.277221 //latitude and then longitude</p>
  <pre class="lang-js prettyprint-override"><code>//This is my code to calculate distance
  
  exports.getDistance = async (req, res, next) =&gt; {
  
    const { lat } = req.params;
  
    const { lng } = req.params;
  
    const distances = await Seller.aggregate([
       {
  
        $geoNear: {
          near: {
            type: 'Point',
            coordinates: [lat * 1, lng * 1],
          },
          spherical: true,
          distanceField: 'distance',
          distanceMultiplier: 0.001,
        },
      },
    ]);
    res.status(200).json({
      status: 'success',
      data: {
        data: distances,
      },
    });
  };
  </code></pre>
  <p>Output</p>
  <pre class="lang-js prettyprint-override"><code>{
  
      &quot;status&quot;: &quot;success&quot;,
      &quot;data&quot;: {
          &quot;data&quot;: [
              {
                  &quot;_id&quot;: &quot;5fc34a0b1ac1e10d1042d8ca&quot;,
                  &quot;location&quot;: {
                      &quot;type&quot;: &quot;Point&quot;,
                      &quot;coordinates&quot;: [
                          23.369677,
                          85.321093
                      ]
                  },
                  &quot;name&quot;: &quot;Location One&quot;,
                  &quot;__v&quot;: 0,
                  &quot;distance&quot;: 5.337871594014329
              }
          ]
      }
  }
  </code></pre>
  <p>The problem here is result distance is totally different from real distance/google distance.
  The original distance is about 40km and this giving me 5.3kms.</p>
  <p>I don't know what to do please help me out.
  Thank You!</p>