title: Android calculate distance between two locations
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6981916/how-to-calculate-distance-between-two-locations-using-their-longitude-and-latitu">How to calculate distance between two locations using their longitude and latitude value</a>  </p>
  </blockquote>
  
  
  
  <p>Before you all give me some education on how the earth is not a perfect sphere and it all changes when you get closer to the poles, which seems to be all I can find on the net. And before asking my father who is an accomplished geographer and my uncle who is a Quantum Physicist who works for NASA and me being a lowly computer programmer, I’d like to ask you guys first!</p>
  
  <p>I only need a ball park Km distance as the crow flies from a phone to a list of pre populated locations for an area of 720 square kilometers, so variations are not important.</p>
  
  <p>This is me right now, please don’t drop anything on me.</p>
  
  <pre><code>mLatitude=-38.3533177
  mLongitude=144.9127674
  </code></pre>
  
  <p>And this is me ten minutes ago approximately 3kms away as the crow flies,</p>
  
  <pre><code>mLatitude=-38.3444385
  mLongitude=144.9374762
  </code></pre>
  
  <p>How do I calculate that to get 3km?</p>
  
  <p>I’m quite new to Java so I’m not sure what built in Math functions are available and I have no idea what the calculation is?</p>
  
  <p>Cheers,</p>
  
  <p>Mike.</p>