title: Algorithm to calculate nearest location based on longitude & latitude
body: <p>I am currently trying to develop an algorithm to calculate which known locations are closest to current known location.</p>
  
  <p>I have a list of say 100 known locations (meaning I have both long- and latitude). Out of these 100 I pick one location, and after picking that location I want a list to show say the 8 closest known locations to this.</p>
  
  <p>How would a possible solution be to this?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I am not looking for how to calculate distances. I am looking for how to calculate which known locations lies closest to current location.</p>
  
  <p>Example:</p>
  
  <p>Say the list contains 100 locations of movie theaters. I am at theater 5, and I want to find out what other movie theaters in the list lies nearby. Not the distance, but their location.</p>