In a possible implementation, when step S308 and step S309 are performed, the AMF determines whether the second location privacy setting data is the same as the first location privacy setting data. If the second location privacy setting data is the same as the first location privacy setting data, it indicates that the current location privacy setting data of the UE is not changed and is consistent with that stored in the UDM. In this case, the AMF still performs the location service operation based on the first location privacy setting data. If the second location privacy setting data is different from the first location privacy setting data, it indicates that the UDM does not store latest location privacy setting data of the UE. In this case, the AMF performs the location service operation based on the second location privacy setting data, that is, performs the location service operation based on the latest location privacy setting data. The AMF further performs step S312 and step S313.
That the AMF requests to obtain the location information of the UE may include the following steps.
Step S3111: The AMF sends a location request to the LMF. Correspondingly, the LMF receives the location request from the AMF. The location request may be, for example, a Nlmf_Location_DetermineLocation Request.
Step S3112: Measure and calculate the location information of the UE. Refer to specific descriptions of step 8 to step 12 in the embodiment shown in 
Step S3113: The LMF delivers the location information of the UE to the AMF. Correspondingly, the AMF receives the location information of the UE from the LMF.