I made some 2 markers in google maps,i just want to ask how can i get the distance of the 2markers?
i have problem in my code it say
TypeError: google.maps.geometry is undefined
here is my code
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize(){
var map = google.maps.geometry.spherical.computeDistanceBetween( 10.185699,123.826437,10.254526,123.825959 );
alert(map);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>