title: Finding the nearest neighbor Algorithm using google map coordinates
body: <p>Please help me to find an algorithm that finds the nearest neighbor by its coordinates (latitude/longitude) I will implemented it using PHP</p>
  
  <p>for example.  we have 1 client and 2 nodes
  Node 1 = 32.9697, -96.8032 and Node 2=42.9697, -97.80322 </p>
  
  <p>each node has their own given coordinates (place on a map).</p>
  
  <p>the client will send a latitude and longitude coordinates into the system and the system will find out if the coordinates that it receives from the client is near to Node 1 or Node 2</p>
  
  <p>Please excuse my grammar. Hoping for your kind response. Thank you in advance</p>