In a possible implementation, the access management network element includes a processor, a transceiver, and a memory. The memory stores a computer program, and the computer program includes program instructions. The processor is configured to invoke the program code to perform the following operations of controlling the transceiver to send a location privacy setting data obtaining request to the data management network element when receiving a location service request from a gateway mobile location network element, receiving a location privacy setting data obtaining response from the data management network element, where the location privacy setting data obtaining response includes first location privacy setting data, and performing a location service operation based on the first location privacy setting data.
For a problem-resolving principle and beneficial effects of the access management network element, refer to the method and beneficial effects brought by the method in the tenth aspect. Therefore, for implementation of the apparatus, refer to the implementation of the method. Repeated parts are not described again.
A twelfth aspect of this embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the method according to the tenth aspect.
A thirteenth aspect of this embodiment of this application provides a computer program product including instructions. When the computer program product runs on a computer, the computer is enabled to perform the method according to the tenth aspect.