title: How can I search for locations in a certain radius?
body: <p>Very surprised this has been difficult to search. My hunt only showed me to use CLGeocoder for displaying the information in user friendly format. </p>
  
  <p>I'm building a location based app, and I have functionality to save locations (to a server) and list them in a table view. But that is of little use when I cannot filter and arrange locations relevant to my area.</p>
  
  <p>Should I do the heavy lifting of setting the location radius in the device, or in php?</p>
  
  <p>My current idea for a solution is to just send a JSON string of coordinates to a php script that looks through a MySQL database for every entry that has a location field less than X away from the user's location (by a crude 'WHERE X&lt;34.23049823 AND X>34.44789874 AND Y&lt;...) type of thing. I don't think this is the easiest or quickest way to implement nearby location search functionality.  </p>