Group the records into trips ( H-N or N-H is treated as one trip) using Longitude, Latitude, and SOG speed. Remove trips with odd locations (not belong to H-N or N-H), (possibly also remove those with discontinuous locations). Then label direction, mode, schedule accordingly.
Group the records into trips ( H-N or N-H is treated as one trip) using Longitude, Latitude, and SOG speed. Remove trips with odd locations (not belong to H-N or N-H), (possibly also remove those with discontinuous locations). Then label direction, mode, schedule accordingly.