| CPC H04W 4/021 (2013.01) [G01S 5/0236 (2013.01); G01S 19/51 (2013.01); H04W 4/029 (2018.02)] | 20 Claims |

|
1. A method, comprising:
reporting, by a terminal device, location reference information to a server, wherein the location reference information indicates an area range in which the terminal device is currently located;
receiving, by the terminal device and in response to reporting the location reference information, a positioning library from the server, wherein the positioning library corresponds to the area range, and wherein the positioning library comprises communication access information and corresponding geographical information;
storing, by the terminal device, the positioning library;
obtaining, by the terminal device and based on the positioning library, a first geographical location corresponding to the communication access information;
starting, by the terminal device, a positioning module to obtain a second geographical location of the terminal device when a location relationship between the first geographical location and a geofence meets a first preset condition; and
identifying, by the terminal device and based on the second geographical location, that the terminal device is located inside the geofence.
|