CN112468958A - Region determination method and device, electronic equipment and computer readable storage medium - Google Patents

Region determination method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN112468958A
CN112468958A CN202011322731.XA CN202011322731A CN112468958A CN 112468958 A CN112468958 A CN 112468958A CN 202011322731 A CN202011322731 A CN 202011322731A CN 112468958 A CN112468958 A CN 112468958A
Authority
CN
China
Prior art keywords
target data
area
terminal
information determined
wifi signal
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.)
Granted
Application number
CN202011322731.XA
Other languages
Chinese (zh)
Other versions
CN112468958B (en
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.)
Yuanxin Information Technology Group Co ltd
Original Assignee
Beijing Yuanxin Science and 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 Yuanxin Science and Technology Co Ltd filed Critical Beijing Yuanxin Science and Technology Co Ltd
Priority to CN202011322731.XA priority Critical patent/CN112468958B/en
Publication of CN112468958A publication Critical patent/CN112468958A/en
Application granted granted Critical
Publication of CN112468958B publication Critical patent/CN112468958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Abstract

The application provides a region determination method, a region determination device, electronic equipment and a computer readable storage medium, and relates to the technical field of wireless positioning. The method comprises the following steps: in the process of determining the area of the terminal, acquiring area information determined by a position sensor arranged in the terminal and area information determined by a WiFi signal of the terminal; if the area information determined by the position sensor is different from the area information determined by the WiFi signals, acquiring first target data and second target data of the terminal at a plurality of positions; acquiring the quantity of first target data of the position information in a first target area and the quantity of second target data of which the WiFi signal strength meets a preset strength threshold; and determining the area of the terminal from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data. The method and the device can accurately determine the area of the terminal.

Description

