Can i have the real distance from 2 points (example from lat1,lon2 to
lat2,lon2) ?
i already use this function for linear distance.
function calcDist(lon1,lat1,lon2,lat2)
{
var r = 3963.0;
var multiplier = 1;
return multiplier * r * Math.acos(Math.sin(lat1/57.2958) *
Math.sin(lat2/57.2958) + Math.cos(lat1/57.2958) *
Math.cos(lat2/57.2958) * Math.cos(lon2/57.2958 -
lon1/57.2958));
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---