string url = String.Format("https://maps.googleapis.com/maps/api/distancematrix/xml?units=imperial&origins={0},{1}&destinations={2},{3}&key=AIzaSyCqNE77AmnSEywlJ63QTJsboi7E7wFPmMQ", lat1, lon1, lat2, lon2);
I have used this and got the distance.
Thanks for your Replies