don't calculate distance if a waypoints of new trip has been detected (otherwise we calculate distance between last and first waypoints of adjacents trips