title: Find closest longitude and latitude in array from user location
body: <p>I have an array full of longitudes and latitudes. I have two double variables with my users location. I'd like to test the distance between my user's locations against my array to see which location is the closest. How do I do this?</p>
  
  <p>This will get the distance between 2 location but stuggeling to understand
   how I'd test it against an array of locations.</p>
  
  <pre><code>CLLocation *startLocation = [[CLLocation alloc] initWithLatitude:userlatitude longitude:userlongitude];
  CLLocation *endLocation = [[CLLocation alloc] initWithLatitude:annotation.coordinate.latitude longitude:annotation.coordinate.longitude];
  CLLocationDistance distance = [startLocation distanceFromLocation:endLocation];
  </code></pre>