An information acquisition method, apparatus and computer-readable storage medium
By combining Wi-Fi signal fields, GPS, and IP address positioning methods, and utilizing the mapping relationship of target terminals and the attribute information of historical terminals, the problem of low efficiency in location information acquisition in existing technologies is solved, and fast and accurate location acquisition is achieved when wireless communication information is unavailable.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2021-07-09
- Publication Date
- 2026-05-26
AI Technical Summary
Existing positioning methods based on Wi-Fi signal fields and GPS require both Wi-Fi and GPS to be enabled to obtain location information, resulting in insufficient coverage and low acquisition efficiency, especially after purchasing a new mobile phone where accurate location information cannot be obtained in a timely manner.
By combining Wi-Fi signal field, GPS and IP address positioning methods, the mapping relationship between the target terminal's wireless communication information and Internet Protocol address is obtained. By utilizing historical terminal attribute information and positioning information, multiple methods are combined to obtain the target terminal's location information.
It improves the efficiency and accuracy of location information acquisition, especially when wireless communication information is unavailable, enabling rapid acquisition of the precise location of the target terminal.
Smart Images

Figure CN115600020B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, specifically to an information acquisition method, apparatus, and computer-readable storage medium. Background Technology
[0002] In order to promptly push relevant business district information to users based on regional characteristics, and to help manufacturers understand the preferences of different models in different regions in order to formulate appropriate marketing strategies, it is necessary to obtain the accurate location information of the new mobile phone as soon as possible after the user purchases it.
[0003] In existing technologies, the location information of mobile devices is generally obtained through positioning based on Wi-Fi (wireless communication technology) signal fields, GPS (Global Positioning System), and IP (Internet Protocol). However, positioning methods based on Wi-Fi signal fields and GPS require Wi-Fi and GPS to be turned on to obtain the information, resulting in insufficient coverage and low efficiency in obtaining location information. Summary of the Invention
[0004] This application provides an information acquisition method, apparatus, and computer-readable storage medium, which can improve the efficiency of location information acquisition.
[0005] This application provides an information acquisition method, including:
[0006] Obtain the target location information of the target terminal;
[0007] When it is detected that the target location information does not contain target wireless communication information, a first mapping relationship is obtained, the first mapping relationship including the mapping relationship between Internet Protocol address and location information;
[0008] Obtain the target Internet Protocol address of the target terminal, and determine the location information to be determined corresponding to the target Internet Protocol address based on the first mapping relationship;
[0009] When there are multiple locations to be determined, the matching target historical terminal is determined based on the attribute information of the target terminal.
[0010] Locate the historical location information recorded by the target historical terminal, and determine the target location information of the target terminal based on the historical location information.
[0011] Accordingly, embodiments of this application provide an information acquisition device, including:
[0012] The first acquisition unit is used to acquire the target location information of the target terminal;
[0013] The second acquisition unit is used to acquire a first mapping relationship when it is detected that the target location information does not contain target wireless communication information. The first mapping relationship includes a mapping relationship between Internet Protocol address and location information.
[0014] The first determining unit is used to obtain the target Internet Protocol address of the target terminal and determine the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship.
[0015] The second determining unit is used to determine a matching target historical terminal based on the attribute information of the target terminal when there are multiple locations to be determined.
[0016] The search unit is used to search for historical location information recorded by the target historical terminal and determine the target location information of the target terminal based on the historical location information.
[0017] In one embodiment, the second acquisition unit includes:
[0018] The first mapping acquisition subunit is used to acquire the second mapping relationship between Internet Protocol address and wireless communication information;
[0019] The second mapping acquisition subunit is used to acquire the third mapping relationship between wireless communication information and location information;
[0020] Combined with sub-units, it is used to obtain a first mapping relationship based on the second mapping relationship and the third mapping relationship.
[0021] In one embodiment, the second determining unit includes:
[0022] The attribute acquisition subunit is used to acquire the attribute information of the target terminal;
[0023] A lookup subunit is used to look up at least one historical terminal associated with the attribute information based on the attribute information.
[0024] The first determining subunit is used to determine the target historical terminal among the historical terminals based on the historical attribute information of the historical terminals.
[0025] In one embodiment, the first determining subunit is configured to:
[0026] Calculate the similarity between the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal;
[0027] Based on the similarity, each historical terminal is sorted in descending order to obtain the first sorting result;
[0028] Based on the first sorting result, the historical terminal with the highest ranking is determined as the target historical terminal.
[0029] In one embodiment, the search unit includes:
[0030] The detection subunit is used to obtain the first historical target location information corresponding to the historical target wireless communication information according to the third mapping relationship when the historical positioning information is detected to contain historical target wireless communication information.
[0031] The second determining subunit is used to determine the target location information of the target terminal based on the first historical target location information.
[0032] In one embodiment, the second determining subunit includes:
[0033] The first determining module is used to determine the first historical target location information as target location information when the first historical target location information is a single entity.
[0034] The statistics module is used to count the frequency of occurrence of each first historical target location information when there are multiple first historical target location information.
[0035] The sorting module is used to sort each first historical target location information in descending order according to the frequency of occurrence, and obtain a second sorting result;
[0036] The second determining module is used to determine the first historical target location information with the highest ranking as the target location information based on the second sorting result.
[0037] In one embodiment, the second determining module is configured to:
[0038] Based on the second ranking result, determine the location information of the first historical target to be determined that ranks highest.
[0039] When the first historical target location information to be determined is a single entity, the first historical target location information to be determined is determined as the target location information;
[0040] When there are multiple first historical target location information to be determined, the occurrence time corresponding to each first historical target location information to be determined is obtained;
[0041] The location information of each first historical target to be determined is sorted in chronological order of appearance to obtain the third sorting result;
[0042] Based on the third sorting result, the last ranked undetermined first historical target location information is determined as the target location information.
[0043] In one embodiment, the information acquisition device further includes:
[0044] The third acquisition unit is used to acquire the historical Internet Protocol address of the target historical terminal when it is detected that the historical location information does not contain historical target wireless communication information.
[0045] The fourth acquisition unit is used to acquire the second historical target location information corresponding to the historical Internet Protocol address according to the first mapping relationship;
[0046] The third determining unit is used to determine the target location information of the target terminal based on the second historical target location information.
[0047] In one embodiment, the third determining unit includes:
[0048] A matching subunit is used to match multiple undetermined location information of the target terminal with multiple second historical target location information of the target historical terminal when there are multiple second historical target location information.
[0049] The first acquisition subunit is used to acquire third historical target location information based on the matching result, wherein the third historical target location information is at least one second historical target location information that is the same as any location information to be determined.
[0050] The third determining subunit is used to determine the target location information of the target terminal based on the third historical target location information.
[0051] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the information acquisition methods provided in embodiments of this application.
[0052] Furthermore, this application also provides a computer device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the information acquisition method provided in this application.
[0053] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in the information acquisition method provided in this application.
[0054] This application embodiment obtains the target location information of the target terminal; when the target location information does not contain target wireless communication information, it obtains a first mapping relationship; it obtains the target Internet Protocol address of the target terminal, and determines the location information to be determined corresponding to the target Internet Protocol address based on the first mapping relationship; when there are multiple locations to be determined, it determines a matching target historical terminal based on the attribute information of the target terminal; it searches for historical location information recorded by the target historical terminal, and determines the target location information of the target terminal based on the historical location information. Thus, by obtaining the target location information of the target terminal, when the target location information does not contain target wireless communication information, it obtains the location information to be determined corresponding to the target Internet Protocol address of the target terminal through the first mapping relationship; when there are multiple locations to be determined, it determines a matching target historical terminal based on the attribute information of the target terminal, and then determines the target location information of the target terminal based on the historical location information recorded by the target historical terminal. By combining multiple methods to obtain the location information of the target terminal, the efficiency of obtaining location information is improved. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 This is a schematic diagram illustrating an implementation scenario of an information acquisition method provided in this application.
[0057] Figure 2 This is a flowchart illustrating an information acquisition method provided in an embodiment of this application;
[0058] Figure 3 This is a schematic diagram illustrating the specific process of an information acquisition method provided in an embodiment of this application;
[0059] Figure 4 This is another flowchart illustrating an information acquisition method provided in an embodiment of this application;
[0060] Figure 5 This is a schematic diagram of the structure of the information acquisition device provided in the embodiments of this application;
[0061] Figure 6 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation
[0062] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0063] This application provides an information acquisition method, apparatus, and computer-readable storage medium. The information acquisition apparatus can be integrated into a computer device, which may be a server or a terminal, etc.
[0064] For better illustration of the embodiments of this application, please refer to the following terms:
[0065] GPS: Global Positioning System (GPS) is a high-precision radio navigation positioning system based on artificial Earth satellites. It can provide accurate geographical location, vehicle speed, and precise time information anywhere in the world and in near-Earth space.
[0066] Wi-Fi: Wireless communication technology used to connect network devices to each other wirelessly. A common example is a wireless router. Within the effective range of the wireless router's radio waves, users can connect to the internet via Wi-Fi. If the wireless router is connected to an Asymmetric Digital Subscriber Line (ADSL) or other internet access line, it is also known as a hotspot.
[0067] IP address (Internet Protocol address) is a unique address format provided by the IP protocol, which assigns a logical address to every network and every host on the Internet.
[0068] BSSID (Basic Service Set Identifier) refers to the MAC address of a site. In a Basic Service Set (BBS), all wireless devices are associated with an access point, which connects to other wired devices (or may not connect to them) and controls and dominates the transmission of all data in the entire Basic Service Set.
[0069] Wireless Access Point (AP): A wireless access point is a wireless switch used in wireless networks and is the core of the wireless network. A wireless AP is the access point for mobile computer users to access a wired network, mainly used in broadband homes, buildings, and campuses, with a coverage range of tens to hundreds of meters. Wireless AP (also known as session point or access bridge) is a broad term, encompassing not only simple wireless access points (wireless APs) but also wireless routers (including wireless gateways and wireless bridges) and other similar devices.
[0070] MAC address (Media Access Control Address): Also known as LAN address, Ethernet address, or Physical Address, it is an address used to identify the location of a network device. A MAC address uniquely identifies a network interface card (NIC) within a network. If a device has one or more NICs, each NIC needs and will have a unique MAC address.
[0071] Please see Figure 1 Taking the integration of information acquisition devices into computer equipment as an example, Figure 1 This is a schematic diagram illustrating an implementation scenario of the information acquisition method provided in this application, including server A and terminal B. Server A can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. Server A can acquire the target location information of the target terminal; when it detects that the target location information does not contain target wireless communication information, it acquires a first mapping relationship; it acquires the target Internet Protocol address of the target terminal, and determines the location information to be determined corresponding to the target Internet Protocol address based on the first mapping relationship; when there are multiple locations to be determined, it determines a matching target historical terminal based on the attribute information of the target terminal; it searches for historical location information recorded by the target historical terminal, and determines the target location information of the target terminal based on the historical location information.
[0072] Terminal B can be any network-connected computer device such as a smartphone, tablet, laptop, or desktop computer, but is not limited to these. Terminal B and server A can be connected directly or indirectly via wired or wireless communication. Server A can obtain data uploaded by terminal B to perform corresponding information retrieval operations; this application does not impose any restrictions on this.
[0073] It should be noted that, Figure 1 The illustrated scenario of the information acquisition method is merely an example. The implementation environment of the information acquisition method described in this application is intended to more clearly illustrate the technical solutions of this application and does not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will recognize that, with the evolution of information acquisition and the emergence of new business scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.
[0074] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0075] This embodiment will be described from the perspective of an information acquisition device, which can be integrated into a computer device, which can be a server or a terminal, and this application does not impose any restrictions here.
[0076] Please see Figure 2 , Figure 2 This is a flowchart illustrating the information acquisition method provided in an embodiment of this application. The information acquisition method includes:
[0077] In step 101, the target location information of the target terminal is obtained.
[0078] In order to promptly push relevant business district information, regional hotspots, and other information to users through the application based on regional characteristics, and to meet users' information access needs in a timely manner, and in order to help manufacturers understand the purchasing preferences of different mobile phones in different regions and formulate more suitable marketing strategies, it is necessary to obtain relatively accurate location information of the new mobile phone as soon as possible after the user purchases it.
[0079] In existing technologies, the location information of a new mobile phone is generally obtained through Wi-Fi signal field, GPS, and IP positioning. However, for positioning methods based on Wi-Fi signal field and GPS, Wi-Fi and GPS need to be turned on to obtain the corresponding location information. That is, the location information of the device can only be obtained if the user turns on Wi-Fi and GPS. Therefore, there are problems with insufficient coverage and untimely acquisition. As for the IP positioning method, since the IP address is variable, the location information obtained directly through the IP positioning method may not be accurate enough. Therefore, it can be seen that the existing technologies are not very efficient in obtaining the location information of a new mobile phone.
[0080] To address the above issues, this application provides an information acquisition method that combines multiple approaches, including Wi-Fi signal field, GPS, IP positioning, and obtaining location information from an old mobile phone, to acquire the location information of the target terminal, thereby improving the efficiency of location information acquisition. The specific implementation process of this method will be described in detail below.
[0081] First, the target location information of the target terminal is obtained. The target terminal can be a mobile phone, tablet computer, laptop computer, or other terminal. The target location information can be the location information associated with the target terminal. Specifically, it can be the location information uploaded to the server by the target terminal in various ways. This location information is used to determine the location information of the target terminal. It can include the target wireless communication information and target Internet Protocol address corresponding to the target terminal, or it can include the wireless communication information and Internet Protocol address corresponding to other terminals.
[0082] The target wireless communication information can be the wireless communication information (i.e., Wi-Fi data) reported by the target terminal. This information may include data such as the MAC address and signal strength obtained when the target terminal connects to Wi-Fi. Specifically, each wireless access point (AP) has a globally unique MAC address, and generally, wireless APs do not move for a period of time. Therefore, using wireless communication information to obtain the location information of the target terminal has a high accuracy rate. When the target terminal has Wi-Fi enabled, it can scan and collect surrounding wireless AP signals and obtain their MAC addresses and signal strength information. Regardless of whether the AP signal is encrypted, connected, or even if the signal strength is insufficient to appear in the wireless signal list, the MAC address broadcast by the wireless AP can still be collected and obtained. The target terminal can then report the obtained Wi-Fi data, including the MAC address and signal strength information, to the corresponding server. The server can retrieve the geographical location of each wireless AP based on this Wi-Fi data and, combined with the strength of each signal, calculate the location information of the target terminal using a differential algorithm.
[0083] The target Internet Protocol address is the IP address of the target terminal. This IP address can be a public IP address. When the target terminal connects to the network, it will be assigned a public IP address. Therefore, the location information of the target terminal can be further determined by obtaining the public IP address of the target terminal.
[0084] In one embodiment, the acquired target location information of the target terminal can be cleaned to improve the efficiency of information acquisition. Specifically, abnormal Wi-Fi data can be removed, such as abnormal BSSIDs, which are the MAC addresses of wireless APs. For example, when the BSSID cannot be obtained, a return result such as "0a:00:00:00:00:00" can be received, where 'a' can be any natural number. Therefore, data in the form of "0a:00:00:00:00:00" can be deleted to reduce meaningless data. Incorrectly formatted IP addresses can also be removed, such as IP addresses that are not in the format "bcde", where b, c, d, and e are values from 0 to 255, which can be decimal integers or binary numbers, and are not limited here.
[0085] In step 102, when it is detected that the target location information does not contain target wireless communication information, the first mapping relationship is obtained.
[0086] The first mapping relationship can be a mapping relationship between Internet Protocol address (i.e., IP address) and location information. Specifically, it can include the correspondence between each obtained IP address and one or more location information.
[0087] Since IP addresses are variable, using Wi-Fi data to obtain the location information of a target terminal is more accurate than using IP addresses. Therefore, Wi-Fi data should be prioritized for obtaining the target terminal's location information. Specifically, after obtaining the target terminal's location information, it's possible to check if target wireless communication information exists within that location information. If no target wireless communication information is detected, meaning the target terminal is not connected to Wi-Fi, a first mapping relationship can be obtained using Wi-Fi data from other terminals. Then, based on the mapping relationship between IP addresses and location information, the target terminal's location information can be further determined.
[0088] In one embodiment, the step of obtaining the first mapping relationship may include:
[0089] (1) Obtain the second mapping relationship between Internet Protocol address and wireless communication information.
[0090] When the target terminal's target location information does not contain target wireless communication information, the target terminal's location information can be obtained through the target terminal's IP address. To improve the accuracy of obtaining the target terminal's location information through the target terminal's IP address, the mapping relationship between IP address and location information can be obtained through Wi-Fi data with higher accuracy. Then, based on the mapping relationship between IP address and location information, the location information corresponding to the target terminal's IP address can be obtained.
[0091] Specifically, a second mapping relationship between Internet Protocol (IP) addresses and wireless communication information can be obtained. This can be achieved by collecting IP addresses and wireless communication information uploaded by other Wi-Fi connected terminals to obtain the correspondence between IP addresses and wireless communication information, thus deriving the second mapping relationship. Furthermore, since each MAC address corresponds to one Wi-Fi router, each Wi-Fi router can be identified by its wireless communication MAC address. Therefore, by obtaining the correspondence between the MAC address of the wireless communication information and the IP address, the mapping relationship between IP addresses and Wi-Fi routers can be obtained.
[0092] In one embodiment, in order to improve the accuracy of obtaining the location information of the target terminal through the IP address and reduce the impact of changes in the IP address on the accuracy of the target terminal's location information, data of Internet Protocol addresses and wireless communication information uploaded by other terminals on the same day can be obtained, thereby obtaining the mapping relationship between Internet Protocol addresses and wireless communication information on the same day.
[0093] (2) Obtain the third mapping relationship between wireless communication information and location information.
[0094] This can be achieved by obtaining wireless communication information and location information reported by other terminals, calculating the mapping relationship between each wireless communication information and location information, and obtaining the third mapping relationship between wireless communication information and location information, which is the mapping relationship between Wi-Fi router and location information.
[0095] (3) Obtain the first mapping relationship based on the second and third mapping relationships.
[0096] Specifically, the mapping relationship between Internet Protocol (IP) addresses and location information can be indirectly obtained based on the second mapping relationship between the obtained Internet Protocol (IP) addresses and wireless communication information, and the third mapping relationship between wireless communication information and location information. In particular, the mapping relationship between IP addresses and location information can be obtained based on the correspondence between IP addresses and Wi-Fi routers, and the correspondence between Wi-Fi routers and location information.
[0097] In one embodiment, when target wireless communication information is detected in the target location information, the location information of the target terminal can be calculated using Wi-Fi data such as MAC address and signal strength information in the target wireless communication information.
[0098] In step 103, the target Internet Protocol address of the target terminal is obtained, and the location information to be determined corresponding to the target Internet Protocol address is determined according to the first mapping relationship.
[0099] The target Internet Protocol address is the IP address corresponding to the target terminal. Specifically, it can be the IP address assigned to the target terminal when connecting to the network.
[0100] The target Internet Protocol (IP) address of the target terminal is obtained. Based on the first mapping relationship, i.e., the mapping relationship between the IP address and location information, the location information to be determined corresponding to the target IP address is determined. For example, assuming the target IP address of the target terminal is F, according to the first mapping relationship, the location information corresponding to IP address F is G, and G is the location information to be determined; assuming that the location information corresponding to IP address F is H and I, according to the first mapping relationship, H and I are the location information to be determined corresponding to the target IP address.
[0101] In step 104, when there are multiple location information to be determined, the matching target historical terminal is determined based on the attribute information of the target terminal.
[0102] The attribute information can be user information associated with the target terminal, such as the user's mobile phone number, ID card number, and email address. The target historical terminals are the historical terminals used by the user corresponding to the target terminal, used to determine the target terminal's location information.
[0103] When there are multiple location information to be determined, the historical terminals used by the user can be found through the attribute information of the target terminal. In one embodiment, the attribute information of the target terminal can be obtained, and at least one historical terminal associated with the attribute information can be found based on the attribute information. For example, the historical terminals associated with the mobile phone number information of the user associated with the target terminal can be obtained by obtaining the email information of the user associated with the target terminal, and so on. Thus, the location information of the target terminal can be obtained through the historical terminals used by the user.
[0104] Specifically, when the number of historical terminals associated with the target terminal's attribute information is only one, that historical terminal can be identified as the target historical terminal.
[0105] When multiple historical terminals associated with the target terminal's attribute information are found, to determine the target historical terminal that is closer to the target terminal's location information and improve the accuracy of the obtained target terminal's location information, the target historical terminal can be determined based on both the target terminal's attribute information and the historical attribute information of the historical terminals. The historical attribute information can include user information associated with the historical terminal, such as the user's mobile phone number, ID card number, and email address.
[0106] In one embodiment, to obtain target historical terminals that are relatively close to the target terminal and improve the accuracy of target location information, the similarity between the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal can be calculated. The historical terminal with the highest similarity can then be identified as the target historical terminal. Specifically, each historical terminal can be sorted in descending order based on the similarity to obtain a first sorting result. The historical terminal ranked highest in this first sorting result is then identified as the target historical terminal. Here, the target sub-attribute information refers to the sub-attribute information within the target terminal's attribute information, such as the mobile phone number, email address, or ID card information associated with the target terminal. The historical target sub-attribute information refers to the sub-attribute information within the historical attribute information of the target historical terminal that corresponds to the target sub-attribute information of the target terminal, such as the mobile phone number, email address, or ID card information associated with the target historical terminal.
[0107] Since the allocation of mobile phone number information is related to location information, in one embodiment, the target historical terminal can be determined based on the similarity of mobile phone numbers. That is, the target sub-attribute information can be the mobile phone number information associated with the target terminal, and the historical target sub-attribute information can be the mobile phone number information associated with the target historical terminal. Specifically, since the fourth to seventh digits of the mobile phone number are the area code, the similarity of the fourth to seventh digits of the mobile phone numbers corresponding to the target terminal and the historical terminal can be calculated, and then the historical terminal with the highest similarity can be determined as the target historical terminal.
[0108] In one embodiment, the target terminal can report account information, which is obtained from the target terminal's attribute information. Then, based on the associated mobile phone number, email address, ID card information, and other attribute information, at least one historical account can be obtained, and the historical terminal can be determined based on this historical account. When there is only one historical terminal, that historical terminal is identified as the target historical terminal; when there are multiple historical terminals, the usage records of each historical terminal can be obtained to determine the target historical terminal.
[0109] Specifically, the most recent usage time of each historical terminal can be obtained based on its usage records. Then, historical terminals with usage records within a preset time period can be identified and designated as target historical terminals. For example, assuming a preset time period of 30 days, historical terminals with usage records within the past 30 days can be identified based on their most recent usage time; these are the historical terminals used by the user within the past 30 days. The specific value of this preset time period can be determined based on actual circumstances and is not limited here.
[0110] In one embodiment, the most recently used historical terminal can be obtained based on the usage records of each historical terminal, and then identified as the target historical terminal.
[0111] In one embodiment, when the location information to be determined is a single one, the IP address of the target terminal and the location information have a one-to-one correspondence, indicating that the IP address of the target terminal is relatively stable, and the location information obtained based on the IP address of the target terminal has a high accuracy rate. Therefore, the location information to be determined can be identified as the location information of the target terminal.
[0112] In step 105, the historical location information recorded by the target terminal is retrieved, and the target location information of the target terminal is determined based on the historical location information.
[0113] Among them, historical location information can be the location information associated with the target's historical terminals. Specifically, it can be the location information uploaded to the server by the target's historical terminals in various ways.
[0114] Specifically, the historical location information recorded by the target historical terminal can be searched. For this historical location information, Wi-Fi data with higher accuracy can still be prioritized to obtain the target historical terminal's location information. Then, it can be detected whether historical target wireless communication information exists in this historical location information. When historical target wireless communication information is detected, the first historical target location information corresponding to this historical target wireless communication information is obtained according to the third mapping relationship. Then, the target location information of the target terminal is determined based on this first historical target location information. Here, the historical target wireless communication information is the wireless communication information reported by the target historical terminal.
[0115] In one embodiment, when there are multiple first historical target location information entries, to improve the accuracy of the target location information, the frequency of occurrence of each first historical target location information entry in the historical positioning information can be statistically analyzed, and the first historical target location information entry with the highest frequency of occurrence can be determined as the target location information of the target terminal. Specifically, each first historical target location information entry can be sorted in descending order according to the frequency of occurrence to obtain a second sorting result. Then, the first historical target location information entry with the highest ranking can be determined as the target location information based on the second sorting result.
[0116] In one embodiment, when the first historical target location information is a single piece, it indicates that the location information of the target historical terminal changes relatively stably, and the accuracy of the target location information obtained through the first historical target location information is high. Therefore, the first historical target location information can be determined as the target location information.
[0117] In one embodiment, when it is detected that the historical location information does not contain historical target wireless communication information, the location information of the target historical terminal can be obtained through the mapping relationship between IP address and location information. Specifically, the historical Internet Protocol address of the target historical terminal can be obtained; the second historical target location information corresponding to the historical Internet Protocol address can be obtained according to the first mapping relationship; and the target location information can be determined according to the second historical target location information.
[0118] In one embodiment, when there are multiple second historical target location information, in order to improve the accuracy of the target location information, multiple undetermined location information corresponding to the target terminal can be matched with multiple second historical target location information of the target historical terminal. Based on the matching result, third historical target location information is obtained. This third historical target location information is at least one second historical target location information that is identical to any undetermined location information. The target location information of the target terminal is determined based on this third historical target location information. For example, it can be assumed that the multiple undetermined location information corresponding to the target terminal are I, J, and K, and the multiple second historical target location information of the target historical terminal are J and L. Then, the multiple undetermined location information corresponding to the target terminal is matched with the multiple second historical target location information of the target historical terminal. Based on the matching result, the second historical target location information that is identical to any undetermined location information is L, i.e., the third historical target location information L is obtained. Therefore, L can be used to determine the target location information of the target terminal.
[0119] In one embodiment, to improve the accuracy of determining the target terminal's target location information based on the third historical target location information, when the third historical target location information is a single piece, the target location information can be determined based on the third historical target location information; when there are multiple third historical target location information pieces, to avoid significant changes in the target terminal's location information compared to the target historical terminal's location information due to a long time span, the third historical target location information with the latest reporting time can be determined as the target location information. Specifically, the time information carried by each third historical target location information can be obtained, and this time information is used to identify the reporting time of each third historical target location information; each third historical target location information is sorted according to the time information in chronological order to obtain a second sorting result; the third historical target location information ranked last is determined as the target location information according to the second sorting result, that is, the third historical target location information with the latest reporting time is determined as the target location information.
[0120] In one embodiment, since the allocation of mobile phone number information is related to location information, in order to obtain target location information with a high accuracy rate, the similarity between the target terminal's mobile phone number information and other similar terminals with a similarity greater than a preset threshold can be found. The location information of the target terminal can then be determined using the location information of these similar terminals. The preset threshold is a critical value; when the similarity between the mobile phone number information of a certain terminal and the mobile phone number information of the target terminal exceeds this critical value, that terminal can be identified as a similar terminal to the target terminal. There can be one or more similar terminals. Furthermore, by searching the historical location information recorded by these similar terminals, the location information of the similar terminals can be determined, thereby determining the target location information of the target terminal.
[0121] As can be seen from the above, the embodiments of this application obtain the target location information of the target terminal; when the target location information does not contain target wireless communication information, a first mapping relationship is obtained; the target Internet Protocol address of the target terminal is obtained, and the location information to be determined corresponding to the target Internet Protocol address is determined according to the first mapping relationship; when there are multiple locations to be determined, a matching target historical terminal is determined according to the attribute information of the target terminal; and the historical location information recorded by the target historical terminal is searched, and the target location information of the target terminal is determined according to the historical location information. Thus, by obtaining the target location information of the target terminal, when the target location information does not contain target wireless communication information, the location information to be determined corresponding to the target Internet Protocol address of the target terminal is obtained by obtaining the first mapping relationship; when there are multiple locations to be determined, a matching target historical terminal is determined according to the attribute information of the target terminal; and then the target location information of the target terminal is determined according to the historical location information recorded by the target historical terminal. By combining multiple methods to obtain the location information of the target terminal, the efficiency of obtaining location information is improved.
[0122] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.
[0123] In this embodiment, the information acquisition device will be specifically integrated into a computer device as an example for explanation. The information acquisition method uses a server as the execution entity and a mobile phone as the target terminal for specific description. For details, please refer to... Figure 3 , Figure 3 This is a schematic diagram illustrating the specific process of an information acquisition method provided in an embodiment of this application.
[0124] For a better description of the embodiments of this application, please refer to the following: Figure 3 and Figure 4 .like Figure 4 As shown, Figure 4 Another flowchart illustrating the information acquisition method provided in this application embodiment is shown below.
[0125] In step 201, the server obtains the target location information of the target terminal. When it is detected that the target location information does not contain target wireless communication information, the server obtains the second mapping relationship between the Internet Protocol address and the wireless communication information, and obtains the third mapping relationship between the wireless communication information and the location information. Based on the second mapping relationship and the third mapping relationship, the server obtains the first mapping relationship.
[0126] In this embodiment, a new mobile phone is used as an example to illustrate the specific implementation. This new mobile phone is one recently purchased by the user. To obtain the location information of the new mobile phone as quickly as possible, the server acquires the target location information of the new mobile phone and uses this target location information to obtain the new mobile phone's location information.
[0127] Specifically, you can prioritize obtaining the new phone's location information using Wi-Fi data, which has higher accuracy. First, please continue to refer to... Figure 3 This method can obtain the target location information of a new mobile phone, and then detect whether target wireless communication information exists within that location information. If no target wireless communication information is detected, the new mobile phone's location information is obtained through its IP address. To reduce the impact of IP address variability on the accuracy of the location information, a second mapping relationship between Internet Protocol (IP) addresses and wireless communication information, and a third mapping relationship between wireless communication information and location information, can be obtained. Based on these second and third mapping relationships, a first mapping relationship between IP addresses and location information is derived. The location information corresponding to the new mobile phone's IP address can then be obtained through this first mapping relationship.
[0128] In one embodiment, when the target location information is detected to contain target wireless communication information, the location information of the new mobile phone can be calculated using Wi-Fi data such as the MAC address and signal strength information in the target wireless communication information reported by the new mobile phone.
[0129] In step 202, the server obtains the target Internet Protocol address of the target terminal and determines the location information to be determined corresponding to the target Internet Protocol address based on the first mapping relationship.
[0130] The target Internet Protocol address is the IP address corresponding to the new mobile phone; specifically, it can be the IP address assigned to the new mobile phone when it connects to the network.
[0131] The target Internet Protocol (IP) address of the new mobile phone is obtained. Based on the first mapping relationship, that is, the mapping relationship between the IP address and location information, the location information to be determined corresponding to the target IP address is determined. For example, assuming the target IP address of the new mobile phone is F, according to the first mapping relationship, the location information corresponding to IP address F is G, and G is the location information to be determined; assuming that the location information corresponding to IP address F is H and I, according to the first mapping relationship, H and I are the location information to be determined corresponding to the target IP address.
[0132] In step 203, when there are multiple locations to be determined, the server obtains the attribute information of the target terminal and searches for at least one historical terminal associated with the attribute information based on the attribute information.
[0133] The attribute information can be user information associated with the new mobile phone, such as the user's mobile phone number, ID card number, and email address.
[0134] Please continue to refer to this. Figure 3 When there are multiple location information to be determined, the historical mobile phones used by the user can be found through the attribute information of the new mobile phone. In one embodiment, the attribute information of the new mobile phone can be obtained, and at least one historical mobile phone associated with the attribute information can be found based on the attribute information. For example, the historical mobile phone associated with the mobile phone number information of the user associated with the new mobile phone can be obtained by obtaining the email information of the user associated with the new mobile phone, and so on. Thus, the location information of the new mobile phone can be obtained through the historical mobile phones used by the user.
[0135] In step 204, the server calculates the similarity between the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal. Based on the similarity, each historical terminal is sorted in descending order to obtain a first sorting result. Based on the first sorting result, the historical terminal with the highest ranking is determined as the target historical terminal.
[0136] To improve the accuracy of target location information by obtaining target historical phones that are relatively close to the new phone, the similarity between the target sub-attribute information of the new phone and the historical target sub-attribute information of each historical phone can be calculated. The historical phone with the highest similarity can then be identified as the target historical phone. Specifically, each historical phone can be sorted in descending order of similarity to obtain a first sorting result. The historical phone ranked highest in this first sorting result is then identified as the target historical phone. Since the allocation of phone number information is related to location information, the target sub-attribute information can be the phone number information associated with the new phone, and the historical target sub-attribute information can be the phone number information associated with the target historical phone.
[0137] In step 205, the server searches for the historical location information recorded by the target historical terminal. When it detects that the historical location information contains historical target wireless communication information, it obtains the first historical target location information corresponding to the historical target wireless communication information according to the third mapping relationship.
[0138] Among them, historical location information can be the location information associated with the target's historical mobile phone. Specifically, it can be the location information uploaded to the server by the target's historical mobile phone in various ways.
[0139] Specifically, the historical location information recorded by the target's historical mobile phone can be searched. For this historical location information, Wi-Fi data with higher accuracy is prioritized to obtain the target's historical mobile phone location information. This allows for the detection of whether historical target wireless communication information exists within this historical location information. When historical target wireless communication information is detected, the first historical target location information corresponding to this historical target wireless communication information is obtained according to the third mapping relationship. Then, the target location information of the new mobile phone is determined based on this first historical target location information. Here, the historical target wireless communication information refers to the wireless communication information reported by the target's historical mobile phone.
[0140] In step 206, when there are multiple first historical target location information, the server counts the frequency of occurrence of each first historical target location information, and sorts each first historical target location information in descending order according to the frequency of occurrence to obtain a second sorting result.
[0141] To improve the accuracy of target location information, the frequency of occurrence of each historical target location can be statistically analyzed, and the historical target location with the highest frequency can be identified as the target location for the new mobile phone. Specifically, each historical target location can be sorted in descending order of frequency to obtain a second sorting result. The target location information within the historical target location information can then be determined based on this second sorting result.
[0142] In one embodiment, when the first historical target location information is a single one, it indicates that the first historical target location information is relatively stable and the accuracy of the target location information obtained through the first historical target location information is high. Therefore, the first historical target location information can be determined as the target location information.
[0143] In step 207, the server determines the first historical target location information with the highest ranking as the target location information based on the second sorting result.
[0144] In order to obtain more accurate location information, the first historical target location information with the highest frequency can be determined as the target location information of the new mobile phone. Specifically, the server can determine the first historical target location information with the highest ranking as the target location information based on the second ranking result.
[0145] In one embodiment, when there are multiple first historical target location information with the highest frequency of occurrence, i.e., multiple first historical target location information with the highest ranking, the latest first historical target location information can be determined as the target location information by obtaining the occurrence time of each highest-ranking first historical target location information. This avoids the situation where the location information of the new mobile phone changes significantly due to a large time span, thereby increasing the accuracy of the target location information. Specifically, the highest-ranking first historical target location information can be determined according to the second sorting result to obtain the first historical target location information to be determined. Then, the number of the first historical target location information to be determined can be detected. When there is only one first historical target location information to be determined, it can be directly determined as the target location information. When there are multiple first historical target location information to be determined, the occurrence time corresponding to each first historical target location information to be determined can be obtained. Each first historical target location information to be determined can be sorted according to the order of occurrence time from first to last to obtain a third sorting result. Then, the latest-ranking first historical target location information to be determined can be determined as the target location information based on the third sorting result.
[0146] For example, we can assume that the first historical target location information k1, k2, and k3 obtained from the second sorting result have the same frequency of occurrence and are ranked first. Then we obtain the first historical target location information k1, k2, and k3 to be determined. We can obtain the occurrence time corresponding to each of the first historical target location information k1, k2, and k3 to be determined. Assuming that the occurrence time of k1 is July 2020, the occurrence time of k2 is December 2020, and the occurrence time of k3 is January 2020, we sort each of the first historical target location information to be determined according to the order of occurrence time to obtain the third sorting result k3, k1, and k2. Then, based on the third sorting result, the last ranked first historical target location information k2 to be determined is determined as the target location information.
[0147] In one embodiment, when the server detects that the historical location information does not contain historical target wireless communication information, it can obtain the location information of the historical mobile phone through the IP address of the historical mobile phone, and then obtain the location information of the new mobile phone based on the location information of the historical mobile phone. Specifically, the server can obtain the historical Internet Protocol address of the target historical terminal; obtain the second historical target location information corresponding to the historical Internet Protocol address according to the first mapping relationship; and then determine the location information of the historical mobile phone based on the second historical target location information.
[0148] In one embodiment, when there are multiple second historical target location information, in order to improve the accuracy of the target location information, the server can match multiple undetermined location information of the target terminal with multiple second historical target location information of the target historical terminal, and then obtain third historical target location information based on the matching result. The third historical target location information is at least one second historical target location information that is the same as any undetermined location information, and the target location information of the target terminal is determined based on the third historical target location information.
[0149] As can be seen from the above, in this embodiment of the application, the target location information of the target terminal is obtained by the server. When it is detected that the target location information does not contain target wireless communication information, a second mapping relationship between the Internet Protocol address and the wireless communication information is obtained, and a third mapping relationship between the wireless communication information and the location information is obtained. Based on the second mapping relationship and the third mapping relationship, a first mapping relationship is obtained. The server obtains the target Internet Protocol address of the target terminal and determines the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship. When there are multiple locations to be determined, the server obtains the attribute information of the target terminal and searches for at least one historical terminal associated with the attribute information according to the attribute information. The server calculates the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal. The server uses similarity to sort historical terminals in descending order, obtaining a first sorting result. Based on this first sorting result, the highest-ranked historical terminal is identified as the target historical terminal. The server searches for the historical location information recorded by the target historical terminal. When historical target wireless communication information is detected within this historical location information, the server obtains the first historical target location information corresponding to this historical target wireless communication information based on the third mapping relationship. When there are multiple first historical target location information entries, the server counts the frequency of occurrence of each entry and sorts them in descending order based on this frequency, obtaining a second sorting result. Based on this second sorting result, the server identifies the highest-ranked first historical target location information as the target location information. By acquiring the target location information of the target terminal, when the target location information does not contain target wireless communication information, the location information to be determined corresponding to the target Internet Protocol address of the target terminal is obtained by acquiring the first mapping relationship. When there are multiple locations to be determined, the matching target historical terminal is determined according to the attribute information of the target terminal, and then the location information of the target historical terminal is determined according to the historical location information recorded by the target historical terminal. Finally, the target location information of the target terminal is determined according to the location information of the target terminal. In this way, the location information of the target terminal is obtained by combining multiple schemes, thereby improving the efficiency of location information acquisition.
[0150] To better implement the above methods, embodiments of the present invention also provide an information acquisition device, which can be integrated into a computer device, which can be a server.
[0151] For example, such as Figure 5 The diagram shown is a structural schematic of an information acquisition device provided in an embodiment of this application. This information acquisition device may include a first acquisition unit 301, a second acquisition unit 302, a first determination unit 303, a second determination unit 304, and a search unit 305, as follows:
[0152] The first acquisition unit 301 is used to acquire the target positioning information of the target terminal;
[0153] The second acquisition unit 302 is used to acquire the first mapping relationship when it is detected that the target positioning information does not contain target wireless communication information;
[0154] The first determining unit 303 is used to obtain the target Internet Protocol address of the target terminal and determine the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship.
[0155] The second determining unit 304 is used to determine the matching target historical terminal based on the attribute information of the target terminal when there are multiple location information to be determined.
[0156] The lookup unit 305 is used to look up historical location information recorded by the target historical terminal and determine the target location information of the target terminal based on the historical location information.
[0157] In one embodiment, the second acquisition unit 302 includes:
[0158] The first mapping acquisition subunit is used to acquire the second mapping relationship between Internet Protocol address and wireless communication information;
[0159] The second mapping acquisition subunit is used to acquire the third mapping relationship between wireless communication information and location information;
[0160] Combined with sub-units, it is used to obtain the first mapping relationship based on the second mapping relationship and the third mapping relationship.
[0161] In one embodiment, the second determining unit 304 includes:
[0162] The attribute acquisition subunit is used to acquire the attribute information of the target terminal;
[0163] The lookup sub-unit is used to find at least one historical terminal associated with the attribute information based on the attribute information.
[0164] The first determining subunit is used to determine the target historical terminal in the historical terminal based on the historical attribute information of the historical terminal.
[0165] In one embodiment, the first determining subunit is configured to:
[0166] Calculate the similarity between the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal;
[0167] Based on this similarity, each historical terminal is sorted in descending order to obtain the first sorting result;
[0168] Based on the first ranking result, the historical terminal with the highest ranking is determined as the target historical terminal.
[0169] In one embodiment, the lookup unit 305 includes:
[0170] The detection subunit is used to obtain the first historical target location information corresponding to the historical target wireless communication information according to the third mapping relationship when the historical location information is detected to contain historical target wireless communication information.
[0171] The second determining subunit is used to determine the target location information of the target terminal based on the first historical target location information.
[0172] In one embodiment, the second determining subunit includes:
[0173] The first determining module is used to determine the first historical target location information as target location information when the first historical target location information is a single instance.
[0174] The statistics module is used to count the frequency of occurrence of each first historical target location information when there are multiple first historical target location information.
[0175] The sorting module is used to sort each first historical target location information in descending order according to the frequency of occurrence, and obtain a second sorting result;
[0176] The second determining module is used to determine the first historical target location information with the highest ranking as the target location information based on the second sorting result.
[0177] In one embodiment, the second determining module is configured to:
[0178] Based on the second ranking result, determine the location information of the first historical target to be determined that ranks highest.
[0179] When the location information of the first historical target to be determined is a single entity, the location information of the first historical target to be determined is determined as the target location information.
[0180] When there are multiple pieces of information about the location of the first historical target to be determined, obtain the occurrence time corresponding to each piece of information about the location of the first historical target to be determined.
[0181] The location information of each first historical target to be determined is sorted in chronological order of appearance to obtain the third sorting result;
[0182] Based on the third ranking result, the last-ranked historical target location information is determined as the target location information.
[0183] In one embodiment, the information acquisition device further includes:
[0184] The third acquisition unit is used to acquire the historical Internet Protocol address of the target historical terminal when it is detected that the historical location information does not contain historical target wireless communication information.
[0185] The fourth acquisition unit is used to acquire the second historical target location information corresponding to the historical Internet Protocol address according to the first mapping relationship;
[0186] The third determining unit is used to determine the target location information of the target terminal based on the second historical target location information.
[0187] In one embodiment, the third determining unit includes:
[0188] The matching subunit is used to match the multiple undetermined location information of the target terminal with the multiple second historical target location information of the target historical terminal when there are multiple second historical target location information.
[0189] The first acquisition subunit is used to acquire third historical target location information based on the matching result. The third historical target location information is at least one second historical target location information that is the same as any location information to be determined.
[0190] The third determining subunit is used to determine the target location information of the target terminal based on the third historical target location information.
[0191] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.
[0192] As can be seen from the above, the embodiments of this application obtain the target location information of the target terminal through the first acquisition unit 301; when the second acquisition unit 302 detects that the target location information does not contain target wireless communication information, it acquires the first mapping relationship; the first determination unit 303 acquires the target Internet Protocol address of the target terminal and determines the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship; when there are multiple locations to be determined, the second determination unit 304 determines the matching target historical terminal according to the attribute information of the target terminal; and the search unit 305 searches for the historical location information recorded by the target historical terminal and determines the target location information of the target terminal according to the historical location information. Thus, by acquiring the target location information of the target terminal, when the target location information does not contain target wireless communication information, the location information to be determined corresponding to the target Internet Protocol address of the target terminal is obtained by acquiring the first mapping relationship; when there are multiple locations to be determined, the matching target historical terminal is determined according to the attribute information of the target terminal, and then the target location information of the target terminal is determined according to the historical location information recorded by the target historical terminal. By combining multiple methods to acquire the location information of the target terminal, the efficiency of acquiring location information is improved.
[0193] This application also provides a computer device, such as... Figure 6 As shown, it illustrates a structural diagram of a computer device involved in an embodiment of this application. This computer device may be a server, specifically:
[0194] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 6 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0195] The processor 401 is the control center of the computer device. It connects various parts of the computer device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 402, and by calling data stored in the memory 402, it performs various functions of the computer device and processes data, thereby performing overall detection of the computer device. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 401.
[0196] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and information retrieval by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0197] The computer device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0198] The computer device may also include an input unit 404, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0199] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the computer device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:
[0200] Obtain the target location information of the target terminal; when the target location information does not contain target wireless communication information, obtain the first mapping relationship; obtain the target Internet Protocol address of the target terminal, and determine the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship; when there are multiple locations to be determined, determine the matching target historical terminal according to the attribute information of the target terminal; search for the historical location information recorded by the target historical terminal, and determine the target location information of the target terminal according to the historical location information.
[0201] The specific implementation of each of the above operations can be found in the preceding embodiments, and will not be repeated here. It should be noted that the computer device provided in this application embodiment and the information acquisition method in the above embodiments belong to the same concept, and its specific implementation process can be found in the above method embodiments, and will not be repeated here.
[0202] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0203] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the information acquisition methods provided in embodiments of this application. For example, the instructions can execute the following steps:
[0204] Obtain the target location information of the target terminal; when the target location information does not contain target wireless communication information, obtain the first mapping relationship; obtain the target Internet Protocol address of the target terminal, and determine the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship; when there are multiple locations to be determined, determine the matching target historical terminal according to the attribute information of the target terminal; search for the historical location information recorded by the target historical terminal, and determine the target location information of the target terminal according to the historical location information.
[0205] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0206] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the information acquisition methods provided in the embodiments of this application, the beneficial effects that any of the information acquisition methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0207] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.
[0208] The above provides a detailed description of an information acquisition method, apparatus, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An information acquisition method, characterized in that, include: Obtain the target location information of the target terminal; When it is detected that the target location information does not contain target wireless communication information, a first mapping relationship is obtained, including: obtaining a second mapping relationship between Internet Protocol address and wireless communication information, obtaining a third mapping relationship between wireless communication information and location information, and obtaining a first mapping relationship based on the second mapping relationship and the third mapping relationship, wherein the first mapping relationship includes the mapping relationship between Internet Protocol address and location information; Obtain the target Internet Protocol address of the target terminal, and determine the location information to be determined corresponding to the target Internet Protocol address based on the first mapping relationship; When there are multiple locations to be determined, a matching target historical terminal is determined based on the attribute information of the target terminal; the target historical terminal is a terminal that is associated with the same user account as the target terminal and has recorded historical location information. Locating the historical location information recorded by the target historical terminal and determining the target location information of the target terminal based on the historical location information includes: when it is detected that there is no historical target wireless communication information in the historical location information, obtaining the historical Internet Protocol address of the target historical terminal; Based on the first mapping relationship, obtain the second historical target location information corresponding to the historical Internet Protocol address; Determining the target location information of the target terminal based on the second historical target location information includes: when there are multiple second historical target location information, matching multiple undetermined location information of the target terminal with multiple second historical target location information of the target historical terminal; obtaining third historical target location information according to the matching result, wherein the third historical target location information is at least one second historical target location information that is the same as any undetermined location information; and determining the target location information of the target terminal based on the third historical location information.
2. The information acquisition method as described in claim 1, characterized in that, The step of determining the matching target historical terminal based on the attribute information of the target terminal includes: Obtain the attribute information of the target terminal; Based on the attribute information, locate at least one historical terminal associated with the attribute information; The target historical terminal is determined based on the historical attribute information of the historical terminal.
3. The information acquisition method as described in claim 2, characterized in that, The step of determining the target historical terminal among the historical terminals based on the historical attribute information of the historical terminals includes: Calculate the similarity between the target sub-attribute information of the target terminal and the historical target sub-attribute information of each historical terminal; Based on the similarity, each historical terminal is sorted in descending order to obtain the first sorting result; Based on the first sorting result, the historical terminal with the highest ranking is determined as the target historical terminal.
4. The information acquisition method as described in claim 1, characterized in that, Determining the target location information of the target terminal based on the historical location information includes: When historical target wireless communication information is detected in the historical location information, the first historical target location information corresponding to the historical target wireless communication information is obtained according to the third mapping relationship. The target location information of the target terminal is determined based on the first historical target location information.
5. The information acquisition method as described in claim 4, characterized in that, Determining the target location information of the target terminal based on the first historical target location information includes: When the first historical target location information is a single entity, the first historical target location information is determined as the target location information; When there are multiple first historical target location information, the frequency of occurrence of each first historical target location information is counted. Based on the frequency of occurrence, the location information of each first historical target is sorted in descending order to obtain a second sorting result; Based on the second sorting result, the first historical target location information with the highest ranking is determined as the target location information.
6. The information acquisition method as described in claim 5, characterized in that, The step of determining the highest-ranked historical target location information as the target location information based on the second sorting result includes: Based on the second ranking result, determine the location information of the first historical target to be determined that ranks highest. When the first historical target location information to be determined is a single entity, the first historical target location information to be determined is determined as the target location information; When there are multiple first historical target location information to be determined, the occurrence time corresponding to each first historical target location information to be determined is obtained; The location information of each first historical target to be determined is sorted in chronological order of appearance to obtain the third sorting result; Based on the third sorting result, the last ranked undetermined first historical target location information is determined as the target location information.
7. An information acquisition device, characterized in that, include: The first acquisition unit is used to acquire the target location information of the target terminal; The second acquisition unit is configured to acquire a first mapping relationship when it is detected that the target location information does not contain target wireless communication information, including: acquiring a second mapping relationship between Internet Protocol address and wireless communication information, acquiring a third mapping relationship between wireless communication information and location information, and obtaining a first mapping relationship based on the second mapping relationship and the third mapping relationship, wherein the first mapping relationship includes the mapping relationship between Internet Protocol address and location information; The first determining unit is used to obtain the target Internet Protocol address of the target terminal and determine the location information to be determined corresponding to the target Internet Protocol address according to the first mapping relationship. The second determining unit is used to determine a matching target historical terminal based on the attribute information of the target terminal when there are multiple location information to be determined; the target historical terminal is a terminal that has the same user account associated with the target terminal and has recorded historical location information. The lookup unit is used to look up the historical location information recorded by the target historical terminal and determine the target location information of the target terminal based on the historical location information, including: when it is detected that the historical location information does not contain historical target wireless communication information, obtaining the historical Internet Protocol address of the target historical terminal; Based on the first mapping relationship, obtain the second historical target location information corresponding to the historical Internet Protocol address; Determining the target location information of the target terminal based on the second historical target location information includes: when there are multiple second historical target location information, matching multiple undetermined location information of the target terminal with multiple second historical target location information of the target historical terminal; obtaining third historical target location information according to the matching result, wherein the third historical target location information is at least one second historical target location information that is the same as any undetermined location information; and determining the target location information of the target terminal based on the third historical location information.