Along with the popularization of smart phones and mobile equipment, the development of localization application helps the indoor localization technology gaining wide attention. The existing indoor localization system is mainly based on the Triangle localization method. However, the Triangle localization technology can only be used in the area where can get three or more AP signals. In order to make up this limitation, this paper proposes TP localization which can get the indoor location just using two wifi signals. In this paper, we proposed the TP localization process and principle of TP localization, and then we set a suitable experiment environment in our lab and measure the practical data and we uses the practical data to describe the TP localization process in detail. At last, it point out the proposed methods' localization accuracy and the deficiencies.