A portable electronic device, comprising: a) a transceiver, configured to receive a beacon signal; and b) a processor, configured to: determine a first broadcast period according to the beacon signal received by the transceiver, and determine a first scan interval according to the first broadcast period, wherein the first broadcast period is a broadcast period of a beacon signal detected by the portable electronic device in a positioning area; wherein c) the transceiver is further configured to receive a beacon signal by using the first scan interval as an interval; d) the processor is further configured to: obtain, according to a received signal strength indicator,RSSI, of a beacon signal received by the transceiver in each of m continuous first scan intervals, a first positioning result that comprises m positioning locations, and when determining (S506, S507)), according to the m positioning locations, that an average quantity of scans, wherein the average quantity of scans is an average value of quantities of continuous appearance times of different positioning locations in the positioning result obtained in the m first scan intervals, and is used to represent a quantity of appearance times of a same positioning location, is greater than a preset value, adjust the first scan interval to obtain a second scan interval, wherein the second scan interval is greater than the first scan interval, the k th positioning location in the m positioning locations is obtained according to an RSSI of a beacon signal received in the k th first scan interval in the m continuous first scan intervals, m is a preset integer greater than 1, and k is an integer greater than 1 and not greater than m; e) the transceiver is further configured to receive a beacon signal by using the second scan interval as an interval; and f) the processor is further configured to obtain, according to an RSSI of a beacon signal received by the transceiver in each of p continuous second scan intervals, a second positioning result that comprises p other positioning locations, wherein the j th positioning location in the p other positioning locations is obtained according to an RSSI of a beacon signal received in the j th second scan interval in the p continuous second scan intervals, p is a preset integer greater than 1, and j is an integer greater than 1 and not greater than p. a) a transceiver, configured to receive a beacon signal; and b) a processor, configured to: determine a first broadcast period according to the beacon signal received by the transceiver, and determine a first scan interval according to the first broadcast period, wherein the first broadcast period is a broadcast period of a beacon signal detected by the portable electronic device in a positioning area; wherein c) the transceiver is further configured to receive a beacon signal by using the first scan interval as an interval; d) the processor is further configured to: obtain, according to a received signal strength indicator,RSSI, of a beacon signal received by the transceiver in each of m continuous first scan intervals, a first positioning result that comprises m positioning locations, and when determining (S506, S507)), according to the m positioning locations, that an average quantity of scans, wherein the average quantity of scans is an average value of quantities of continuous appearance times of different positioning locations in the positioning result obtained in the m first scan intervals, and is used to represent a quantity of appearance times of a same positioning location, is greater than a preset value, adjust the first scan interval to obtain a second scan interval, wherein the second scan interval is greater than the first scan interval, the k th positioning location in the m positioning locations is obtained according to an RSSI of a beacon signal received in the k th first scan interval in the m continuous first scan intervals, m is a preset integer greater than 1, and k is an integer greater than 1 and not greater than m; e) the transceiver is further configured to receive a beacon signal by using the second scan interval as an interval; and f) the processor is further configured to obtain, according to an RSSI of a beacon signal received by the transceiver in each of p continuous second scan intervals, a second positioning result that comprises p other positioning locations, wherein the j th positioning location in the p other positioning locations is obtained according to an RSSI of a beacon signal received in the j th second scan interval in the p continuous second scan intervals, p is a preset integer greater than 1, and j is an integer greater than 1 and not greater than p.