I just started to use this API recently, and I have looked but cannot find 
the reference that I am looking for on this one.

For the app I am making, it is sufficient to pass in only the from zip code 
and the to zip code to get the map and directions. What I need to do is 
collect several pieces of information from this, specifically:

1. get city name of zip code (if available)
2. When doing waypoints, get the total distance between each point
3. Get the time between each point.

I do not need the driving instructions, just the time/distance between 
points (at this point). As time goes on, these requirements are sure to 
change.

Presently, I am mapping out fine between 2 points and getting the time and 
distance:
var ttlDistance = directions.getDistance().meters/1609.344;
var ttlTime = directions.getDuration().seconds/3600;
document.getElementById("ttlDistance").value =ttlDistance.toFixed(2);
document.getElementById("ttlTime").value =ttlTime.toFixed(2);

But what I am perplexed on is how to do this with waypoints?, i.e Time and 
distance between point1 to point2, points2 and point3, point3 and point4, 
etc...

This is a shipping utility that I am making for corporate use (internal use 
only), and any help would be greatly appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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