Region determination method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of wireless positioning technologies, and in particular, to a method and an apparatus for determining a region, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of the technology, the mobile phone positioning brings great convenience to people's life and travel, in the prior art, the geographic position of the mobile phone can be obtained by using positioning devices such as a GPS or a Beidou, and the regional information where the mobile phone is located can be further determined based on the geographic position of the mobile phone, so that various activities of a user in a region are facilitated.
However, in the positioning device such as the GPS or the beidou, there is a certain error in positioning, which may cause a positioning error in the actual geographic position of the mobile phone due to the positioning error, further cause an error in the information of the area where the mobile phone is located, and may bring inconvenience to the user.
Besides the GPS and the beidou positioning device, the geographic position of the mobile phone can be provided by other devices and the area information where the mobile phone is located can be acquired, but in practice, the geographic positions or the area information provided by various devices are not consistent, and at this time, the accuracy of the provided geographic position or the area information needs to be judged.
Disclosure of Invention
The application provides a method and a device for determining a region, electronic equipment and a computer readable storage medium, which can solve the problem of accurately determining region information. The technical scheme is as follows:
in a first aspect, a method for determining a region is provided, where the method includes:
in the process of determining the area of the terminal, acquiring area information determined by a position sensor arranged in the terminal and area information determined by a WiFi signal of the terminal;
if the area information determined by the position sensor is different from the area information determined by the WiFi signals, acquiring first target data and second target data of the terminal at a plurality of positions, wherein the first target data comprise the position information determined by the position sensor when the terminal is at each position, and the second target data comprise the WiFi signal strength of the terminal at each position;
acquiring the quantity of first target data of position information in a first target area and the quantity of second target data of which WiFi signal strength meets a preset strength threshold, wherein the first target area comprises an area to which a preset position belongs when a terminal is at the preset position;
and determining the area of the terminal from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data.
In a second aspect, an apparatus for region determination is provided, the apparatus comprising:
the first acquisition module is used for acquiring area information determined by a position sensor arranged in the terminal and area information determined by a WiFi signal of the terminal in the process of determining the area where the terminal is located;
the terminal comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring first target data and second target data of the terminal at a plurality of positions if the area information determined by the position sensor is different from the area information determined by the WiFi signal, the first target data comprises the position information determined by the position sensor when the terminal is at each position, and the second target data comprises the WiFi signal strength of the terminal at each position;
the second acquisition module is used for acquiring the number of first target data of the position information in a first target area and the number of second target data of which the WiFi signal strength meets a preset strength threshold, wherein the first target area comprises an area to which a preset position belongs when the terminal is at the preset position;
and the determining module is used for determining the area where the terminal is located from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data.
In a third aspect, an electronic device is provided, which includes:
one or more processors;
a memory;
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform operations corresponding to the region determination method as illustrated in the first aspect of the present application.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, is adapted to carry out the method of region determination according to the first aspect of the present application.
The beneficial effect that technical scheme that this application provided brought is:
in the method and the device for determining the area of the terminal, the area information determined by a position sensor and the area information determined by a WiFi signal of the terminal which are arranged in the terminal are obtained, when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, first target data and second target data of the terminal at a plurality of positions are collected, the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets a preset strength threshold value are obtained, and finally the area where the terminal is located is determined from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. The area where the terminal is located is determined more accurately through the embodiment of the application, and inconvenience brought to a user is avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a region determination method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another area determination method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a further area determination method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an area determination apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The present application provides a region determination method, an apparatus, an electronic device, and a computer-readable storage medium, which are intended to solve the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
An embodiment of the present application provides a method for determining an area, and as shown in fig. 1, the method includes:
step S101: in the process of determining the area of the terminal, acquiring area information determined by a position sensor built in the terminal and area information determined by a WiFi signal of the terminal.
The terminal related to the embodiment of the present application includes any terminal having a positioning function and connecting to a wireless network hotspot, for example: the terminal is a mobile phone, a computer, a navigation device and the like.
The method comprises the steps that a position sensor arranged in a terminal comprises a GPS or Beidou positioning function, the step of obtaining area information determined by the position sensor arranged in the terminal comprises the step of determining a coordinate value of the terminal according to the GPS or Beidou positioning function arranged in the terminal, the coordinate value is the geographical position of the terminal, and the area information determined by the position sensor can be determined according to the geographical position of the terminal.
Specifically, the specific range of some places where the user frequently goes can be defined on the coordinate plane as the area information determined by the position sensor according to the history of the terminal user, and if the coordinate value of the terminal position cannot be determined according to the history of the terminal user, the place where the terminal is located can be determined according to the existing electronic map, and the range of the place in the information in the electronic map is determined as the area information determined by the position sensor.
It can be understood that the WiFi name connected to the terminal and the strength of the WiFi signal may be directly determined from the terminal, and the area information determined by the WiFi signal of the terminal specifically refers to a location where a device diverging the WiFi signal is located according to the WiFi name information connected to the terminal, and determines the location as the area information determined by the WiFi signal, where a stronger WiFi signal strength indicates that the location corresponding to the WiFi signal is more accurate. That is, the WIFI cannot directly provide the coordinate value of the terminal, but after the terminal is in communication connection with the WIFI device located at a certain location, the terminal is considered to be located at a certain location, and generally, the closer the terminal is to the fixed device located at a certain location, the stronger the signal is.
Step S102: if the area information determined by the position sensor is different from the area information determined by the WiFi signals, acquiring first target data and second target data of the terminal at a plurality of positions, wherein the first target data comprise the position information determined by the position sensor when the terminal is at each position, and the second target data comprise the WiFi signal strength of the terminal at each position.
It can be understood that, in an actual process, it is possible that the area information determined according to the position sensor and the area information determined according to the WiFi signal of the terminal are not consistent, that is, under the condition that the area information acquired according to the GPS and beidou positioning functions built in the terminal is not consistent with the area information determined according to the WiFi signal, an unexpected result will be caused by directly adopting a certain area information without further judgment, and at this time, it is necessary to determine more accurate area information from the two area information as the area where the terminal is located.
First target data and second target data of the terminal at a plurality of positions can be collected, wherein the first target data comprise position information determined by the terminal according to the position sensor when the terminal is at each position, and the second target data comprise WiFi signal strength of the terminal at each position.
Specifically, a coordinate value of the terminal at each position can be determined by using a GPS or beidou positioning function built in the terminal, and the coordinate value is position information of the terminal at the position; the WiFi name and the strength of the WiFi signal to which the terminal is connected at each location can then be determined directly from the terminal.
Through the position of the mobile terminal, the coordinates of the terminal at different positions and the signal intensity of WIFI are recorded, and multiple groups of target data can be acquired. Namely, when the terminal user moves, the position is judged to be changed, and then the coordinate of the current position and the signal intensity of the WIFI are recorded.
Step S103: the method comprises the steps of obtaining the number of first target data of position information in a first target area and the number of second target data of which WiFi signal strength meets a preset strength threshold, wherein the first target area comprises an area to which a preset position belongs when a terminal is at the preset position.
Step S104: and determining the area of the terminal from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data.
In this embodiment of the application, in the obtained plurality of first target data and second target data, the area where the terminal is located may be determined according to the number of the first target data in the first target area of the location information and the number of the second target data whose WiFi signal strength meets the predetermined strength threshold.
The first target area may be an area determined by position information of an initial position of the terminal at a predetermined position, such as an initial position of acquisition, when the terminal acquires the first target data and the second target data at a plurality of positions.
It is understood that when the number of the first target data of the position information of the terminal in the first target area is large, it indicates that it is appropriate to use the area information determined based on the position sensor as the area where the terminal is located; when the number of the second target data whose WiFi signal strength of the terminal satisfies the predetermined strength threshold is larger, it indicates that it is more appropriate to use the area information determined based on the WiFi signal as the area where the terminal is located.
In the method and the device for determining the area of the terminal, the area information determined by a position sensor and the area information determined by a WiFi signal of the terminal which are arranged in the terminal are obtained, when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, first target data and second target data of the terminal at a plurality of positions are collected, the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets a preset strength threshold value are obtained, and finally the area where the terminal is located is determined from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. The area where the terminal is located is determined more accurately through the embodiment of the application, and inconvenience brought to a user is avoided.
In an embodiment of the present application, the step S104 of determining, according to the quantity of the first target data and the quantity of the second target data, a location area of the terminal from the area information determined by the location sensor and the area information determined by the WiFi signal includes:
step S104 a: if the ratio of the number of first target data of the position information in a first target area to the total number of positions of a plurality of positions is not smaller than a first ratio threshold, and in second target data corresponding to the first target data based on the same position, the ratio of the number of third target data of which the WiFi signal strength is not larger than the first strength threshold to the number of second target data corresponding to the first target data based on the same position exceeds a second ratio threshold, determining the area information determined by the position sensor as the area where the terminal is located.
It can be understood that, in the embodiment of the present application, a specific determination method for determining an area where a terminal is located from area information determined by a location sensor and area information determined by a WiFi signal is provided.
For example, in the first target data at the plurality of positions, if the ratio of the number of the first target data with the position information in the first target area to the total number of the positions of the plurality of positions is not less than the first ratio threshold (e.g. 50%), wherein the first target area refers to an area determined by the built-in sensor according to the position information of the initial position of the terminal when the terminal is at the initial position, and in second target data corresponding to the first target data based on the same position, determining the area information determined by the position sensor as the area where the terminal is located if the ratio of the number of third target data with the WiFi signal strength not greater than a first strength threshold (for example, the strength is 0 or slightly greater than 0) to the number of second target data corresponding to the first target data based on the same position exceeds a second ratio threshold (for example, 40%).
In an embodiment of the present application, the step S104 of determining, according to the quantity of the first target data and the quantity of the second target data, a location area of the terminal from the area information determined by the location sensor and the area information determined by the WiFi signal includes:
step S104 b: if the ratio of the number of first target data of the position information in the first target area to the total number of positions of the plurality of positions is smaller than a first ratio threshold, and in second target data corresponding to the first target data which is based on the same position and is not in the first target area, the ratio of the number of fourth target data of which the WiFi signal strength is larger than the first strength threshold to the number of second target data corresponding to the first target data which is based on the same position and is not in the first target area exceeds a third ratio threshold, determining the area information determined by the WiFi signal as the area where the terminal is located.
It can be understood that, in the embodiment of the present application, a specific determination method for determining an area where a terminal is located from area information determined by a location sensor and area information determined by a WiFi signal is provided.
Specifically, for example, in the first target data at the plurality of positions, if a ratio of the number of the first target data having the position information in the first target area to the total number of the plurality of positions is smaller than a first ratio threshold (for example, 50%), and in the second target data corresponding to the first target data having the same position and not having the position information in the first target area, a ratio of the number of the fourth target data having the WiFi signal strength greater than the first strength threshold (for example, the strength is 0 or slightly greater than 0) to the number of the second target data corresponding to the first target data having the same position and not having the position information in the first target area exceeds a third ratio threshold (for example, 60%), the area information determined by the WiFi signal is used as the area where the terminal is located.
In an embodiment of the present application, the step S104 of determining, according to the quantity of the first target data and the quantity of the second target data, a location area of the terminal from the area information determined by the location sensor and the area information determined by the WiFi signal includes:
step S104 c: if the ratio of the number of the first target data of the position information in the first target area to the total number of the positions of the plurality of positions is smaller than the first ratio threshold, and in the second target data corresponding to the first target data whose position information is not within the first target area based on the same position, the ratio of the number of the fourth target data with the WiFi signal strength larger than the first strength threshold value to the number of the second target data corresponding to the first target data which is not in the first target area based on the same position and the position information is not larger than a third ratio threshold value, and in the first target data with the position information not in the first target area, the ratio of the number of the fifth target data with the position information in the second target area to the number of the first target data with the position information not in the first target area is not less than a fourth ratio threshold, and the area information determined by the position sensor is determined as the area where the terminal is located.
It can be understood that, in the embodiment of the present application, a specific determination method for determining an area where a terminal is located from area information determined by a position sensor and area information determined by a WiFi signal is provided.
Specifically, for example, in the first target data at the plurality of positions, if the ratio of the number of first target data having position information in the first target area to the total number of positions of the plurality of positions is smaller than a first ratio threshold (for example, 50%), and in the second target data corresponding to the first target data not having position information in the first target area based on the same position, the ratio of the number of fourth target data having WiFi signal strength greater than the first strength threshold (for example, having strength of 0 or slightly greater than 0) to the number of second target data corresponding to the first target data not having position information in the first target area based on the same position is not greater than a third ratio threshold (for example, 60%), and in the first target data not having position information in the first target area, the ratio of the number of fifth target data having position information in the second target area to the number of first target data having position information not in the first target area is not smaller than the third ratio threshold (for example, 60%) And (e.g., 60%) determining, by using the area information determined by the position sensor as the area of the terminal, a fourth ratio threshold, where the second target area is an area different from the first target area and is also a predetermined area.
In one embodiment of the present application, the region determining method further includes:
step S203: and acquiring sixth target data corresponding to the first target data in the first target area based on the same position and the position information.
Step S204: in the sixth target data, if the WiFi signal strength of the terminal conforms to the skewed distribution, determining the area information determined by the WiFi signal as the area where the terminal is located.
The principle of steps S201 to S202 is similar to that of steps S101 to S102, and is not described here again.
It can be understood that, if the terminal is located at the initial position, the WIFI signal strength of the first target data in the area determined according to the geographical position of the initial position of the terminal shows obvious skewed distribution, the area where the terminal is located takes the area information determined by the WIFI signal as the reference, otherwise, the probability that the obvious skewed distribution appears when the quality of the WIFI signal is good is high, taking the area information determined by the built-in sensor as the reference.
Wherein, the WiFi signal of terminal accords with the skewed distribution, includes:
and classifying the position points where the sixth target data are located based on the WiFi signal strength, wherein a convex set of a preset area of the position points corresponding to the sixth target data in each category meets a preset intersection condition.
And acquiring any point of the terminal in the first target area, wherein the distance from the point to the geometric center of each category of convex set and the WiFi signal strength corresponding to each category of convex set are expressed as strictly monotonically increasing or strictly monotonically decreasing functions.
For example, the location points where the sixth target data is located are classified into several categories according to the WiFi signal strength (where the number of categories may be determined according to the number of points, each category includes several points, for example, 3-6 points, allowing for duplicate points in the category).
After at most a set number of points are removed from each category (the number of points in a category is not more than 4, the set number is 1, the number of points in a category is 5-6, the set number is 2, and if the number of points in a category is more, the set number can be increased as appropriate), the convex set of the predetermined area of the position point corresponding to the sixth target data in each category may be a convex set including all the remaining points of each category and having the smallest area, and accordingly, the predetermined intersection condition includes that the convex sets of the categories having the smallest area of all the remaining points in each category do not intersect with each other or the area of the intersection portion is 0 (the area of the point and the line is 0).
When the terminal is located at the initial position, at least one point (called an origin for short) exists in the first target area or on the boundary, and the distance from the point to the geometric center of each category of convex set and the WiFi signal strength corresponding to each category of convex set are expressed as strictly monotonically increasing or strictly monotonically decreasing functions. A strictly monotonically increasing or strictly monotonically decreasing function means that the distance from the geometric center of the convex set with the largest WiFi signal strength to the origin is the smallest (or the largest), that the distance from the geometric center of the convex set with the second largest WiFi signal strength to the origin is the second smallest (or the second largest), and so on. The geometric center of the convex set, which may be defined as the point with the minimum sum of distances to all vertices of the convex set or other related definitions, must be located inside or on the boundary of the convex set based on the nature of the convex set. The convex set described above is consistent with the convex set concept commonly used in mathematics. The convex set may have a variety of definitions, for example, the set S is called a convex set if any two points in S are within the set S.
It can be understood that, if the WIFI signal strength of the sixth target data corresponding to the first target data of the location information in the first target area shows an obvious skewed distribution, it indicates that, along with the movement of the terminal, the WIFI signal strength may monotonically increase first, then monotonically decrease, or first monotonically decrease, then monotonically increase, and that the terminal is connected to the same WIFI hotspot, so that it is reasonable to determine the area information by using the WIFI signal in the area where the terminal is located at this time.
In one embodiment of the present application, the region determining method further includes:
step S305: and acquiring the functional interface corresponding to the area of the terminal according to the corresponding relation between the area identifier and the functional interface which is constructed in advance.
Step S306: and calling the functional interface to perform near field communication with the card swiping terminal with the function.
The principle of steps S301 to S304 is similar to that of steps S101 to S104, and is not described here again.
It can be understood that the terminal in this embodiment further has a function of NFC (Near Field Communication), and after acquiring accurate area information, the terminal may provide a corresponding card mode to complete the Near Field Communication with the card swiping terminal, where the card swiping terminal includes a bus card swiping terminal, a mall card swiping terminal, that is, a company card swiping terminal, and the like.
Specifically, the correspondence between the area identifier and the function interface can be pre-established in the terminal, and when accurate area information is determined, near field communication can be performed with the card swiping terminal with the function by calling the function interface with the area information.
For example, the terminal may determine scenes such as subway stations, shopping malls, units, and the like according to the determined area information, turn on the GPS or the WiFi while turning on the NFC by the terminal user, determine the scenes according to the determined area information, and then match various scenes. If finding out a corresponding scene, such as matching a subway station (bus station), the NFC calls a bus card mode function, and at the moment, the terminal can be equivalent to a bus card and can be used for swiping the bus card. The unit is matched to call the entrance guard card mode function, and the terminal can be equivalent to the fingerprint of the terminal user at the moment and is used for card swiping commuting in an entrance guard system.
In the method and the device for determining the area of the terminal, the area information determined by a position sensor and the area information determined by a WiFi signal of the terminal which are arranged in the terminal are obtained, when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, first target data and second target data of the terminal at a plurality of positions are collected, the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets a preset strength threshold value are obtained, and finally the area of the terminal is determined from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. And the terminal is matched to a corresponding card mode through an accurate area, so that the near field communication is completed, and the use experience of a terminal user is improved.
An embodiment of the present application provides an area determining apparatus, and as shown in fig. 4, the area determining apparatus 40 may include: a first acquisition module 401, an acquisition module 402, a second acquisition module 403, and a determination module 404, wherein,
a first obtaining module 401, configured to obtain, in a process of determining an area where a terminal is located, area information determined by a location sensor built in the terminal and area information determined by a WiFi signal of the terminal.
The terminal related to the embodiment of the present application includes any terminal having a positioning function and connected to a wireless network hotspot, for example: the terminal is a mobile phone, a computer, a navigation device and the like.
The method comprises the steps that a position sensor arranged in a terminal comprises a GPS or Beidou positioning function, the step of obtaining area information determined by the position sensor arranged in the terminal comprises the step of determining a coordinate value of the terminal according to the GPS or Beidou positioning function arranged in the terminal, the coordinate value is the geographical position of the terminal, and the area information determined by the position sensor can be determined according to the geographical position of the terminal.
Specifically, the specific range of some places where the user frequently goes can be defined on the coordinate plane as the area information determined by the position sensor according to the history of the terminal user, and if the coordinate value of the terminal position cannot be determined according to the history of the terminal user, the place where the terminal is located can be determined according to the existing electronic map, and the range of the place in the information in the electronic map is determined as the area information determined by the position sensor.
It can be understood that the WiFi name connected to the terminal and the strength of the WiFi signal may be directly determined from the terminal, and the area information determined by the WiFi signal of the terminal specifically refers to a location where a device diverging the WiFi signal is located according to the WiFi name information connected to the terminal, and determines the location as the area information determined by the WiFi signal, where a stronger WiFi signal strength indicates that the location corresponding to the WiFi signal is more accurate. That is, the WIFI cannot directly provide the coordinate value of the terminal, but after the terminal is in communication connection with the WIFI device located at a certain location, the terminal is considered to be located at a certain location, and generally, the closer the terminal is to the fixed device located at a certain location, the stronger the signal is.
An acquiring module 402, configured to acquire first target data and second target data of the terminal at multiple positions if the area information determined by the location sensor is different from the area information determined by the WiFi signal, where the first target data includes location information determined by the location sensor when the terminal is at each position, and the second target data includes WiFi signal strength of the terminal at each position.
It can be understood that, in an actual process, it is possible that the area information determined according to the position sensor and the area information determined according to the WiFi signal of the terminal are not consistent, that is, under the condition that the area information acquired according to the GPS and beidou positioning functions built in the terminal is not consistent with the area information determined according to the WiFi signal, an unexpected result will be caused by directly adopting a certain area information without further judgment, and at this time, it is necessary to determine more accurate area information from the two area information as the area where the terminal is located.
First target data and second target data of the terminal at a plurality of positions can be collected, wherein the first target data comprise position information determined by the terminal according to the position sensor when the terminal is at each position, and the second target data comprise WiFi signal strength of the terminal at each position.
Specifically, a coordinate value of the terminal at each position can be determined by using a GPS or beidou positioning function built in the terminal, and the coordinate value is position information of the terminal at the position; the WiFi name and the strength of the WiFi signal to which the terminal is connected at each location can then be determined directly from the terminal.
Through the position of the mobile terminal, the coordinates of the terminal at different positions and the signal intensity of WIFI are recorded, and multiple groups of target data can be acquired. Namely, when the terminal user moves, the position is judged to be changed, and then the coordinate of the current position and the signal intensity of the WIFI are recorded.
A second obtaining module 403, configured to obtain the number of first target data of the location information in a first target area and the number of second target data of which the WiFi signal strength meets a predetermined strength threshold, where the first target area includes an area to which a predetermined location belongs when the terminal is at the predetermined location.
A determining module 404, configured to determine, according to the quantity of the first target data and the quantity of the second target data, a location area of the terminal from the area information determined by the location sensor and the area information determined by the WiFi signal.
In this embodiment of the application, in the obtained plurality of first target data and second target data, the area where the terminal is located may be determined according to the number of the first target data in the first target area of the location information and the number of the second target data whose WiFi signal strength meets the predetermined strength threshold.
The first target area may be an area determined by position information of an initial position of the terminal at a predetermined position, such as an initial position of acquisition, when the terminal acquires the first target data and the second target data at a plurality of positions.
It is understood that when the number of the first target data of the position information of the terminal in the first target area is large, it indicates that it is appropriate to use the area information determined based on the position sensor as the area where the terminal is located; when the number of the second target data whose WiFi signal strength of the terminal satisfies the predetermined strength threshold is larger, it indicates that it is more appropriate to use the area information determined based on the WiFi signal as the area where the terminal is located.
In the method and the device for determining the area of the terminal, the area information determined by a position sensor and the area information determined by a WiFi signal of the terminal which are arranged in the terminal are obtained, when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, first target data and second target data of the terminal at a plurality of positions are collected, the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets a preset strength threshold value are obtained, and finally the area where the terminal is located is determined from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. The area where the terminal is located is determined more accurately through the embodiment of the application, and inconvenience brought to a user is avoided.
An embodiment of the present application provides an electronic device, including: a memory and a processor; at least one program, stored in the memory, for execution by the processor, in comparison to the prior art: in the method and the device for determining the area of the terminal, the area information determined by a position sensor and the area information determined by a WiFi signal of the terminal which are arranged in the terminal are obtained, when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, first target data and second target data of the terminal at a plurality of positions are collected, the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets a preset strength threshold value are obtained, and finally the area where the terminal is located is determined from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. The area where the terminal is located is determined more accurately through the embodiment of the application, and inconvenience brought to a user is avoided.
In an alternative embodiment, an electronic device is provided, as shown in fig. 5, the electronic device 4000 shown in fig. 5 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further comprise a transceiver 4004. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
The memory 4003 is used for storing application codes for executing the scheme of the present application, and the execution is controlled by the processor 4001. Processor 4001 is configured to execute application code stored in memory 4003 to implement what is shown in the foregoing method embodiments.
The present application provides a computer-readable storage medium, on which a computer program is stored, which, when running on a computer, enables the computer to execute the corresponding content in the foregoing method embodiments. Compared with the prior art, in the process of determining the area of the terminal, the embodiment of the application acquires the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal, acquires the first target data and the second target data of the terminal at a plurality of positions when the area information determined by the position sensor and the area information determined by the WiFi signal of the terminal are different, acquires the number of the first target data of the position information in the first target area and the number of the second target data of which the WiFi signal strength meets the preset strength threshold value, and finally determines the area of the terminal from the area information determined by the position sensor and the area information determined by the WiFi signal according to the number of the first target data and the number of the second target data. The area where the terminal is located is determined more accurately through the embodiment of the application, and inconvenience brought to a user is avoided.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for determining a region, comprising:
in the process of determining the area of the terminal, acquiring area information determined by a position sensor arranged in the terminal and area information determined by a WiFi signal of the terminal;
if the area information determined by the position sensor is different from the area information determined by the WiFi signal, acquiring first target data and second target data of the terminal at a plurality of positions, wherein the first target data comprise the position information determined by the position sensor when the terminal is at each position, and the second target data comprise the WiFi signal strength of the terminal at each position;
acquiring the quantity of first target data of position information in a first target area and the quantity of second target data of which WiFi signal strength meets a preset strength threshold, wherein the first target area comprises an area to which a preset position belongs when a terminal is at the preset position;
and determining the area of the terminal from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data.
2. The method according to claim 1, wherein the determining the area of the terminal from the area information determined by the position sensor built in the terminal and the area information determined by the WiFi signal of the terminal according to the quantity of the first target data and the quantity of the second target data comprises:
if the ratio of the number of first target data of the position information in a first target area to the total number of positions of a plurality of positions is not smaller than a first ratio threshold, and in second target data corresponding to the first target data based on the same position, the ratio of the number of third target data of which the WiFi signal strength is not larger than the first strength threshold to the number of second target data corresponding to the first target data based on the same position exceeds a second ratio threshold, determining the area information determined by the position sensor as the area where the terminal is located.
3. The method according to claim 1, wherein the determining the area of the terminal from the area information determined by the position sensor built in the terminal and the area information determined by the WiFi signal of the terminal according to the quantity of the first target data and the quantity of the second target data comprises:
if the ratio of the number of first target data of the position information in the first target area to the total number of positions of the plurality of positions is smaller than a first ratio threshold, and in second target data corresponding to the first target data which is based on the same position and is not in the first target area, the ratio of the number of fourth target data of which the WiFi signal strength is larger than the first strength threshold to the number of second target data corresponding to the first target data which is based on the same position and is not in the first target area exceeds a third ratio threshold, determining the area information determined by the WiFi signal as the area where the terminal is located.
4. The method according to claim 3, wherein the determining the area of the terminal from the area information determined by the position sensor built in the terminal and the area information determined by the WiFi signal of the terminal according to the quantity of the first target data and the quantity of the second target data comprises:
if the ratio of the number of the first target data of the position information in the first target area to the total number of the positions of the plurality of positions is smaller than the first ratio threshold, and in the second target data corresponding to the first target data whose position information is not within the first target area based on the same position, the ratio of the number of the fourth target data with the WiFi signal strength larger than the first strength threshold value to the number of the second target data corresponding to the first target data which is not in the first target area based on the same position and the position information is not larger than a third ratio threshold value, and in the first target data with the position information not in the first target area, the ratio of the number of the fifth target data with the position information in the second target area to the number of the first target data with the position information not in the first target area is not less than a fourth ratio threshold, and the area information determined by the position sensor is determined as the area where the terminal is located.
5. The method of claim 1, wherein the region determination method further comprises:
acquiring sixth target data corresponding to the first target data in the first target area based on the same position and the position information;
and in the sixth target data, if the WiFi signal strength of the terminal accords with the skewed distribution, determining the area information determined by the WiFi signal as the area of the terminal.
6. The method of claim 5, wherein the WiFi signal strength of the terminal conforms to a skewed distribution, comprising:
classifying the position points where the sixth target data are located based on the WiFi signal strength, wherein a convex set of a preset area of the position points corresponding to the sixth target data in each category meets a preset intersection condition;
and acquiring any point of the terminal in the first target area, wherein the distance from the point to the geometric center of each category of convex set and the WiFi signal strength corresponding to each category of convex set are expressed as strictly monotonically increasing or strictly monotonically decreasing functions.
7. The method according to any one of claims 1-6, wherein the region determination method further comprises:
acquiring a functional interface corresponding to the area of the terminal according to the corresponding relation between the area identification and the functional interface which is constructed in advance;
and calling the functional interface to perform near field communication with the card swiping terminal with the function.
8. An area determination apparatus, comprising:
the first acquisition module is used for acquiring area information determined by a position sensor arranged in the terminal and area information determined by a WiFi signal of the terminal in the process of determining the area where the terminal is located;
the terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring first target data and second target data of the terminal at a plurality of positions if the area information determined by the position sensor is different from the area information determined by the WiFi signal, the first target data comprises the position information determined by the position sensor when the terminal is at each position, and the second target data comprises the WiFi signal strength of the terminal at each position;
the second acquisition module is used for acquiring the number of first target data of position information in a first target area and the number of second target data of which the WiFi signal strength meets a preset strength threshold, wherein the first target area comprises an area to which a preset position belongs when the terminal is at the preset position;
and the determining module is used for determining the area where the terminal is located from the area information determined by the position sensor and the area information determined by the WiFi signals according to the quantity of the first target data and the quantity of the second target data.
9. An electronic device, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: performing the region determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the region determination method according to any one of claims 1 to 7.
CN202011322731.XA 2020-11-23 2020-11-23 Region determination method and device, electronic equipment and computer readable storage medium Active CN112468958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011322731.XA CN112468958B (en) 2020-11-23 2020-11-23 Region determination method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011322731.XA CN112468958B (en) 2020-11-23 2020-11-23 Region determination method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112468958A true CN112468958A (en) 2021-03-09
CN112468958B CN112468958B (en) 2023-02-24

