title: Google API request within a Mysql query?
body: <p>I've hit a bump in the road with this one I simply can't get my head around how this should be done.</p>
  
  <p>My question is I have a database full of coordinates, when the user enters their coordinates I want the query to return coordinates driving distances.
  And then order them from closest to furthest.</p>
  
  <p>Initially I was using a straight line to calculate distance using a formula but realized it wasn't very accurate as it didn't take into account streets, roads, etc.</p>
  
  <p>Btw I'm coding in PHP and using MySQL as my database</p>
  
  <p>Any help that will help me tackling this problem would be greatly appreciated.</p>
  
  <p>Thanks a lot  </p>