CN116074952A - Terminal positioning method, device, electronic equipment and storage medium - Google Patents

Terminal positioning method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116074952A
CN116074952A CN202310116952.9A CN202310116952A CN116074952A CN 116074952 A CN116074952 A CN 116074952A CN 202310116952 A CN202310116952 A CN 202310116952A CN 116074952 A CN116074952 A CN 116074952A
Authority
CN
China
Prior art keywords
terminal
historical
information
position information
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310116952.9A
Other languages
Chinese (zh)
Inventor
刘志健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202310116952.9A priority Critical patent/CN116074952A/en
Publication of CN116074952A publication Critical patent/CN116074952A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The disclosure relates to a terminal positioning method, a device, an electronic device and a storage medium, comprising: receiving a target service request sent by a terminal; searching first historical terminal position information matched with target access state information in prestored historical access position information; the first historical terminal location information is determined as the current location of the terminal. Thus, if multiple access states for a service are the same or similar, then a corresponding multiple access request is generated and issued in close proximity to the same location with a high probability. Therefore, the historical access state information which is the same as or similar to the current access state information can be searched, the historical terminal position information corresponding to the searched historical access state information can be used as the current position of the terminal, the determined position can be ensured to be relatively close to the current actual position of the terminal, and the positioning accuracy is high.

Description

