title: Storing longitude and latitude data in a database, and query for nearby records
body: <p>I am creating a rails application which will use geolocation. One can add a longi- and latitude to a record. If there are multiple records with geolocations, one can see a Google Map with nearby records, just like Twitter geolocation.</p>
  
  <p>How can I store the coordinates (I don't mind to do calculations) and find nearby records? My database is MySQL.</p>
  
  <p>Thanks.</p>