There are two traces here corresponding to different shifts for the same cab.
Taken from the Google Maps API examples