# How to cluster direction of traffic data?

I have data on many trips (same route). The trip content: latitude, longitude, and time at bus stop. I want to detect the trips that are in the same direction (will have to be two clusters: same direction and opposite direction). Is there an algorithm that can do this?