Hi,

i would like to get the distance between two places in miles...

As per Google API i had tried the following code snippet.


//Get the Distance between two address.
 gdir = new GDirections();
 gdir.load("from: " + compaddress + " to: " + useraddress, "en_US");
 var lstrDistance = gdir.getDistance();
 alert(lstrDistance);

i am unable to get the distance.

Kindly let me know how to get the distance between two places in
miles.

Appreciate ur help in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to