Family

ID=74799975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011322731.XA Active CN112468958B (en) 2020-11-23 2020-11-23 Region determination method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112468958B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918323A (en) * 2014-03-12 2015-09-16 电信科学技术研究院 Terminal location method and device
CN105101404A (en) * 2015-05-19 2015-11-25 西安海导信息技术有限公司 Positioning method, device and terminal
CN107632314A (en) * 2017-08-28 2018-01-26 深圳传音控股有限公司 The localization method and mobile terminal of mobile terminal
WO2018103441A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Network positioning method and terminal device
CN109874112A (en) * 2017-12-05 2019-06-11 华为技术有限公司 A kind of method and terminal of positioning
CN111476915A (en) * 2020-03-26 2020-07-31 中科车港(深圳)实业股份有限公司 ETC transaction system and method based on Beidou positioning method and device
CN111757439A (en) * 2019-08-08 2020-10-09 广东小天才科技有限公司 Power consumption control method of wearable device and wearable device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104918323A (en) * 2014-03-12 2015-09-16 电信科学技术研究院 Terminal location method and device
CN105101404A (en) * 2015-05-19 2015-11-25 西安海导信息技术有限公司 Positioning method, device and terminal
WO2018103441A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Network positioning method and terminal device
CN107632314A (en) * 2017-08-28 2018-01-26 深圳传音控股有限公司 The localization method and mobile terminal of mobile terminal
CN109874112A (en) * 2017-12-05 2019-06-11 华为技术有限公司 A kind of method and terminal of positioning
CN111757439A (en) * 2019-08-08 2020-10-09 广东小天才科技有限公司 Power consumption control method of wearable device and wearable device
CN111476915A (en) * 2020-03-26 2020-07-31 中科车港(深圳)实业股份有限公司 ETC transaction system and method based on Beidou positioning method and device

