I am trying to use the code below which works fine but I need to pass
just the actual distance i.e. "8.3" to a php variable so I can use it
to charge for delivery on a price per mile basis, I do not want
anything written to the screen!
Can someone tell me if this is possible please
http://92.48.69.178/map.php
var dirn = new GDirections();
GEvent.addListener(dirn,"error", function() {
GLog.write("Failed: "+dirn.getStatus().code);
});
GEvent.addListener(dirn,"load", function() {
GLog.write ("The distance is "+dirn.getDistance().html);
});
var start = "FY2";
var end = "FY1";
dirn.loadFromWaypoints([start,end],{getSteps:true});
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---