title: Calculate the distance between two location using google map api
body: <p>I have a requirement to calculate and print the distance from current location to given destination.  As per my understanding, i can achieve this by google Map api.</p>
  
  <p>So, I will have to pass only destination location and api will the map as well as distance.</p>
  
  <p>For that I have configured on google and got the below link, I am not able to understand how to use this, but in below url I am passing the source and destination, but I don't want to pass the source, it should be taken current location as source.</p>
  
  <p>Is it possible to print the distance on web page?</p>
  
  <p><a href="https://maps.googleapis.com/maps/api/directions/json?origin=kanpur&amp;destination=lucknow&amp;key=%20AIzaSyCeBdq7rr-R7w7vZCXscLWgEDb3oO9CUhw" rel="nofollow">https://maps.googleapis.com/maps/api/directions/json?origin=kanpur&amp;destination=lucknow&amp;key=%20AIzaSyCeBdq7rr-R7w7vZCXscLWgEDb3oO9CUhw</a></p>