On this paper, the research mainly focuses on the technology of indoor location. First, we collect coordinates of sample spots by handheld smart device in the specified range and information of wifi wireless hotspot, with which the location fingerprint technique is applied to absolute positioning; In order to improve the real-time performance and accuracy of indoor positioning, the pedestrian dead reckoning algorithm which will measure stride frequency, estimate step size and detect the direction with data collected and processed by the mobile phone sensor is used to achieve relative position estimation. The pedestrian dead reckoning algorithm can overcome the instability of the location fingerprint technique and the latter can reduce the cumulative error that the former brings. The result shows the combination of the two technologies is able to effectively improve the accuracy of indoor location and be fully used in the real world.