Find distance between two geo-location in kilometers
public string getDistance(string origin, string destination) { System.Threading.Thread.Sleep(1000); string distance = ""; string url = "http://maps.googleapis.com/maps/api/directions/xml?origin=" + origin + "&destination=" + destination + "&sensor=false"; string requesturl = url; string content = fileGetContents(requesturl); string[] sp = content.Split(' '); distance = sp[0].ToString(); return distance; } protected string fileGetContents(string fileName) { string sContents = string.Empty; string me = string.Empty; try { if (fileName.ToLower().IndexOf("http:") > -1) { System.Net.WebClient wc = new System.Net.WebClient(); byte[] response = wc.DownloadData(fileName); sContents = System.Text.Encoding.A