View Single Post

  #2 (permalink)  
Old 01-25-2006
Wilfried Wilfried is offline
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

Yes it is possible. This is working example in C#. Each waypoint has his local StartTime and Distance calculated against next waypoint.

Code:
    Directions dir = route.Directions;
    foreach (MapPoint.Direction d in dir) {
        Console.WriteLine("Start time:  " + Convert.ToString(d.StartTime));
        Console.WriteLine("Distance:    " + Convert.ToString(d.Distance));
        Console.WriteLine("Instruction: " + d.Instruction);
    }
    Console.WriteLine("Total driving time: " + Convert.ToString(route.DrivingTime));
    Console.WriteLine("Total distance:     " + Convert.ToString(route.Distance));
Reply With Quote