title: Calculating a radius with longitude and latitude
body: <p>I am trying to determine if two locations (each with their own latitude and longitude values) are within a certain distance of each other, a 3 mile radius for example. I have double values to represent the latitude and longitude of each location.</p>
  
  <pre><code>//Location 1
  Double lattitude1 = 40.7143528;
  Double longitude1 = -74.0059731;
  
  //Location 2
  Double lattitude2 = 33.325;
  Double longitude2 = 44.422000000000025;
  </code></pre>
  
  <p>I am wondering how I would determine if these two locations are within each others radius or not because I am not entirely sure how to do this with this type of value.</p>