title: Android:How to find latitude and longitude range with a lat/lon location as center?
body: <p>I have a data set of different locations, and want to show the nearest locations (within 5 km).</p>
  
  <p>How can I determine the minimum/maximum of latitude and longitude?</p>
  
  <p>f.e.: I need to fill my car up, and am looking for all gas stations in my neighborhood so I can go to the nearest. How do I do this on an Android phone?</p>
  
  <p>I'd like to avoid iterating through all of the locations as well, because I've got about 2500 locations and rising. Any suggestions on that?</p>
  
  <p>Thank you guys in advance for the advice on this!</p>
  
  <p><strong>Update:</strong>
  Thank you for the feedback you guys gave me, I solved my issue by iterating through all locations on the server and using the Google Distance Matrix API to calculate the distances: <a href="http://code.google.com/intl/nl/apis/maps/documentation/distancematrix/" rel="nofollow">http://code.google.com/intl/nl/apis/maps/documentation/distancematrix/</a></p>