Terminal positioning method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and more particularly, to a terminal positioning method, apparatus, electronic device, and storage medium.
Background
Some Applications (APP) may need to collect user location information during use. For example, a restaurant APP needs to collect a user's location to accurately deliver a meal ordered by the user to the user; video class APP needs to collect the user's location to recommend videos published by other users located nearby the user to the user, etc.
In the related art, internet protocol (Internet Protocol, IP) address location technology is mainly used to determine the geographic location of a user. However, the number of IPs is limited, so that it is a common phenomenon that a plurality of devices share one IP, and even a case where terminals of users in different markets in the same province share the same IP may occur. At this time, the location determined by the IP address may be far from the location where the user is actually located, and the positioning accuracy is poor.
Disclosure of Invention
The disclosure provides a terminal positioning method, a device, an electronic apparatus and a storage medium, so as to at least solve the problem that in the above related technology, a position determined by an IP address may be far away from a position where a user is actually located, and positioning accuracy is poor.
According to a first aspect of an embodiment of the present disclosure, there is provided a terminal positioning method, including: receiving a target service request sent by a terminal, wherein the target service request comprises target access state information when the terminal accesses target service; searching first historical terminal position information matched with the target access state information in prestored historical access position information, wherein the historical access position information comprises historical access state information and corresponding historical terminal position information when the terminal accesses the target service in a historical manner; and determining the first historical terminal position information as the current position of the terminal.
Optionally, the searching the first historical terminal position information matched with the target access state information in the prestored historical access position information includes: searching first historical access location information comprising first historical access status information matched with the target access status information from the prestored historical access location information; and acquiring the first historical terminal position information included in the first historical access position information.
Optionally, the determining the first historical terminal location information as the current location of the terminal includes: and determining the first historical terminal position information as the current position of the terminal under the condition that the storage duration of the first historical terminal position information does not exceed a preset threshold value.
Optionally, before searching the first historical terminal position information matched with the target access state information in the prestored historical access position information, the method further comprises: determining whether the target service accessed at this time is a service for prohibiting acquisition of the terminal position; and under the condition that the target service accessed at this time is the service for prohibiting acquisition of the terminal position, executing the step of searching first historical terminal position information matched with the target access state information in the prestored historical access position information.
Optionally, the method further comprises: under the condition that the target service accessed at this time is a service allowing the acquisition of the terminal position, the target service request also contains the current position information of the terminal; and covering the current position information of the terminal with the historical terminal position information matched with the target access state information in the historical access position information.
Optionally, the method further comprises: and providing a target service related to the current position to the terminal based on the determined current position of the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a terminal positioning device, including: the receiving module is configured to receive a target service request sent by a terminal, wherein the target service request comprises target access state information when the terminal accesses a target service; the searching module is configured to search first historical terminal position information matched with the target access state information in prestored historical access position information, wherein the historical access position information comprises historical access state information and corresponding historical terminal position information when the terminal accesses the target service in a historical manner; and a current position determining module configured to determine the first historical terminal position information as a current position of the terminal.
Optionally, the search module is configured to: searching first historical access location information comprising first historical access status information matched with the target access status information from the prestored historical access location information; and acquiring the first historical terminal position information included in the first historical access position information.
Optionally, the current location determination module is configured to: and determining the first historical terminal position information as the current position of the terminal under the condition that the storage duration of the first historical terminal position information does not exceed a preset threshold value.
Optionally, the terminal positioning device further includes: the service determining module is configured to determine whether the target service accessed at the time is a service for prohibiting acquisition of the terminal position; and the execution module is configured to execute the step of searching the first historical terminal position information matched with the target access state information in the prestored historical access position information under the condition that the target service accessed at this time is the service of prohibiting acquisition of the terminal position.
Optionally, the terminal positioning device further comprises a coverage module: under the condition that the target service accessed at this time is a service allowing the acquisition of the terminal position, the target service request also contains the current position information of the terminal; the overlay module is configured to: and covering the current position information of the terminal with the historical terminal position information matched with the target access state information in the historical access position information.
Optionally, the terminal positioning device further includes: a providing module configured to provide a target service related to a determined current location of the terminal to the terminal based on the current location.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement a terminal positioning method according to the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform a terminal positioning method according to the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising computer instructions which, when executed by at least one processor, implement a terminal positioning method according to the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
if multiple access states for a service are all the same or similar, then a corresponding multiple access request is generated and issued in close proximity to the same location. Therefore, the historical access state information which is the same as or similar to the current access state information can be searched, the historical terminal position information corresponding to the searched historical access state information can be used as the current position of the terminal, the determined position can be ensured to be relatively close to the current actual position of the terminal, and the positioning accuracy is high.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure and do not constitute an undue limitation on the disclosure.
Fig. 1 is a flowchart illustrating a terminal positioning method according to an exemplary embodiment of the present disclosure;
fig. 2 is an interactive flowchart illustrating a terminal positioning method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a paraphrase diagram showing various fields stored within a database according to an exemplary embodiment of the present disclosure;
FIG. 4 is an interactive flow chart illustrating another terminal positioning method according to an exemplary embodiment of the present disclosure;
fig. 5 is a block diagram illustrating a terminal positioning device according to an exemplary embodiment of the present disclosure;
fig. 6 is a block diagram illustrating an electronic device according to an exemplary embodiment of the present disclosure.
Detailed Description
In order to enable those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the foregoing figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the disclosure described herein may be capable of operation in sequences other than those illustrated or described herein. The embodiments described in the examples below are not representative of all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
It should be noted that, in this disclosure, "at least one of the items" refers to a case where three types of juxtaposition including "any one of the items", "a combination of any of the items", "an entirety of the items" are included. For example, "including at least one of a and B" includes three cases side by side as follows: (1) comprises A; (2) comprising B; (3) includes A and B. For example, "at least one of the first and second steps is executed", that is, three cases are juxtaposed as follows: (1) performing step one; (2) executing the second step; (3) executing the first step and the second step.
For protecting the privacy of the user, each APP cannot acquire the position information of the user anytime and anywhere and can acquire the position information only in a reasonable scene. The location of the user may change, and the last acquisition may occur hours or even days ago, at which time the user is likely to be out of the current location, which has a great influence on the business that depends strongly on the location information of the user.
Because the position information of the user cannot be acquired at any time, the positioning can be performed only by other means. For example, conventional IP address location techniques may be employed to locate the user's location. IP address location technology is a technology that determines the geographic location of a host from an IP address. The basic principle is as follows: the geographical location of the IP device is estimated using its name, registration information, or latency information, etc. The basic principle is as follows: on the premise of ensuring positioning accuracy, the method reduces the measurement overhead as much as possible, has good expansibility and can protect user privacy.
On the network (Internet), the IP address is unique, which is characteristic and regular, as if a person only had a legitimate identity card. Each host connected to the Internet has a unique IP address, which provides a basic condition for us to locate the IP address. The principle of the IP address positioning is a positioning method based on combination of various modes such as Whois data, basic data mining, network active and passive measurement, path analysis and the like, and the positioning accuracy can reach the street level.
Whois data: the Whois database is an information service indispensable in the current domain name system, and through the Whois data, registration information of the global IP address assignment mechanism and detailed information of the domain name can be queried, for example: IP owners, administrator contact, etc.
And (3) basic data mining: information hidden therein is searched algorithmically from a large amount of data based on IP and global positioning system (Global Positioning System, GPS) mapping data provided by a partner network service provider (Internet Service Provider, ISP), company-collected IP and GPS mapping data, and global Wide Web (Web) based IP and street level location mapping data.
Network measurement and path analysis: the target IP is detected by a (Vantage Point, VP) detector, and is positioned to a position close to a reference Point on the basis of path analysis, and a positioning result is given.
The advantage of locating through IP is: the method is simple and has high success rate; the disadvantages are: poor positioning accuracy and large position deviation. Since the number of IPs is limited, especially internet protocol version 4 (Internet Protocol version, ipv 4), it is a common phenomenon that multiple devices (which occur over a very large range) share one IP, and the location by which an IP is located may be far from the actual location. In some cases, the IP positioning accuracy can reach the street level, most of the cases can only be positioned to the provincial dimension, the IP which can be positioned to the street level is few, and the positioning requirement of high accuracy is not met. Meanwhile, the situation of position drift of the IP can occur, namely, a certain IP can be in the A market today, a certain IP can be in the B market in tomorrow, and the accuracy of IP positioning is not high.
In order to solve the above-mentioned problems in the related art, the present disclosure proposes a terminal positioning method, apparatus, electronic device, and storage medium, in which if a plurality of access states for a certain service are the same or similar, a corresponding plurality of access requests are generated and issued in the vicinity of the same location with a high probability. Therefore, the historical access state information which is the same as or similar to the current access state information can be searched, the historical terminal position information corresponding to the searched historical access state information can be used as the current position of the terminal, the determined position can be ensured to be relatively close to the current actual position of the terminal, and the positioning accuracy is high.
Fig. 1 is a flowchart illustrating a terminal positioning method according to an exemplary embodiment of the present disclosure.
Referring to fig. 1, in step 101, a target service request transmitted by a terminal may be received. The target service request may include target access state information when the terminal accesses the target service.
The "target service" may be a service that recommends multimedia assets under different page tags contained by the video class application. The terminal can collect the current position of the user if the user clicks the page tag, and can send the collected position to the server, and the server can take the position collected by the terminal as a reference factor when recommending the multimedia resource under the page tag. And, some page tags of the application belong to tags which prohibit collecting the user's location, i.e. if the user clicks on such page tags, collecting the location where the user is currently located is prohibited.
According to an exemplary embodiment of the present disclosure, the target access state information may include a wireless network connection state (wifi_state) and Internet Protocol (IP) information used by the terminal. Further, the target access state information may further include an identification (did) of the terminal, where the identification of the terminal is used to indicate which terminal the corresponding terminal is.
If the user clicks a page tag which is contained in the video application and allows the position of the user to be collected, the terminal can collect the current position of the user through GPS and send a target service request to the server. At this time, the target service request may include an identification of the terminal, a Wi-Fi connection state, IP information used by the terminal, and a collected user location; if the user clicks on a page tag contained in the video class application that prohibits acquisition of the user location, the acquisition of the user location is prohibited at this time. The terminal may send a target service request to the server, where the target service request may include an identification of the terminal, a Wi-Fi connection state, and IP information used by the terminal.
According to an exemplary embodiment of the present disclosure, the target access state information may include access period information. Further, the target access status information may also include an identification of the terminal.
If the user clicks a page tag which is contained in the video application and allows the position of the user to be collected, the terminal can collect the current position of the user through GPS and send a target service request to the server. At this time, the target service request may include an identification of the terminal, current access period information, and the collected user location; if the user clicks on a page tag contained in the video class application that prohibits acquisition of the user location, the acquisition of the user location is prohibited at this time. The terminal may send a target service request to the server, where the target service request may include an identification of the terminal and current access period information.
In step 102, first historical terminal location information that matches the target access status information may be found in the pre-stored historical access location information. The historical access location information may include historical access status information and corresponding historical terminal location information when the terminal accesses the target service in a historical manner.
It should be noted that, it is assumed that the location a where the user is located last time is obtained through GPS when WIFI is connected, and the IP used by the terminal, that is, the public network IP of the WIFI router is a_ip. Because the IP allocation of the WIFI broadband is stable and unchanged for a long time without restarting the WIFI router, and the coverage range of the WIFI is smaller, generally tens of meters to hundreds of meters. Based on this premise, if the server finds that the same terminal is using a_ip to access the target service and is a service request issued if WIFI is connected, the server can infer whether the user of the terminal is the last location a.
Alternatively, in general, there will be some regularity in time and space for users to access the target services of video-type applications. For example, users typically use video class applications at a company during noon break hours or at home after a shift. Based on this premise, after the service request sent by the terminal is received by the server, it may be determined whether the user of the terminal accesses the target service of the video application in the same time period in the history based on the identifier of the terminal and the access time period information included in the service request. If the server finds that the user of the terminal always accesses the target service of the video class application during the same period of time in the history, it can be presumed that the user is likely to access the target service at the same location during the same period of time in the history, for example, at home or at a company. Therefore, the position reported by the user when the user accesses the target service in the same time period in the history process can be used as the current position of the user.
According to an exemplary embodiment of the present disclosure, first history access location information including first history access status information that matches target access status information may be searched for from among previously stored history access location information. Next, first historical terminal position information included in the first historical access position information may be acquired.
It should be noted that, the previously stored historical access location information may include historical access status information and corresponding historical terminal location information. Illustratively, the historical access location information may be: "did-wifi connection status-IP-history location (location) used by the terminal" this form. After receiving the target service request sent by the terminal, the server can search the historical access state information comprising the "di-wifi connection state" uploaded by the terminal this time from the prestored historical access position information, namely, the historical access position information comprising the "di-wifi connection state-IP" uploaded by the terminal this time can be searched in the prestored historical access position information by taking the "di-wifi connection state-IP" used by the terminal this time as a main key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
Alternatively, the historical access location information may be: this form of "did-access period-historic location". After receiving the target service request sent by the terminal, the server can search the history access state information comprising the 'di-access time period' uploaded by the terminal from the prestored history access position information, namely, the server can search the history access position information comprising the 'di-access time period' uploaded by the terminal in the prestored history access position information by taking the 'di-access time period' uploaded by the terminal as a main key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
In step 103, the first historical terminal location information may be determined as the current location of the terminal.
According to an exemplary embodiment of the present disclosure, in a case where a storage period of the first historical terminal position information does not exceed a predetermined threshold, the first historical terminal position information may be determined as a current position of the terminal.
Note that, since the IP of the WIFI broadband is still changed, for example, the IP of the WIFI broadband also has a drift phenomenon, and the change frequency is only slower. Therefore, the historical terminal position information stored by the server side has a valid period. The validity period calculation logic is as follows: current time-upload_time = current time-reporting time of historical terminal location information. If the storage time of a certain historical terminal position information exceeds a certain time, for example, 7 days, the historical terminal position information can be regarded as out-of-date data and is not used. Therefore, by setting the validity period, the past terminal position information which is outdated can be prevented from being used as the current position of the terminal, the phenomenon of terminal positioning error caused by IP drift of the WIFI broadband can be avoided, and the accuracy of terminal positioning can be ensured.
According to an exemplary embodiment of the present disclosure, it may also be determined whether the target service accessed this time is a service that prohibits acquisition of the terminal location. In the case that the target service accessed at this time is a service for prohibiting acquisition of the terminal position, the step of searching for first history terminal position information matching with the target access state information in the history access position information stored in advance may be performed. For example, in the case where the target service accessed at this time is an access service for a page tag for prohibiting acquisition of a terminal position included in the video-type application, the step of searching for first historical terminal position information matching the target access state information in the previously stored historical access position information may be performed.
According to an exemplary embodiment of the present disclosure, in the case where the target service accessed at this time is a service allowing the acquisition of the location of the terminal, the target service request may further include current location information of the terminal. For example, in the case that the target service accessed at this time is an access service for a page tag included in the video class application that allows acquisition of the terminal location, the target service request may further include current location information of the terminal.
Next, the current location information of the terminal may be overlaid with the historical terminal location information that matches the target access status information in the historical access location information. By way of example, the current location information of the terminal may be used to cover the historical terminal location information in the historical access location information, which is matched with the "di-wifi connection status" that is uploaded by the terminal this time and the IP "used by the terminal," the current location information that is uploaded by the terminal this time may be used to cover the "historical location" in the "di-wifi connection status" stored in the server and the "IP-historical location" used by the terminal.
In this way, the information closest to the current moment can reflect the current state more closely, i.e. the information closest to the current moment is the information more closely related to the current moment. Therefore, the latest uploaded position of the terminal can be used for covering the previous historical position, so that when the subsequent service end receives the service request sent by the same terminal again, the current position of the terminal can be determined based on the latest historical position, and the accuracy of positioning of the terminal can be ensured.
According to an exemplary embodiment of the present disclosure, a target service related to a current location may be provided to a terminal based on the determined current location of the terminal. For example, in case that the target service is an access service for a page tag included in the video class application, the multimedia resource related to the current location may be provided to the terminal based on the determined current location of the terminal. For example, the terminal may be provided with a multimedia resource whose distribution location is close to the current location of the terminal, or the terminal may be provided with a multimedia resource of a store whose location is close to the current location of the terminal, or the like.
Fig. 2 is an interactive flowchart illustrating a terminal positioning method according to an exemplary embodiment of the present disclosure. The interaction flow may involve 3 parts, a client, a server, and a database, respectively.
Referring to fig. 2, in step 201, a client transmits a service request to a server.
It should be noted that, when the user uses the APP daily, the user's position can be collected under a reasonable scene. Illustratively, when a user accesses a page tag contained in a video-type application that allows the location of the user to be collected, the user's terminal may collect the user's current location via GPS. The service request sent by the client to the server may include "the di-wifi connection status-the IP-current location used by the terminal"; alternatively, "did-access period-current location" may be included.
In step 202, the server may store information contained in the service request sent by the client in the database.
Fig. 3 is a paraphrase diagram illustrating various fields stored within a database according to an exemplary embodiment of the present disclosure. Referring to fig. 3, the meaning of this field "did" is "identification of terminal", i.e. "device identification id of client"; the meaning of this field "IP" is "IP used by the terminal", i.e. "IP information accessed by the user"; the meaning of the field of the location is the position of the terminal, namely the longitude and latitude information of the user position; the field of the wifi_state is defined as a "WIFI connected state", wherein the value of the field of the wifi_state may be True or false, the True represents that WIFI is connected, and the false represents that WIFI is not connected; the meaning of this field "upload_time" is "time to report relationship", i.e. "time when user accesses the target service".
Further, when the server stores the information contained in the service request sent by the client into the database, the current location information of the terminal can be used to cover the historical terminal location information. For example, the current location information uploaded by the terminal can be used to cover the "historical location" in the "di-wifi connection status-IP-historical location used by the terminal" stored in the database.
In step 203, the database may send a storage success message to the server, where the storage success message is used to prompt the server to successfully store the information contained in the service request sent by the client into the database.
In step 204, the server may send a report success message to the client, where the report success message is used to prompt the client that the service request has been successfully reported to the server.
Fig. 4 is an interactive flowchart illustrating another terminal positioning method according to an exemplary embodiment of the present disclosure. The interaction flow may involve 3 parts, a client, a server, and a database, respectively.
Referring to fig. 4, in step 401, a terminal of a user transmits a service request to a server.
For example, when a user accesses a page tag that prohibits acquisition of a terminal location included in a video class application, the client may send a service request to the server, where the service request may include current access status information. For example, the current access state information may include a did, a wifi connection state, and an IP used by the terminal; alternatively, the did, access time period may be included.
In step 402, the server looks up historical terminal location information matching the current access state information from the database based on the current access state information.
The server may search the historical access location information containing the "di-wifi connection status" uploaded by the terminal this time in the pre-stored historical access location information by using the "di-wifi connection status" uploaded by the terminal this time as a primary key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
Or the server side can search the history access position information containing the "di-access time period" uploaded by the terminal in the pre-stored history access position information by taking the "di-access time period" uploaded by the terminal as a main key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
In step 403, the server obtains, from the database, historical terminal location information that matches the current access status information.
In step 404, the server may determine whether the obtained historical terminal location information is out of date.
The server may determine whether the time period from the reporting time of the historical terminal location information to the current time exceeds a preset time period.
In step 405, if it is determined that the historical terminal location information is not outdated, the server may determine that the historical terminal location information is the current location of the terminal.
In step 406, the service terminal provides service content related to the current location of the terminal to the terminal based on the current location of the terminal.
For example, the server may provide the terminal with a multimedia resource whose distribution location is close to the current location of the terminal, or may provide the terminal with a multimedia resource of a store whose location is close to the current location of the terminal, or the like.
Fig. 5 is a block diagram illustrating a terminal positioning device according to an exemplary embodiment of the present disclosure.
Referring to fig. 5, the apparatus 500 may include a receiving module 501, a searching module 502, and a current location determining module 503.
The receiving module 501 may receive a target service request sent by a terminal. The target service request may include target access state information when the terminal accesses the target service.
The "target service" may be a service that recommends multimedia assets under different page tags contained by the video class application. The terminal can collect the current position of the user if the user clicks the page tag, and can send the collected position to the server, and the server can take the position collected by the terminal as a reference factor when recommending the multimedia resource under the page tag. And, some page tags of the application belong to tags which prohibit collecting the user's location, i.e. if the user clicks on such page tags, collecting the location where the user is currently located is prohibited.
According to an exemplary embodiment of the present disclosure, the target access state information may include a wireless network connection state (wifi_state) and Internet Protocol (IP) information used by the terminal. Further, the target access state information may further include an identification (did) of the terminal, where the identification of the terminal is used to indicate which terminal the corresponding terminal is.
If the user clicks a page tag which is contained in the video application and allows the user position to be acquired, the terminal can acquire the current position of the user through a GPS and send a target service request to the server, and at the moment, the target service request can contain the identification of the terminal, wi-Fi connection state, IP information used by the terminal and the acquired user position; if the user clicks on a page tag contained in the video class application that prohibits acquisition of the user location, the acquisition of the user location is prohibited at this time. The terminal may send a target service request to the server, where the target service request may include an identification of the terminal, a Wi-Fi connection state, and IP information used by the terminal.
According to an exemplary embodiment of the present disclosure, the target access state information may include access period information. Further, the target access status information may also include an identification of the terminal.
If the user clicks a page tag which is contained in the video application and allows the position of the user to be collected, the terminal can collect the current position of the user through GPS and send a target service request to the server. At this time, the target service request may include an identification of the terminal, current access period information, and the collected user location; if the user clicks on a page tag contained in the video class application that prohibits acquisition of the user location, the acquisition of the user location is prohibited at this time. The terminal may send a target service request to the server, where the target service request may include an identification of the terminal and current access period information.
The searching module 502 may search the pre-stored historical access location information for the first historical terminal location information that matches the target access status information. The historical access location information may include historical access status information and corresponding historical terminal location information when the terminal accesses the target service in a historical manner.
It should be noted that, it is assumed that the location a where the user is located last time is obtained through GPS when WIFI is connected, and the IP used by the terminal, that is, the public network IP of the WIFI router is a_ip. Because the IP allocation of the WIFI broadband is stable and unchanged for a long time without restarting the WIFI router, and the coverage range of the WIFI is smaller, generally tens of meters to hundreds of meters. Based on this premise, if the server finds that the same terminal is using a_ip to access the target service and is a service request issued if WIFI is connected, the server can infer whether the user of the terminal is the last location a.
Alternatively, in general, there will be some regularity in time and space for users to access the target services of video-type applications. For example, users typically use video class applications at a company during noon break hours or at home after a shift. Based on this premise, after the service request sent by the terminal is received by the server, it may be determined whether the user of the terminal accesses the target service of the video application in the same time period in the history based on the identifier of the terminal and the access time period information included in the service request. If the server finds that the user of the terminal always accesses the target service of the video class application during the same period of time in the history, it can be presumed that the user is likely to access the target service at the same location during the same period of time in the history, for example, at home or at a company. Therefore, the position reported by the user when the user accesses the target service in the same time period in the history process can be used as the current position of the user.
According to an example embodiment of the present disclosure, the lookup module 502 may lookup first historical access location information including first historical access status information that matches the target access status information from among the pre-stored historical access location information. Next, the lookup module 502 may obtain the first historical terminal location information included in the first historical access location information.
It should be noted that, the previously stored historical access location information may include historical access status information and corresponding historical terminal location information. Illustratively, the historical access location information may be: "did-wifi connection status-IP-history location (location) used by the terminal" this form. After receiving the target service request sent by the terminal, the server can search the historical access state information comprising the "di-wifi connection state" uploaded by the terminal this time from the prestored historical access position information, namely, the historical access position information comprising the "di-wifi connection state-IP" uploaded by the terminal this time can be searched in the prestored historical access position information by taking the "di-wifi connection state-IP" used by the terminal this time as a main key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
Alternatively, the historical access location information may be: this form of "did-access period-historic location". After receiving the target service request sent by the terminal, the server can search the history access state information comprising the 'di-access time period' uploaded by the terminal from the prestored history access position information, namely, the server can search the history access position information comprising the 'di-access time period' uploaded by the terminal in the prestored history access position information by taking the 'di-access time period' uploaded by the terminal as a main key. Then, the historical terminal position information contained in the searched historical access position information can be used as the current position of the terminal.
The current location determination module 503 may determine the first historical terminal location information as the current location of the terminal.
According to an exemplary embodiment of the present disclosure, the current location determining module 503 may determine the first historical terminal location information as the current location of the terminal in case the storage duration of the first historical terminal location information does not exceed a predetermined threshold.
Note that, since the IP of the WIFI broadband is still changed, for example, the IP of the WIFI broadband also has a drift phenomenon, and the change frequency is only slower. Therefore, the historical terminal position information stored by the server side has a valid period. The validity period calculation logic is as follows: current time-upload_time = current time-reporting time of historical terminal location information. If the storage time of a certain historical terminal position information exceeds a certain time, for example, 7 days, the historical terminal position information can be regarded as out-of-date data and is not used. Therefore, by setting the validity period, the past terminal position information which is outdated can be prevented from being used as the current position of the terminal, the phenomenon of terminal positioning error caused by IP drift of the WIFI broadband can be avoided, and the accuracy of terminal positioning can be ensured.
According to an exemplary embodiment of the present disclosure, the terminal positioning device 500 may further include a service determination module and an execution module.
The service determining module can determine whether the target service accessed at this time is a service for prohibiting acquisition of the terminal position. In the case that the target service accessed at this time is a service for prohibiting acquisition of the terminal position, the execution module may execute a step of searching for first historical terminal position information matched with the target access state information in the pre-stored historical access position information. For example, in the case that the target service accessed at this time is an access service for a page tag that prohibits acquisition of a terminal position included in the video-class application, the execution module may perform the step of searching for first historical terminal position information that matches the target access state information in the pre-stored historical access position information.
According to an exemplary embodiment of the present disclosure, the terminal positioning device 500 may further include a coverage module. In the case that the target service accessed at this time is a service allowing the acquisition of the terminal position, the target service request may further include current position information of the terminal. For example, in the case that the target service accessed at this time is an access service for a page tag included in the video class application that allows acquisition of the terminal location, the target service request may further include current location information of the terminal.
Next, the overlay module may overlay the current location information of the terminal with historical terminal location information that matches the target access status information in the historical access location information. By way of example, the current location information of the terminal may be used to cover the historical terminal location information in the historical access location information, which is matched with the "di-wifi connection status" that is uploaded by the terminal this time and the IP "used by the terminal," the current location information that is uploaded by the terminal this time may be used to cover the "historical location" in the "di-wifi connection status" stored in the server and the "IP-historical location" used by the terminal.
In this way, the information closest to the current moment can reflect the current state more closely, i.e. the information closest to the current moment is the information more closely related to the current moment. Therefore, the latest uploaded position of the terminal can be used for covering the previous historical position, so that when the subsequent service end receives the service request sent by the same terminal again, the current position of the terminal can be determined based on the latest historical position, and the accuracy of positioning of the terminal can be ensured.
According to an exemplary embodiment of the present disclosure, the terminal positioning device 500 may further include a providing module. The providing module may provide the target service related to the current location to the terminal based on the determined current location of the terminal. For example, in case that the target service is an access service for a page tag included in the video class application, the multimedia resource related to the current location may be provided to the terminal based on the determined current location of the terminal. For example, the terminal may be provided with a multimedia resource whose distribution location is close to the current location of the terminal, or the terminal may be provided with a multimedia resource of a store whose location is close to the current location of the terminal, or the like.
Fig. 6 is a block diagram illustrating an electronic device 600 according to an exemplary embodiment of the present disclosure.
Referring to fig. 6, an electronic device 600 includes at least one memory 601 and at least one processor 602, the at least one memory 601 having instructions stored therein that, when executed by the at least one processor 602, perform a terminal positioning method according to an exemplary embodiment of the present disclosure.
By way of example, the electronic device 600 may be a PC computer, tablet device, personal digital assistant, smart phone, or other device capable of executing the above-described instructions. Here, the electronic device 600 is not necessarily a single electronic device, but may be any apparatus or a collection of circuits capable of executing the above-described instructions (or instruction sets) individually or in combination. The electronic device 600 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with either locally or remotely (e.g., via wireless transmission).
In electronic device 600, processor 602 may include a Central Processing Unit (CPU), a Graphics Processor (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 602 may execute instructions or code stored in the memory 601, wherein the memory 601 may also store data. The instructions and data may also be transmitted and received over a network via a network interface device, which may employ any known transmission protocol.
The memory 601 may be integrated with the processor 602, for example, RAM or flash memory disposed within an integrated circuit microprocessor or the like. In addition, the memory 601 may include a stand-alone device, such as an external disk drive, a storage array, or any other storage device usable by a database system. The memory 601 and the processor 602 may be operatively coupled or may communicate with each other, for example, through an I/O port, a network connection, etc., such that the processor 602 is able to read files stored in the memory.
In addition, the electronic device 600 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 600 may be connected to each other via a bus and/or a network.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium, which when executed by a processor of an electronic device, enables the electronic device to perform the above-described terminal positioning method. Examples of the computer readable storage medium herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, nonvolatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD + R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, blu-ray or optical disk storage, hard Disk Drives (HDD), solid State Disks (SSD), card memory (such as multimedia cards, secure Digital (SD) cards or ultra-fast digital (XD) cards), magnetic tape, floppy disks, magneto-optical data storage, hard disks, solid state disks, and any other means configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and to provide the computer programs and any associated data, data files and data structures to a processor or computer to enable the processor or computer to execute the programs. The computer programs in the computer readable storage media described above can be run in an environment deployed in a computer device, such as a client, host, proxy device, server, etc., and further, in one example, the computer programs and any associated data, data files, and data structures are distributed across networked computer systems such that the computer programs and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, comprising a computer program which, when executed by a processor, implements a terminal positioning method according to the present disclosure.
According to the terminal positioning method, apparatus, electronic device and storage medium of the present disclosure, if a plurality of access states for a certain service are the same or similar, a corresponding plurality of access requests are generated and issued in the vicinity of the same location with a high probability. Therefore, the historical access state information which is the same as or similar to the current access state information can be searched, the historical terminal position information corresponding to the searched historical access state information can be used as the current position of the terminal, the determined position can be ensured to be relatively close to the current actual position of the terminal, and the positioning accuracy is high.
Furthermore, by setting the validity period, the past terminal position information which is outdated can be prevented from being used as the current position of the terminal, namely the phenomenon of terminal positioning error caused by IP drift of the WIFI broadband can be avoided, and the accuracy of terminal positioning can be ensured.
Further, the information closest to the current moment can reflect the current state more closely, that is, the information closest to the current moment is the information closely related to the current moment. Therefore, the latest uploaded position of the terminal can be used for covering the previous historical position, so that when the subsequent service end receives the service request sent by the same terminal again, the current position of the terminal can be determined based on the latest historical position, and the accuracy of positioning of the terminal can be ensured.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A terminal positioning method, comprising:
receiving a target service request sent by a terminal, wherein the target service request comprises target access state information when the terminal accesses target service;
searching first historical terminal position information matched with the target access state information in prestored historical access position information, wherein the historical access position information comprises historical access state information and corresponding historical terminal position information when the terminal accesses the target service in a historical manner;
And determining the first historical terminal position information as the current position of the terminal.
2. The terminal positioning method as claimed in claim 1, wherein said searching for first historical terminal position information matching the target access state information among the previously stored historical access position information includes:
searching first historical access location information comprising first historical access status information matched with the target access status information from the prestored historical access location information;
and acquiring the first historical terminal position information included in the first historical access position information.
3. The terminal positioning method as claimed in claim 1, wherein said determining the first historical terminal position information as the current position of the terminal comprises:
and determining the first historical terminal position information as the current position of the terminal under the condition that the storage duration of the first historical terminal position information does not exceed a preset threshold value.
4. The terminal positioning method as claimed in claim 1, further comprising, before searching for first historical terminal position information matching the target access state information in the previously stored historical access position information:
Determining whether the target service accessed at this time is a service for prohibiting acquisition of the terminal position;
and under the condition that the target service accessed at this time is the service for prohibiting acquisition of the terminal position, executing the step of searching first historical terminal position information matched with the target access state information in the prestored historical access position information.
5. The terminal positioning method as claimed in claim 4, further comprising:
under the condition that the target service accessed at this time is a service allowing the acquisition of the terminal position, the target service request also contains the current position information of the terminal;
and covering the current position information of the terminal with the historical terminal position information matched with the target access state information in the historical access position information.
6. The terminal positioning method as claimed in claim 1, further comprising:
and providing a target service related to the current position to the terminal based on the determined current position of the terminal.
7. A terminal positioning device, characterized by comprising:
the receiving module is configured to receive a target service request sent by a terminal, wherein the target service request comprises target access state information when the terminal accesses a target service;
The searching module is configured to search first historical terminal position information matched with the target access state information in prestored historical access position information, wherein the historical access position information comprises historical access state information and corresponding historical terminal position information when the terminal accesses the target service in a historical manner;
and a current position determining module configured to determine the first historical terminal position information as a current position of the terminal.
8. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the terminal positioning method of any of claims 1 to 6.
9. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the terminal positioning method according to any one of claims 1 to 6.
CN202310116952.9A 2023-01-30 2023-01-30 Terminal positioning method, device, electronic equipment and storage medium Pending CN116074952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310116952.9A CN116074952A (en) 2023-01-30 2023-01-30 Terminal positioning method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310116952.9A CN116074952A (en) 2023-01-30 2023-01-30 Terminal positioning method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116074952A true CN116074952A (en) 2023-05-05

Family

ID=86178373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310116952.9A Pending CN116074952A (en) 2023-01-30 2023-01-30 Terminal positioning method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116074952A (en)

Similar Documents

Publication Publication Date Title
JP6122199B2 (en) System, method and storage medium for improving access to search results
CN103139279B (en) file access method and system
CN107169094B (en) Information aggregation method and device
US20120102169A1 (en) Automatic identification of travel and non-travel network addresses
CN104580540B (en) The implementation method and device of website visiting
CN110769052B (en) Channel information determination method and device, storage medium and electronic device
BR112017003489B1 (en) METHOD, DEVICE AND POSITIONING SYSTEM BASED ON WI-FI SIGNAL, AND STORAGE MEDIA
CN107454126B (en) Message pushing method, server and terminal
CN108810947B (en) Server for identifying real flow based on IP address
US20130298241A1 (en) Network Based Audience Measurement
CN113918853A (en) Configuration method and configuration device of information display mode
US20210141824A1 (en) Geolocation restricted content registration and publication
CN108696562B (en) Method and device for acquiring website resources
CN107220260A (en) The method and device that a kind of page is shown
CN111767481B (en) Access processing method, device, equipment and storage medium
CN116074952A (en) Terminal positioning method, device, electronic equipment and storage medium
WO2009147337A1 (en) Device and method for managing the availability of access to digital data
CN105227532A (en) A kind of blocking-up method of malicious act and device
KR101116565B1 (en) Filtering method and system to advertisement a cutoff
CN112738221B (en) Auditing method and device for object storage flow
CN113553601B (en) Webpage content encryption method and equipment
US11729246B2 (en) Apparatus and method for determining types of uniform resource locator
CN110971578B (en) User identity confirmation method and device
CN110796491A (en) Advertisement putting method and device
Dan et al. IP geolocation through geographic clicks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination