Summary of knowledge points related to mobile phone positioning in Android

1. Mobile phone positioning classification

According to different positioning methods, mobile phone positioning is divided into satellite positioning and network positioning.

2. Satellite positioning service provision system

Satellite positioning services are provided by several global satellite navigation systems, mainly including the United States GPS, Russia's GLONASS, and China's Beidou.

3. Precautions for satellite positioning

To use satellite positioning, you need to turn on the GPS function on your mobile phone, and it is best to use it outdoors, because it is not easy to receive satellite positioning signals indoors.

4. Network positioning classification

Network positioning has two sub-categories: base station positioning and WIFI positioning.

5. The principle of base station positioning

The principle of base station positioning is to monitor which base stations can be searched by the SIM card. The mobile phone must be in the overlapping area covered by the signal of these base stations, and then the approximate position of the mobile phone can be obtained based on the location information of each base station. The use of base station positioning requires the data connection function on the mobile phone to be turned on.

6. WIFI positioning principle

The principle of Wifi positioning is that the mobile phone connects to a public hotspot network, such as the Wifi of the Capital Airport. The router that provides the Wifi hotspot has its own MAC address and the network IP of the telecom broadband network. You can know the access to the Wifi router by querying the location of the Wifi router. The approximate location of the Wifi phone. To use Wifi positioning, the WLAN function on the mobile phone must be turned on.

7. Principles of Network Positioning

Whether it is base station positioning or Wifi positioning, the mobile phone itself can only obtain the information of the base station and the WiFi router, and cannot directly obtain the location information of the mobile phone. To get a specific location, you must first transmit the information of the base station or Wi-Fi router to the location service provider (such as AutoNavi Maps and Baidu Maps). The location server stores the number, MAC address, and actual location of each base station and Wi-Fi router. Find the detailed location of the specific base station or WiFi from this huge network database, and then return it to the mobile client. Because the back-end network is required to calculate the location information of the mobile phone, base station positioning and WiFi positioning are collectively referred to as network positioning. The calculation functions of domestic mobile phone network positioning are provided by Gaode Maps and Baidu Maps respectively.

Guess you like

Origin blog.csdn.net/weixin_38322371/article/details/115326363