title: Check if a GPS location is within a certain radius of another GPS location in android
body: <p>I'm developing an Android app which takes the user's current location and shows other users' gps locations on a map which falls with a certain radius, say 20 kilometers.</p>
  
  <p>For example, if I am the user, I want to see other users' locations plotted on a map who are within a radius of 20 kilometers from my location.</p>
  
  <p>I am able to save my location, other users' locations and plot them on map also. I am not able to figure out if those users fall in 20 kilometers radius from my location or not.</p>
  
  <p>I use <strong><em>Google Maps Android API v2</em></strong> to plot locations on map and <strong><em>Parse</em></strong> for saving the GPS locations (latitude and longitude coordinates)</p>
  
  <p>I Googled for solutions but in vain. Could anyone please provide a hint or reference or sample code on how to check if a GPS location is within a certain radius of another GPS location or not.</p>
  
  <p>Any help will be appreciated.</p>