run trip detection when query complete