get longitude and latitude from google maps javascript when distance moved code example
Example: distance between two lat long points google maps api
google.maps.geometry.spherical.computeDistanceBetween (latLngA, latLngB);
google.maps.geometry.spherical.computeDistanceBetween (latLngA, latLngB);