Directions dir = route.Directions; for (int i = 0; i < dir.Count; i++) { object o = i; map.Location = dir.get_Item(ref o).Waypoint.Location;