Also Published As

Publication number Publication date
CN112468958B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN102840864B (en) A kind of method and apparatus being realized location navigation by Quick Response Code
CN110166991B (en) Method, device, apparatus and storage medium for locating electronic device
CN111352069A (en) Indoor positioning method, server, storage medium and program product
CN110414649B (en) DM code positioning method, device, terminal and storage medium
CN110570652A (en) vehicle fake plate detection reminding method and related product
CN109716416B (en) Automatic station reporting method and device, intelligent equipment and storage medium
CN106804060B (en) Fingerprint positioning method and device
CN111757464A (en) Region contour extraction method and device
CN108694381A (en) Object positioning method and object trajectory method for tracing
CN114141014B (en) Method, device and equipment for determining parking lot and storage medium
CN112468958B (en) Region determination method and device, electronic equipment and computer readable storage medium
CN110672086B (en) Scene recognition method, device, equipment and computer readable medium
CN111380558B (en) Method, device, server and storage medium for ordering points of interest
CN115866751B (en) Positioning method and device based on fixed beacons and indoor map
CN113286262B (en) Service providing method and apparatus, computer-readable storage medium, and electronic device
CN111405463B (en) Information acquisition method and device, electronic equipment and storage medium
US20200082325A1 (en) Moveable asset tracking systems using crowdsourcing measurements
CN111356072A (en) Position estimation method and device for indoor positioning and readable storage medium
CN112261093B (en) Man-vehicle data matching method and device
CN111132309B (en) Positioning method, positioning device, server and storage medium
CN113781392A (en) Method for detecting adhesive path, electronic device and storage medium
CN114040462B (en) Mobile phone signaling-based travel chain identification method and related device
CN107172637B (en) Method and device for classifying calls
CN111770472A (en) Vehicle positioning method and device, vehicle, storage medium and terminal
CN113392859A (en) Method and device for determining type of city functional area

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230516

Address after: Room 401, Floor 4, No. 2, Haidian East Third Street, Haidian District, Beijing 100080

Patentee after: Yuanxin Information Technology Group Co.,Ltd.

Address before: 100080 401-06, 4th floor, 2 Haidian East 3rd Street, Haidian District, Beijing

Patentee before: YUANXIN TECHNOLOGY