In the era of mobile Internet and big data, location-based services have become a high-profile commercial industry. GPS-based positioning is currently widely used, but in small environmental areas such as campuses, which contain a large number of indoor and outdoor environments, GPS positioning accuracy often decreases because buildings can cause location offsets. In order to solve this problem, this paper fuses GPS and Wi-Fi for cooperative positioning to achieve accurate indoor and outdoor positioning on campus. We use Android Studio and WebStorm hybrid to develop an Android application, and achieve indoor accurate positioning by calling the built-in GPS chip of the phone to achieve outdoor GPS positioning and designing a Wi-Fi fingerprint library matching algorithm based on Jaccard similarity coefficients, and finally matching based on the phone's detection of nearby AP node signals. We conduct physical experiments in real buildings, and the experimental results show that campus indoor and outdoor positioning systems based on GPS and Wi-Fi can improve the positioning accuracy.