Position Determination Method, Device, Electronic Device, and Storage Medium
By obtaining the connection data between the target terminal and the wireless network device, and determining the location of the target site according to the filtering rules, the problem of functional abnormalities caused by the user setting the location by himself is solved, and accurate location determination and improved user experience is achieved.
Patent Information
- Application Number
- CN202210892530.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-27
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2042-07-27
AI Technical Summary
In the prior art, the user's home and company locations rely on the user's own settings, resulting in the function not working normally or the effect is not good when not set, and the accuracy is insufficient when relying on driving trajectory data.
By acquiring the connection data of the target terminal with the wireless network device within the preset time period, the target wireless network device that meets the preset filtering rules is determined based on the device connection data, and the location of the target site is accurately determined.
It realizes that the target location can be accurately determined without the user actively entering location information, ensuring the normal operation of relevant functions and improving user experience.
Smart Images

Figure CN115243199B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for determining a location, an electronic device, and a storage medium. Background Art
[0002] In functions such as intelligent travel and user care (such as weather reminders), the locations of a user's home and company are often required. However, currently, the locations of a user's home and company mostly rely on the user to set them manually. In this case, if the user does not actively set the corresponding location data, the functions that rely on these location data will not work properly or will not achieve the expected working effect. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a method and apparatus for determining a location, an electronic device, and a storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for determining a location is provided. The method includes: obtaining device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with a target terminal within a preset time period; the device connection data includes connection data of the one or more first wireless network devices connecting to the target terminal or location data of the target terminal; determining, according to the device connection data, a target wireless network device that meets a preset screening rule from the one or more first wireless network devices; where the preset screening rule is that when the device connection data includes the connection data, the connection data meets a first screening condition, or when the device connection data includes the location data, the location data meets a second screening condition;
[0005] Determining, according to the target wireless network device, the location where a target place corresponding to the target terminal is located.
[0006] Optionally, when the device connection data includes the connection data, the connection data includes: the number of terminals connected to each of the first wireless network devices within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period;
[0007] The first screening condition includes: the number of terminals is greater than or equal to a preset number of terminals and the first connection frequency is greater than or equal to a first preset connection frequency.
[0008] Optionally, when the device connection data includes the location data, the location data includes: the first location where the target terminal is located when connecting to each of the first wireless network devices within a preset time period;
[0009] The method further includes:
[0010] According to the first position, obtaining the type of one or more points of interest corresponding to one or more points of interest within a preset range of the location where the one or more first wireless network devices are located;
[0011] The determining, from the one or more first wireless network devices, a target wireless network device that meets a preset screening rule according to the device connection data includes:
[0012] Determining, from the one or more first wireless network devices, a target wireless network device that meets the second screening condition according to the type of the one or more points of interest corresponding to the one or more points of interest;
[0013] Wherein, the second screening condition includes: the type of the one or more points of interest corresponding to the one or more points of interest is the same as the preset place type corresponding to the target place.
[0014] Optionally, in the case where the device connection data includes the connection data, the connection data includes: the second connection frequency of the target terminal connecting to each of the first wireless network devices within the preset time period;
[0015] The first screening condition includes: the second connection frequency is greater than or equal to a second preset connection frequency.
[0016] Optionally, the determining the location where the target place corresponding to the target terminal is located according to the target wireless network device includes:
[0017] Obtaining a second position where the target terminal is located when it last connects to the target wireless network device;
[0018] Taking the second position as the location where the target place is located.
[0019] Optionally, the determining the location where the target place corresponding to the target terminal is located according to the target wireless network device includes:
[0020] Obtaining one or more third positions where the target terminal is located when it connects to the target wireless network device within the preset time period;
[0021] Determining the average position of the one or more third positions;
[0022] Taking the average position as the location where the target place is located.
[0023] Optionally, the determining the location where the target place corresponding to the target terminal is located according to the target wireless network device includes:
[0024] Obtain one or more third positions where the target terminal is located when connecting to the target wireless network device within the preset time period;
[0025] Cluster the one or more third positions through a clustering algorithm to obtain a central position after clustering;
[0026] Use the central position as the position where the target place is located.
[0027] Optionally, the method further includes:
[0028] Send weather warning information corresponding to the position where the target place is located to the target terminal, so that the target terminal can display the weather warning information.
[0029] Optionally, the method further includes:
[0030] In response to a navigation instruction for the target place triggered by the user, generate multiple travel routes according to the fourth position where the target terminal is currently located and the position where the target place is located, and send them to the target terminal, so that the target terminal can display the multiple travel routes.
[0031] According to a second aspect of the embodiments of the present disclosure, there is provided a position determination device, the device includes:
[0032] An acquisition module, configured to acquire device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with the target terminal within a preset time period; the device connection data includes connection data of the one or more first wireless network devices connected to the target terminal or position data of the target terminal;
[0033] A first determination module, configured to determine a target wireless network device that meets a preset screening rule from the one or more first wireless network devices according to the device connection data; wherein, the preset screening rule is that when the device connection data includes the connection data, the connection data meets a first screening condition, or when the device connection data includes the position data, the position data meets a second screening condition;
[0034] A second determination module, configured to determine the position where the target place corresponding to the target terminal is located according to the target wireless network device.
[0035] Optionally, when the device connection data includes the connection data, the connection data includes: the number of terminals connected to the first wireless network device by each terminal within the preset time period, and the first connection frequency of each terminal connected to the first wireless network device within the preset time period;
[0036] The first screening condition includes: the number of terminals is greater than or equal to a preset number of terminals and the first connection frequency is greater than or equal to a first preset connection frequency.
[0037] Optionally, when the device connection data includes the location data, the location data includes: the first location where the target terminal is located when connecting to each first wireless network device within the preset time period;
[0038] The obtaining module is configured to obtain, according to the first location, the type of one or more points of interest within a preset range of the location where the one or more first wireless network devices are located;
[0039] The first determining module is configured to determine, according to the type of the one or more points of interest, a target wireless network device that meets the second screening condition from the one or more first wireless network devices;
[0040] Wherein, the second screening condition includes: the type of the one or more points of interest is the same as the preset type of the target venue.
[0041] Optionally, when the device connection data includes the connection data, the connection data includes: the second connection frequency of the target terminal connecting to each first wireless network device within the preset time period;
[0042] The first screening condition includes: the second connection frequency is greater than or equal to a second preset connection frequency.
[0043] Optionally, the second determining module is configured to obtain the second location where the target terminal is located when connecting to the target wireless network device for the last time; and use the second location as the location where the target venue is located.
[0044] Optionally, the second determining module is configured to obtain one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period; determine the average location of the one or more third locations; and use the average location as the location where the target venue is located.
[0045] Optionally, the second determination module is configured to: obtain one or more third positions where the target terminal is located when connecting to the target wireless network device within the preset time period; perform clustering on the one or more third positions through a clustering algorithm to obtain a central position after clustering; and use the central position as the position where the target venue is located.
[0046] Optionally, the apparatus further includes:
[0047] A first sending module, configured to send weather warning information corresponding to the position where the target venue is located to the target terminal, so that the target terminal can display the weather warning information.
[0048] Optionally, the apparatus further includes:
[0049] A second sending module, configured to, in response to a navigation instruction for the target venue triggered by a user, generate multiple travel routes according to the fourth position where the target terminal is currently located and the position where the target venue is located, and send the multiple travel routes to the target terminal, so that the target terminal can display the multiple travel routes.
[0050] According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein, the processor is configured to implement the steps of the position determination method provided in the first aspect of the present disclosure when calling the executable instructions stored on the memory.
[0051] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the position determination method provided in the first aspect of the present disclosure are implemented.
[0052] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0053] Obtain device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with a target terminal within a preset time period; the device connection data includes connection data of the connection between the one or more first wireless network devices and the target terminal or location data of the target terminal; determine a target wireless network device that meets a preset screening rule from the one or more first wireless network devices according to the device connection data; where the preset screening rule is that when the device connection data includes connection data, the connection data meets a first screening condition, or when the device connection data includes location data, the location data meets a second screening condition; determine the location where the target place corresponding to the target terminal is located according to the target wireless network device. Through the above method, it is possible to determine, according to the device connection data of the first wireless network devices connected by the target terminal within a preset time period, and according to the device connection data, a target wireless network device that meets the preset screening rule from the one or more first wireless network devices, that is, determine the target wireless network device related to the target place corresponding to the target terminal, and then accurately determine the location where the target place is located according to the target wireless network device. In this way, it greatly ensures the normal operation of functions that rely on these location data, and at the same time improves the user experience.
[0054] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0056] Figure 1 is a flowchart of a location determination method shown according to an exemplary embodiment;
[0057] Figure 2 is a flowchart of another location determination method shown according to an exemplary embodiment;
[0058] Figure 3 is a flowchart of another location determination method shown according to an exemplary embodiment;
[0059] Figure 4 is a flowchart of a location determination method shown according to an exemplary embodiment;
[0060] Figure 5 is a flowchart of a location determination method shown according to an exemplary embodiment;
[0061] Figure 6 is a flowchart of a location determination method shown according to an exemplary embodiment;
[0062] Figure 7 is a flowchart of a location determination method shown according to an exemplary embodiment;
[0063] Figure 8 is a block diagram of a location determination device shown according to an exemplary embodiment;
[0064] Figure 9 is a block diagram of another location determination device shown according to an exemplary embodiment;
[0065] Figure 10 is a block diagram of another location determination device shown according to an exemplary embodiment;
[0066] Figure 11 is a block diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0067] Here, the exemplary embodiments will be described in detail, and examples thereof are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0068] It should be noted that all actions of obtaining information or data in this application are carried out on the premise of complying with the corresponding data protection regulations and policies of the country where the location is located and obtaining authorization from the owner of the corresponding device.
[0069] In the following description, terms such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying an order.
[0070] Before introducing the location determination method, device, electronic device, and storage medium provided by the present disclosure, the application scenarios involved in each embodiment of the present disclosure will be introduced first. In functions such as intelligent travel and user care (such as weather reminders, etc.), the locations of the user's home and company are often required. For example, in the scenario of weather reminders, it is necessary to send the weather warning information to the target terminal according to the location of the user's home and when receiving the weather warning information of the location of the user's home, so that the target terminal can display the weather warning information to prompt the user of the weather changes at the location of the user's home. However, currently, the locations of the user's home and company mostly rely on the user's self-setting. In this case, if the user does not actively set the corresponding location data, it will cause the functions relying on these location data to not work properly or not achieve the expected working effect.
[0071] In the related art, by extracting the driving trajectory of a user within a preset time range recently, all position points of the driving trajectory are clustered into several clusters, and each of the clustered clusters is operated separately, and the position points within each cluster are traversed for scoring. By comparing the scoring situations of each cluster, the one with the highest score for home is selected as the location of home, and the one with the highest score for company is selected as the location of the company. However, in this method, it is necessary to obtain the driving trajectory data of the user recently, and in some cases, the obtained driving trajectory data of the user is not the complete driving trajectory data of the user, and the driving trajectory data of some users may not be obtained, which results in the inability to determine the locations of home and company according to this method or the locations of home and company determined according to this method are not accurate enough.
[0072] To solve the above technical problems, the present invention provides a location determination method, device, electronic device and storage medium, which can determine, according to the device connection data of the first wireless network device connected by a target terminal within a preset time period, and according to the device connection data, a target wireless network device that meets a preset screening rule from one or more first wireless network devices, that is, determine a target wireless network device related to a target place corresponding to the target terminal, and then accurately determine the location where the target place is located according to the target wireless network device. In this way, the normal operation of functions relying on these location data is greatly guaranteed, and at the same time, the user experience is improved.
[0073] The following will describe in detail the specific embodiments of the present invention with reference to the accompanying drawings.
[0074] Figure 1 is a flowchart of a location determination method shown according to an exemplary embodiment. As Figure 1 shown, the method may include the following steps:
[0075] In step S101, obtain device connection data corresponding to one or more first wireless network devices.
[0076] Among them, one or more first wireless network devices include network devices that establish a wireless network connection with a target terminal within a preset time period; the device connection data includes connection data of one or more first wireless network devices connected to the target terminal or location data of the target terminal. The target terminal may be, for example but not limited to, a mobile terminal such as a smart phone, a tablet computer, a PDA (English: Personal Digital Assistant, Chinese: personal digital assistant), a portable computer, etc. The first wireless network device may be a WiFi (English: Wireless-Fidelity; Chinese: wireless fidelity) device, such as a wireless router, and the target terminal can access the wireless network by accessing the WiFi device.
[0077] In this embodiment, the device connection data corresponding to one or more first wireless network devices may include the following three possible implementation manners:
[0078] In a possible implementation manner, the device connection data may include connection data, and the connection data includes: the number of terminals connected to each first wireless network device by the terminal within the preset time period and the first connection frequency of each terminal connected to the first wireless network device within the preset time period.
[0079] Among them, the preset time period may be any time period within the historical time.
[0080] In another possible implementation manner, the device connection data may include location data, and the location data includes: the first location where the target terminal is located when connecting to each first wireless network device within the preset time period.
[0081] Among them, for each first wireless network device, the first location may be the location where the target terminal is located when connecting to the first wireless network device for the last time, or may also be the average location of multiple locations where the target terminal is located when connecting to the first wireless network device within the preset time period. Among them, the average location of the multiple locations may be obtained by respectively calculating the average values of the longitude and latitude according to the location information (including longitude and latitude) of each location, and then obtaining the longitude and latitude obtained by calculation.
[0082] In another possible implementation manner, the device connection data may include connection data, and the connection data includes: the second connection frequency of the target terminal connecting to each first wireless network device within the preset time period.
[0083] That is to say, the device connection data corresponding to one or more first wireless network devices may be obtained according to any one of the above possible implementation manners.
[0084] Among them, for different target locations, the preset time period can be set to different time periods. Among them, the target location can be, for example, home or company. Specifically, taking a week as an example, in the case where the target location is home, it can be understood that for the user, the time at home during a week is mostly concentrated from 18:00 to 8:00 of the next day on weekdays (including legal weekdays), and at any time of the day on non-working days (including legal holidays) it is possible to be at home. Therefore, the time periods from 0:00 to 8:00 and from 18:00 to 24:00 of each weekday in a week and the time period from 0:00 to 24:00 of non-working days can be used as the preset time periods for determining the location of home. Similarly, taking a week as an example, in the case where the target location is company, it can be understood that for the user, the time at the company during a week is mostly concentrated from 8:00 to 18:00 on weekdays, and it is very likely not at the company on non-working days. Therefore, the time period from 8:00 to 18:00 of each weekday in a week can be used as the preset time period for determining the location of the company.
[0085] It should be noted that the specific time periods in the above examples are only for illustration, and the present disclosure does not make specific limitations on this.
[0086] In step S102, according to the device connection data, a target wireless network device that meets the preset screening rules is determined from one or more first wireless network devices.
[0087] Among them, the preset screening rules are that in the case where the device connection data includes connection data, the connection data meets the first screening condition, or in the case where the device connection data includes the location data, the location data meets the second screening condition. That is to say, according to the device connection data, a target wireless network device that conforms to the location type of the target location corresponding to the target terminal can be determined from one or more first wireless network devices.
[0088] Specifically, in the case where the device connection data includes connection data, and the connection data includes the number of terminals connected to each of the first wireless network devices within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period, the first screening condition includes: the number of terminals is greater than or equal to the preset number of terminals and the first connection frequency is greater than or equal to the first preset connection frequency.
[0089] In an actual scenario, after the target terminal connects to the first wireless network device, it will send the first location where the target terminal is located to the first wireless network device. When the device connection data includes location data, and the location data includes the first location where the target terminal is located when connecting to each of the first wireless network devices within a preset time period, one or more point of interest (POI) types corresponding to one or more POIs within the preset range of the location where one or more first wireless network devices are located can be further obtained according to the first location. The first location can be obtained after the target terminal sends the location where it is located to the first wireless network device after connecting to the first wireless network device. Correspondingly, determining the target wireless network device that meets the preset screening rules from the one or more first wireless network devices according to the device connection data includes: determining the target wireless network device that meets the second screening condition from the one or more first wireless network devices according to the POI types corresponding to the one or more POIs. The second screening condition includes: the POI types corresponding to the one or more POIs are the same as the preset place types corresponding to the target place.
[0090] When the device connection data includes connection data, and the connection data includes the second connection frequency of the target terminal connecting to each of the first wireless network devices within the preset time period, the first screening condition includes: the second connection frequency is greater than or equal to the second preset connection frequency.
[0091] In step S103, according to the target wireless network device, determine the location where the target place corresponding to the target terminal is located.
[0092] Specifically, the location where the target wireless network device is located can be determined according to the target wireless network device, and then the location where the target place corresponding to the target terminal is located can be determined according to the location where the target wireless network device is located.
[0093] Exemplarily, in a possible implementation manner, determining the location where the target place corresponding to the target terminal is located according to the target wireless network device may include: First, obtain the second location where the target terminal is located when it connects to the target wireless network device for the last time. Then, the second location can be used as the location where the target place is located. That is, the second location reported by the target terminal when it connects to the target wireless network for the last time is used as the location where the target place is located.
[0094] In another possible implementation, determining the location of the target venue corresponding to the target terminal based on the target wireless network device may include: First, obtain one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period. Then, determine the average location of the one or more third locations. Wherein, when there are multiple third locations, the average location of the multiple third locations can be obtained by calculating the average values of the longitude and latitude respectively according to the location information (including longitude and latitude) of each third location, and then obtaining the longitude and latitude obtained by calculation. Finally, the average location can be used as the location of the target venue. That is, the average location of one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period is used as the location of the target venue.
[0095] In another possible implementation, determining the location of the target venue corresponding to the target terminal based on the target wireless network device includes: First, obtain one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period. Then, cluster the one or more third locations through a clustering algorithm to obtain the central location after clustering. Among them, the one or more third locations can be clustered through the clustering algorithm in related technologies, which will not be elaborated here. The central location after clustering can indicate that the target terminal connects to the target wireless network device most frequently at the central location within the preset time period. Finally, the central location can be used as the location of the target venue.
[0096] In this way, it is possible to automatically and accurately determine the location of the target venue corresponding to the target terminal based on the target wireless network device, and the location of the target venue can be obtained without relying on the location information of the target venue actively input by the user.
[0097] By adopting the above method, it is possible to determine the target wireless network device that meets the preset screening rules from one or more first wireless network devices according to the device connection data of the first wireless network device connected by the target terminal within the preset time period, that is, to determine the target wireless network device related to the target venue corresponding to the target terminal, and then accurately determine the location of the target venue based on the target wireless network device. In this way, the normal operation of the functions relying on these location data is greatly ensured, and at the same time, the user experience is improved.
[0098] Figure 2 It is a flowchart of another location determination method shown according to an exemplary embodiment. As Figure 2 shown, the method may further include the following steps:
[0099] In step S104, the weather warning information corresponding to the location where the target venue is located is sent to the target terminal.
[0100] Among them, the weather warning information may include, for example, rainstorm warning information, strong wind warning information, etc. at the location where the target venue is located. In this way, the weather warning information corresponding to the location where the target venue is located is sent to the target terminal, so that the target terminal can display the weather warning information, enabling the user to take corresponding measures in a timely manner according to the weather warning information, greatly improving the user experience.
[0101] Figure 3 is a flowchart of another location determination method shown according to an exemplary embodiment. As Figure 3 shown, the method may further include the following steps:
[0102] In step S105, in response to a navigation instruction for the target venue triggered by the user, multiple travel routes are generated based on the fourth position where the target terminal is currently located and the position where the target venue is located, and sent to the target terminal.
[0103] Among them, the navigation instruction may be obtained through voice recognition or by acquiring the text input by the user into the target terminal. If the target venue is home, the navigation instruction may be, for example, "Navigate home"; if the target venue is the company, the navigation instruction may be, for example, "Navigate to the company". Furthermore, multiple travel routes are generated based on the fourth position where the target terminal is currently located and the position where the target venue is located, and sent to the target terminal, so that the target terminal can display the multiple travel routes, enabling the user to select a target travel route from the multiple travel routes and perform navigation. In this way, the user can trigger a navigation instruction for the target venue without inputting specific location information, greatly improving the user experience and facilitating the user's travel.
[0104] Figure 4 is a flowchart of a location determination method shown according to an exemplary embodiment. As Figure 4 shown, taking the device connection data including connection data, the connection data including the number of terminals connected to the terminal by each first wireless network device within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period, and the first screening condition including that the number of terminals is greater than or equal to a preset number of terminals and the first connection frequency is greater than or equal to a first preset connection frequency as an example for illustration, the method may include the following steps:
[0105] In step S201, the number of terminals connected to each first wireless network device within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period are obtained.
[0106] It can be understood that for each first wireless network device, multiple terminals may be connected within the preset time period. Therefore, the target wireless network devices in the first wireless network devices that may conform to the venue type corresponding to the target venue can be further analyzed by obtaining the number of terminals connected to each first wireless network device by the target terminal within the preset time period and the first connection frequency of each terminal to the first wireless network device within the preset time period.
[0107] In step S202, according to the number of terminals corresponding to each first wireless network device, the second wireless network devices with the number of terminals greater than or equal to the preset number of terminals are determined from the first wireless network devices.
[0108] Among them, different preset numbers of terminals can be set for different target venues. Since the number of terminals connected to the wireless network device in the home scenario is different from that in the company scenario. For example, the number of terminals that the wireless network device can connect in the home scenario is relatively small, usually within the range of 1 to 6 terminals. Therefore, different preset numbers of terminals corresponding to different target venues can be determined according to the possibility of the number of terminals connected to the wireless network device in different scenarios.
[0109] In this way, according to the number of terminals corresponding to each first wireless network device, the second wireless network devices that meet the scenario where the target venue is located and have the number of terminals greater than or equal to the preset number of terminals can be determined from the first wireless network devices.
[0110] In step S203, according to the first connection frequency corresponding to the second wireless network device, the third wireless network devices with the first connection frequency greater than or equal to the first preset connection frequency are determined from the second wireless network devices.
[0111] In this step, in order to further obtain the target wireless network devices that conform to the venue type of the target venue, the third wireless network devices with the first connection frequency greater than or equal to the first preset connection frequency can be determined from the second wireless network devices. Similarly, different first preset connection frequencies can be set for different target venues.
[0112] In this way, the target wireless network devices that conform to the venue type of the target venue are screened out from the first wireless network devices through the number of terminals corresponding to each first wireless network device and the first connection frequency of each terminal connecting to each first wireless network device. For example, for the case where the target venue is home, the target wireless network devices that conform to the home type can be screened out through the above method. For the case where the target venue is the company, the target wireless network devices that conform to the company type can be screened out through the above method.
[0113] In addition, the second wireless network device corresponding to the largest first connection frequency of the second wireless network device can be used as the third wireless network device.
[0114] In step S204, based on the third wireless network device, the target wireless network device is determined.
[0115] Exemplarily, the third wireless network device can be used as the target wireless network device.
[0116] In step S205, based on the target wireless network device, the location where the target place corresponding to the target terminal is located is determined.
[0117] Specifically, determining the location where the target place corresponding to the target terminal is located based on the target wireless network device can refer to the specific examples of step S103 in the above Figure 1 embodiment (including three possible implementation manners), which will not be elaborated here.
[0118] Figure 5 is a flowchart of a location determination method shown according to an exemplary embodiment. As Figure 5 shown, taking the device connection data including location data, the location data including the first location where the target terminal is located when connecting each first wireless network device within a preset time period, and the second screening condition including that the type of one or more interest points corresponding to one or more interest points is the same as the preset place type corresponding to the target place as an example for explanation, the method may include the following steps:
[0119] In step S301, the first location where the target terminal is located when connecting each first wireless network device within a preset time period is obtained.
[0120] Wherein, for each first wireless network device, the first location may be the location where the target terminal is located when connecting the first wireless network device for the last time, or may also be the average location of multiple locations where the target terminal is located when connecting the first wireless network device within the preset time period.
[0121] In step S302, based on the first location, the type of one or more interest points within a preset range of the location where one or more first wireless network devices are located is obtained.
[0122] Among them, there may be one or more points of interest within a preset range of the location of the first wireless network device. The type of each point of interest can to a certain extent reflect the type of the venue to which the area within the preset range of the point of interest belongs. The point of interest can be, for example, an information point pre-set on an electronic map for different landmarks, scenic spots, etc. The point of interest can be, for example, a house, a store, a mailbox or a bus stop, etc. Each point of interest can include information such as the name, category, longitude, latitude, altitude, etc. of the information point. The type of point of interest can include, for example, tourist attractions, hospitals, urban (residential) communities, supermarkets, kindergartens, etc.
[0123] In step S303, according to the type of the one or more points of interest, a fourth wireless network device of the same preset venue type as the target venue is determined from the one or more first wireless network devices.
[0124] Exemplarily, the type of point of interest associated with the venue type of the target venue can be pre-set to obtain the preset venue type corresponding to the target venue. When the target venue includes home, the preset venue type can include, for example, urban (residential) communities, supermarkets, kindergartens, middle schools and primary schools. Then, the type of the one or more points of interest within the preset range of the location of each first wireless network device can be compared with the preset venue type. For the same first wireless network device, if the proportion of the number of points of interest with the same type as the preset venue type among the types of the one or more points of interest within the preset range of the location of the first wireless network device is greater than or equal to the preset proportion, it can be determined that the venue type of the first wireless network device is the same as the venue type of the target venue, and the first wireless network device is taken as the fourth wireless network device.
[0125] In step S304, the target wireless network device is determined according to the fourth wireless network device.
[0126] Exemplarily, the fourth wireless network device can be taken as the target wireless network device.
[0127] In step S305, according to the target wireless network device, the location of the target venue corresponding to the target terminal is determined.
[0128] Similarly, determining the location of the target venue corresponding to the target terminal according to the target wireless network device can refer to the specific examples (including three possible implementation manners) of step S103 in the above Figure 1 embodiment, which will not be elaborated here.
[0129] Figure 6 is a flowchart of a location determination method shown according to an exemplary embodiment, asFigure 6 As shown, the connection data of the device includes connection data, which includes the second connection frequency of the target terminal connecting to each of the first wireless network devices within the preset time period. Taking the first screening condition including that the second connection frequency is greater than or equal to the second preset connection frequency as an example, the method may include the following steps:
[0130] In step S401, obtain the second connection frequency of the target terminal connecting to each first wireless network device within the preset time period.
[0131] In step S402, according to the second connection frequency, determine the fifth wireless network device whose second connection frequency is greater than or equal to the second preset connection frequency from one or more first wireless network devices.
[0132] Among them, if the second connection frequency corresponding to the first wireless network device is greater than or equal to the second preset connection frequency, it can indicate that the first wireless network device conforms to the venue type of the target venue. Then, the first wireless network device whose second connection frequency is greater than or equal to the second preset connection frequency among one or more first wireless network devices can be used as the fifth wireless network device. Among them, for different target venues, different second preset connection frequencies can be set.
[0133] In addition, the first wireless network device with the highest second connection frequency among one or more first wireless network devices can also be used as the fifth wireless network device.
[0134] In step S403, determine the target wireless network device according to the fifth wireless network device.
[0135] Exemplarily, the fifth wireless network device can be used as the target wireless network device.
[0136] In step S405, determine the location of the target venue corresponding to the target terminal according to the target wireless network device.
[0137] Similarly, determining the location of the target venue corresponding to the target terminal according to the target wireless network device can refer to the specific example of step S103 in the above Figure 1 embodiment (including three possible implementation manners), which will not be elaborated here.
[0138] It should be noted that all embodiments of the present disclosure can be implemented separately or together, and the embodiments of the present disclosure do not make any limitations in this regard. For example, the third wireless network device can be obtained according to step S203 in the Figure 4 embodiment, and through Figure 5Embodiments are used to further screen to obtain the target wireless network device, thereby improving the accuracy of determining the target wireless network device. That is to say, the third wireless network device obtained in step S203 in Figure 4 can be used as the first wireless network device in step S301 in Figure 5 the embodiment, and then the method steps in Figure 5 the embodiment are further used to obtain the target wireless network device. Specifically, first, the number of terminals connected to each first wireless network device by the target terminal within a preset time period and the first connection frequency of each terminal connected to the first wireless network device within the preset time period can be obtained. Secondly, according to the number of terminals corresponding to each first wireless network device, the second wireless network device whose number of terminals is greater than or equal to the preset number of terminals can be determined from the first wireless network devices. Then, according to the first connection frequency corresponding to the second wireless network device, the third wireless network device whose first connection frequency is greater than or equal to the first preset connection frequency can be determined from the second wireless network devices. Then, the first location where the target terminal is located when connecting to each third wireless network device within the preset time period can be obtained. And according to the first location, the type of one or more points of interest within the preset range of the location of one or more first wireless network devices can be obtained. Then, according to the type of one or more points of interest corresponding to the one or more points of interest, the fourth wireless network device with the same type of location as the target location can be determined from the one or more first wireless network devices. And the fourth wireless network device is used as the target wireless network device. Similarly, the third wireless network device can also be obtained first according to the steps in Figure 4 the embodiment in Figure 6 and then further screened through the embodiment in
[0139] Figure 7 is a flowchart of a location determination method shown according to an exemplary embodiment. For the sake of easy understanding, the following takes Figure 4 、 Figure 5 and Figure 6 being implemented together as an example for detailed description. As shown in Figure 7 , the method may include the following steps:
[0140] In step S501, the number of terminals connected to each first wireless network device within a preset time period and the first connection frequency of each terminal connected to the first wireless network device within the preset time period are obtained.
[0141] In step S502, according to the number of terminals corresponding to each first wireless network device, the second wireless network device whose number of terminals is greater than or equal to the preset number of terminals is determined from the first wireless network devices.
[0142] In step S503, according to the first connection frequency corresponding to the second wireless network device, a third wireless network device with a first connection frequency greater than or equal to a first preset connection frequency is determined from the second wireless network devices.
[0143] In step S504, the first location where the target terminal is located when connecting to each third wireless network device within a preset time period is obtained.
[0144] In step S505, according to the first location, the interest point types corresponding to one or more interest points within a preset range of the location where the third wireless network device is located are obtained.
[0145] In step S506, according to the interest point types corresponding to the one or more interest points, a fourth wireless network device with the same venue type as the target venue is determined from the third wireless network devices.
[0146] Through the above steps, a fourth wireless network device that meets the venue type of the target venue can be screened out from the first wireless network devices, so as to facilitate further screening of the target terminal in the next step.
[0147] In step S507, the second connection frequency of the target terminal when connecting to each fourth wireless network device within a preset time period is obtained.
[0148] Exemplarily, for the case where the target venue is home, through the above steps S501 to S506, a fourth wireless network device that meets the home type can be obtained. However, this is a fourth wireless network device that meets the home type. In order to more accurately reflect the wireless network device corresponding to the home of the target terminal (for example, the user may go to someone else's home during the preset time period and connect to the wireless network device in someone else's home. Although the wireless network device can be determined to be of the home type through the above method, it is not the wireless network device corresponding to the home of the target terminal), to further improve the accuracy of screening and obtain a target wireless network device that meets the venue type of the target venue corresponding to the target terminal. In this step, the second connection frequency of the target terminal when connecting to each fourth wireless network device within the preset time period can be obtained, so as to obtain the target wireless network device that meets the venue type of the target venue corresponding to the target terminal according to the second connection frequency.
[0149] In step S508, according to the second connection frequency, a fifth wireless network device with a second connection frequency greater than or equal to a second preset connection frequency is determined from the fourth wireless network devices.
[0150] Among them, the fourth wireless network device with the highest second connection frequency in the fourth wireless network devices can also be used as the fifth wireless network device.
[0151] In step S509, the fifth wireless network device is taken as the target wireless network device.
[0152] In this way, after multiple screenings through the above steps, a target wireless network device that best matches the venue type of the target venue corresponding to the target terminal can be obtained.
[0153] In step S510, based on the target wireless network device, the location where the target venue corresponding to the target terminal is located is determined.
[0154] Similarly, based on the target wireless network device, determining the location where the target venue corresponding to the target terminal is located can refer to the specific examples of step S103 in the above Figure 1 embodiment (including three possible implementation manners), which will not be elaborated here.
[0155] In step S511, the weather warning information corresponding to the location where the target venue is located is sent to the target terminal.
[0156] In step S512, in response to the navigation instruction for the target venue triggered by the user, based on the fourth location where the target terminal is currently located and the location where the target venue is located, multiple travel routes are generated and sent to the target terminal.
[0157] Regarding each step in the above embodiment, the specific manner of performing the operation in each step has been described in detail in the Figures 1 to 6 embodiment in, and will not be elaborated here.
[0158] By using the above method, based on the device connection data of the first wireless network device connected by the target terminal within a preset time period, and according to the device connection data, a target wireless network device that meets the preset screening rules can be determined from one or more first wireless network devices, that is, a target wireless network device related to the target venue corresponding to the target terminal is determined, and then based on the target wireless network device, the location where the target venue is located can be accurately determined. In this way, the normal operation of functions relying on these location data is greatly ensured, and at the same time, the user experience is improved.
[0159] Figure 8 is a block diagram of a location determination device shown according to an exemplary embodiment, as Figure 8 shown, the device 600 includes:
[0160] An acquisition module 601, configured to acquire device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with a target terminal within a preset time period; the device connection data includes connection data of the one or more first wireless network devices connecting to the target terminal or location data of the target terminal.
[0161] A first determination module 602, configured to determine a target wireless network device that meets a preset screening rule from the one or more first wireless network devices according to the device connection data; wherein, the preset screening rule is that when the device connection data includes the connection data, the connection data meets a first screening condition, or when the device connection data includes the location data, the location data meets a second screening condition.
[0162] A second determination module 603, configured to determine the location where the target place corresponding to the target terminal is located according to the target wireless network device.
[0163] Optionally, when the device connection data includes the connection data, the connection data includes: the number of terminals connected to each of the first wireless network devices by the terminal within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period.
[0164] The first screening condition includes: the number of terminals is greater than or equal to a preset number of terminals and the first connection frequency is greater than or equal to a first preset connection frequency.
[0165] Optionally, when the device connection data includes the location data, the location data includes: the first location where the target terminal is located when connecting to each of the first wireless network devices within the preset time period.
[0166] The acquisition module 601 is configured to acquire the corresponding interest point types of one or more interest points within a preset range of the locations of the one or more first wireless network devices according to the first location.
[0167] The first determination module 602 is configured to determine a target wireless network device that meets the second screening condition from the one or more first wireless network devices according to the corresponding interest point types of the one or more interest points.
[0168] Wherein, the second screening condition includes: the corresponding interest point types of the one or more interest points are the same as the preset place type corresponding to the target place.
[0169] Optionally, when the device connection data includes the connection data, the connection data includes: the second connection frequency of the target terminal connecting to each of the first wireless network devices within the preset time period;
[0170] The first screening condition includes: the second connection frequency is greater than or equal to the second preset connection frequency.
[0171] Optionally, the second determination module 603 is configured to obtain the second location where the target terminal is located when it connects to the target wireless network device for the last time; and use the second location as the location where the target place is located.
[0172] Optionally, the second determination module 603 is configured to obtain one or more third locations where the target terminal is located when it connects to the target wireless network device within the preset time period; determine the average location of the one or more third locations; and use the average location as the location where the target place is located.
[0173] Optionally, the second determination module 603 is configured to: obtain one or more third locations where the target terminal is located when it connects to the target wireless network device within the preset time period; perform clustering on the one or more third locations through a clustering algorithm to obtain the central location after clustering; and use the central location as the location where the target place is located.
[0174] Optionally, as Figure 9 shown, the device 600 further includes:
[0175] A first sending module 604, configured to send the weather warning information corresponding to the location where the target place is located to the target terminal, so that the target terminal can display the weather warning information.
[0176] Optionally, as Figure 10 shown, the device 600 further includes:
[0177] A second sending module 605, configured to, in response to a navigation instruction for the target place triggered by a user, generate multiple travel routes according to the fourth location where the target terminal is currently located and the location where the target place is located, and send the multiple travel routes to the target terminal, so that the target terminal can display the multiple travel routes.
[0178] By using the above device, it is possible to determine, according to the device connection data of the first wireless network devices connected by the target terminal within a preset time period, and based on the device connection data, a target wireless network device that meets the preset screening rules from one or more first wireless network devices, that is, to determine the target wireless network device related to the target location corresponding to the target terminal, and then accurately determine the location where the target location is located according to the target wireless network device. In this way, it greatly ensures the normal operation of the functions relying on these location data, and at the same time improves the user experience.
[0179] Regarding the device in the above embodiment, the specific manners in which each module performs operations have been described in detail in the embodiment of the method related thereto, and will not be elaborated herein.
[0180] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored, and when the program instructions are executed by a processor, the steps of the location determination method provided by the present disclosure are implemented.
[0181] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above location determination method when executed by the programmable device.
[0182] Figure 11 is a block diagram of an electronic device 700 shown according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Referring to Figure 11 , the electronic device 700 includes a processing component 722, which further includes one or more processors, and memory resources represented by a memory 732 for storing instructions executable by the processing component 722, such as application programs. The application programs stored in the memory 732 may include one or more modules each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the above location determination method.
[0183] The electronic device 700 may further include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM or the like.
[0184] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the present disclosure. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and examples are only illustrative, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0185] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A position determination method, characterized in that, The method includes: Obtaining device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with a target terminal within a preset time period; the device connection data includes location data of the connection between the one or more first wireless network devices and the target terminal; Determining, according to the device connection data, a target wireless network device that meets a preset screening rule from the one or more first wireless network devices; wherein, the preset screening rule is that when the device connection data includes the location data, the location data meets a second screening condition; Determining the location where the target place corresponding to the target terminal is located according to the target wireless network device; When the device connection data includes the location data, the location data includes: the first location where the target terminal is located when connecting to each of the first wireless network devices within the preset time period; The method further includes: Obtaining the types of interest points corresponding to one or more interest points within a preset range of the locations where the one or more first wireless network devices are located according to the first location; The determining, according to the device connection data, a target wireless network device that meets a preset screening rule from the one or more first wireless network devices includes: Determining, according to the types of interest points corresponding to the one or more interest points, a target wireless network device that meets the second screening condition from the one or more first wireless network devices; Wherein, the second screening condition includes: the types of interest points corresponding to the one or more interest points are the same as the preset place type corresponding to the target place.
2. The method according to claim 1, wherein The device connection data further includes connection data of the connection between the one or more first wireless network devices and the target terminal; the preset screening rule further includes that when the device connection data includes the connection data, the connection data meets a first screening condition.
3. The method according to claim 2, wherein When the device connection data includes the connection data, the connection data includes: the number of terminals connected to each of the first wireless network devices within the preset time period and the first connection frequency of each terminal connecting to the first wireless network device within the preset time period; The first screening condition includes: the number of terminals is greater than or equal to a preset number of terminals and the first connection frequency is greater than or equal to a first preset connection frequency.
4. The method according to claim 2, characterized in that When the device connection data includes the connection data, the connection data includes: the second connection frequency of the target terminal connecting to each of the first wireless network devices within the preset time period; The first screening condition includes: the second connection frequency is greater than or equal to a second preset connection frequency.
5. The method according to claim 1, characterized in that, The determining the location where the target place corresponding to the target terminal is located according to the target wireless network device includes: Obtaining the second location where the target terminal is located when connecting to the target wireless network device for the last time; Taking the second location as the location where the target place is located.
6. The method according to claim 1, characterized in that, Determining the location where the target venue corresponding to the target terminal is located according to the target wireless network device includes: Obtaining one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period; Determining the average location of the one or more third locations; Taking the average location as the location where the target venue is located.
7. The method according to claim 1, wherein Determining the location where the target venue corresponding to the target terminal is located according to the target wireless network device includes: Obtaining one or more third locations where the target terminal is located when connecting to the target wireless network device within the preset time period; Clustering the one or more third locations through a clustering algorithm to obtain a central location after clustering; Taking the central location as the location where the target venue is located.
8. The method according to any one of claims 1 to 7, characterized in that, The method further includes: Sending weather warning information corresponding to the location where the target venue is located to the target terminal so that the target terminal can display the weather warning information.
9. The method according to any one of claims 1 to 7, characterized in that The method further includes: In response to a navigation instruction for the target venue triggered by the user, generating multiple travel routes according to the current fourth location of the target terminal and the location where the target venue is located and sending them to the target terminal so that the target terminal can display the multiple travel routes.
10. A position determination device, characterized in that, The device includes: An obtaining module configured to obtain device connection data corresponding to one or more first wireless network devices, where the one or more first wireless network devices include network devices that establish a wireless network connection with the target terminal within a preset time period; the device connection data includes location data of the connection between the one or more first wireless network devices and the target terminal; A first determination module configured to determine a target wireless network device that meets a preset screening rule from the one or more first wireless network devices according to the device connection data; where the preset screening rule is that when the device connection data includes the location data, the location data meets a second screening condition; A second determination module configured to determine the location where the target venue corresponding to the target terminal is located according to the target wireless network device; When the device connection data includes the location data, the location data includes: the first location where the target terminal is located when connecting to each of the first wireless network devices within a preset time period; The obtaining module is configured to obtain the type of point of interest corresponding to one or more points of interest within a preset range of the location where the one or more first wireless network devices are located according to the first location; The first determination module is configured to determine a target wireless network device that meets the second screening condition from the one or more first wireless network devices according to the type of point of interest corresponding to the one or more points of interest; Wherein, the second screening condition includes: the type of point of interest corresponding to the one or more points of interest is the same as the preset venue type corresponding to the target venue.
11. An electronic device, characterized in that, Includes: A processor; A memory for storing instructions executable by the processor; Among them, the processor is configured to implement the steps of the method according to any one of claims 1 to 9 when calling the executable instructions stored on the memory.
12. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the program instructions are executed by the processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Information determining method and device
CN107040886A