Added logic to compare trips using ECEF coordinates