def CalculateSpeeds(list_of_points_in_time_order):
    """Calculate a list of (average) speeds for a list of geographic points."""
points = list_of_points_in_time_order
segment_start = points[0]
speed_list = []
for segment_end in points[1:]:
    dt = ElapsedTime(segment_start, segment_end)
d = Distance(segment_start, segment_end)
speed_list.append(d / dt)
segment_start = segment_end
return speed_list
How toget a list of "fastest miles" from a set of GPS Points