Nothing Special   »   [go: up one dir, main page]

CN110809236B - Area positioning method, area positioning device, computer equipment and computer readable storage medium - Google Patents

Area positioning method, area positioning device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN110809236B
CN110809236B CN201910857906.8A CN201910857906A CN110809236B CN 110809236 B CN110809236 B CN 110809236B CN 201910857906 A CN201910857906 A CN 201910857906A CN 110809236 B CN110809236 B CN 110809236B
Authority
CN
China
Prior art keywords
positioning
information
historical
current
positioning information
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.)
Active
Application number
CN201910857906.8A
Other languages
Chinese (zh)
Other versions
CN110809236A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910857906.8A priority Critical patent/CN110809236B/en
Publication of CN110809236A publication Critical patent/CN110809236A/en
Application granted granted Critical
Publication of CN110809236B publication Critical patent/CN110809236B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a region positioning method, a region positioning device, computer equipment and a computer readable storage medium; acquiring a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks; establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set; acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal; matching the current positioning information with the positioning information in the mapping relation set; when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set; and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block. The scheme can improve the accuracy of area positioning.

Description

Area positioning method, area positioning device, computer equipment and computer readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for area location, a computer device, and a computer-readable storage medium.
Background
With the development of communication technology, users have stronger and stronger appeal for obtaining position information anytime and anywhere, and viewing surrounding maps and positioning navigation by using mobile phones have become an indispensable part of life.
In the research and practice process of the related art, the inventor of the present application finds that, when a user enters a room from the outside or leaves the room from the inside to the outside, although a mobile phone can automatically change an area positioning method, the mobile phone is easily affected, and the obtained indoor and outdoor position information is inaccurate.
Disclosure of Invention
The embodiment of the application provides a region positioning method, a region positioning device, computer equipment and a computer readable storage medium, which can improve the positioning accuracy.
The embodiment of the application provides a region positioning method, which comprises the following steps:
acquiring a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks;
establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set;
acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal;
matching the current positioning information with the positioning information in the mapping relation set;
when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set;
and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
Correspondingly, the embodiment of the present application provides an area positioning apparatus, including:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks;
the establishing unit is used for establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set;
a second obtaining unit, configured to obtain a target location request initiated by a current terminal, where the target location request includes current location information of the current terminal;
the matching unit is used for matching the current positioning information with the positioning information in the mapping relation set;
a first determining unit, configured to determine, when target positioning information matching current positioning information exists, a target block corresponding to the target positioning information based on the mapping relationship set;
and the output unit is used for taking the target block as the geographic area where the current terminal is located and outputting the information of the target block.
In an embodiment, the area locating device may further include:
the fusion unit is used for fusing at least one piece of positioning information corresponding to each block in the mapping relation set to obtain fused positioning information corresponding to each block;
and the filtering unit is used for filtering the blocks in the mapping relation set according to the fused positioning information to obtain a filtered mapping relation set.
In one embodiment, the filter unit comprises:
the first filtering subunit is used for counting the quantity of the historical positioning requests in each block, and filtering the plurality of blocks according to the quantity to obtain an initially filtered mapping relation set;
and the second filtering subunit is configured to count the number of wireless network information of each block in the filtered mapping relationship set, and filter the plurality of blocks according to the number of the wireless network information to obtain the filtered mapping relationship set.
In one embodiment, the matching unit includes:
and the matching subunit is used for respectively matching the wireless network information with the wireless network information of each block in the mapping relation set.
In an embodiment, the area positioning method may further include:
a third obtaining unit, configured to obtain a result of matching the multiple pieces of wireless network information with the multiple pieces of wireless network information of the blocks in the mapping relationship set;
a fourth obtaining unit, configured to obtain, according to the result, an information quantity that the block is successfully matched with the plurality of wireless network information;
and the second determining unit is used for determining that the target positioning information matched with the current positioning information exists when the information quantity reaches a preset quantity.
In an embodiment, the first obtaining unit includes:
the system comprises a first obtaining subunit, a second obtaining subunit and a third obtaining subunit, wherein the first obtaining subunit is used for obtaining sample historical positioning requests initiated by a plurality of sample terminals;
the determining subunit is configured to determine, according to historical location information included in each sample historical location request, a sample historical location request initiated by a sample terminal in a preset geographic area;
the third filtering subunit is configured to filter the sample historical positioning request to obtain a filtered historical positioning request set;
and the second obtaining subunit is configured to obtain the filtered historical positioning request set to obtain a historical positioning request set.
In an embodiment, the third filtering subunit is further configured to calculate a time interval of a historical positioning request initiated by each sample terminal; calculating the initiating speed of the historical positioning request of the sample according to the time interval and the quantity of the historical positioning requests of the sample; and filtering the sample historical positioning request according to the initiating speed to obtain a filtered historical positioning request set.
Accordingly, embodiments of the present application further provide a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the steps in the area location method provided in any of the embodiments of the present application.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform steps in the area positioning method provided in any of the embodiments of the present application.
The method and the device for positioning the sample terminal in the geographic area can obtain a historical positioning request initiated by the sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks; establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set; acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal; matching the current positioning information with the positioning information in the mapping relation set; when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set; and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block. According to the scheme, historical positioning requests of a plurality of sample terminals are obtained in a preset geographical area, a plurality of historical positioning information included by the sample terminals are mapped to a plurality of blocks of the preset geographical area to obtain a mapping relation set, a target positioning request of a current terminal is obtained, wherein the target positioning request includes current positioning information of the current terminal, the historical positioning information is matched with the current positioning information, a target block in the matched blocks is determined based on the mapping relation set, the obtained positioning information of the block where the current terminal is located can be understood as information of the geographical area where the current terminal is located, and positioning accuracy can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of a region location method provided in an embodiment of the present application;
fig. 2 is a flowchart of a region locating method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of a preset geographic area of a method for area location according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure.
Fig. 5 is another flowchart of a method for locating an area according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating a historical positioning request initiation speed of a region positioning method according to an embodiment of the present application;
FIG. 7 is a flowchart illustrating a process of historical location requests of a method for locating an area according to an embodiment of the present application;
FIG. 8 is a schematic view of an area locator provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a region positioning method, a region positioning device, computer equipment and a computer readable storage medium. Specifically, the embodiment of the present application provides an area positioning apparatus suitable for a computer device, where the computer device may be a network side device such as a server.
Referring to fig. 1, the server may obtain a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, where the historical positioning request includes positioning information of the sample terminal, and the preset geographic area includes a plurality of blocks; establishing a mapping relation between the positioning information and the block to obtain a mapping relation set; acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal; matching the current positioning information with the positioning information in the mapping relation set; when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set; and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
As can be seen from the above, in the embodiment, the mapping relationship between the positioning information in the historical positioning request and the preset geographic area is established to obtain the mapping relationship set, and then the current positioning information in the current positioning request of the current positioning terminal is matched with the plurality of positioning information to determine the position information of the current terminal, and the like, so that the positioning accuracy can be improved.
The following are detailed below, and it should be noted that the order of description of the following examples is not intended to limit the preferred order of the examples.
The embodiments of the present application will be described from the perspective of an area location device, which may be specifically integrated in a server.
An embodiment of the present application provides a method for area positioning, where the method may be executed by a processor of a server, and as shown in fig. 2, a specific process of the method for area positioning may be as follows:
101. the method comprises the steps of obtaining a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks.
The preset geographic area may be a selected geographic area, for example, a certain geographic area outside some buildings, as shown in fig. 3, which may be understood as a geographic area within 50 meters or 100 meters outside a building such as a mall, a hospital, an office building, and the like.
The sample terminal is a terminal providing data information, such as a terminal providing a historical positioning request, the historical positioning request initiated by the sample terminal can be understood as a plurality of positioning requests initiated by some terminals in a preset geographic area before, and a historical positioning request set can be obtained by obtaining the positioning requests.
Alternatively, the positioning information may be used for positioning, and may include location information and wireless network information, and the like. The plurality of blocks may be obtained by dividing a preset geographic area, where the blocks may be divided into a plurality of blocks with equal or different side lengths, may be divided into blocks with regular shapes, may also be divided into blocks with other shapes, may also be divided into the preset geographic area according to the position information in the positioning information, and so on, for example, as shown in fig. 3, the preset geographic area may be divided into a plurality of blocks with side lengths of 10 meters and widths of 10 meters, and so on.
In an embodiment, sample historical positioning requests initiated by a plurality of sample terminals may be obtained, where the sample historical positioning requests may include sample historical positioning requests that fall outside a preset geographic area and sample historical positioning requests that fall within the preset geographic area, and at this time, the sample positioning requests whose positions fall within the preset geographic area may be retained according to positioning information included in the sample historical positioning requests, so that a historical positioning request set that falls within the preset geographic area may be obtained.
Specifically, the step of "obtaining a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set" may include:
obtaining historical sample positioning requests initiated by a plurality of sample terminals;
determining a sample historical positioning request initiated by a sample terminal in a preset geographic area according to historical position information included in each sample historical positioning request;
filtering the sample historical positioning request to obtain a filtered historical positioning request set;
and acquiring the filtered historical positioning request set to obtain a historical positioning request set.
In the process of filtering the sample historical positioning request, the sample historical positioning request may be filtered according to the initiation speed of the sample historical positioning request, and a historical positioning request set is obtained, specifically, the step "filtering the sample historical positioning request, and obtaining the filtered historical positioning request set" may include:
calculating the time interval of the historical positioning request initiated by each sample terminal;
calculating the starting speed of the historical positioning request of the sample according to the time interval and the quantity of the historical positioning requests of the sample;
and filtering the sample historical positioning request according to the initiating speed to obtain a filtered historical positioning request set.
The speed of the sample historical positioning request can be understood as that the frequency of the sample historical positioning request initiated by each sample terminal is high in the same time period, which means that the frequency of the sample historical positioning request initiated by each sample terminal is high, or can be roughly understood as that the speed of the sample historical positioning request with a large number of sample historical positioning requests initiated by each sample terminal is high in the same time period.
For example, in an embodiment, the historical sample positioning request may be further filtered according to GPS information included in the historical sample positioning request, where the GPS information carries speed information, and specifically, the historical sample positioning request is filtered according to the GPS information, and the historical sample positioning request may be filtered according to the speed information carried by the GPS information, so as to obtain a filtered historical positioning request set.
In an embodiment, the preset geographic area may be divided into a plurality of blocks, the preset geographic area may be divided according to location information included in the obtained location information in the historical location request set, or the preset geographic area may be divided by presetting the size of the block to obtain the plurality of blocks.
102. And establishing a mapping relation between the positioning information and the block to obtain a mapping relation set.
For example, according to the position information in the positioning information, a preset geographic area is divided into a plurality of blocks, and the positioning information is mapped to the corresponding blocks, so that a mapping relationship set can be obtained, and the blocks can include the positioning information.
The positioning information in the blocks is fused to obtain fused positioning information, the blocks comprising the fused information are filtered, the blocks can be filtered according to the number of historical positioning requests in each block, then the blocks are filtered according to the number of wireless network information in the blocks, and a mapping relation set after filtering can be obtained.
Specifically, after the mapping relationship between the positioning information and the block is established to obtain the mapping relationship set, and before the current positioning information is matched with the positioning information in the mapping relationship set, the area positioning method further includes:
fusing at least one piece of positioning information corresponding to each block in the mapping relation set to obtain fused positioning information corresponding to each block;
and filtering the blocks in the mapping relation set according to the fused positioning information to obtain a filtered mapping relation set.
In the process of filtering the blocks in the mapping relationship set, the blocks in the mapping relationship set may be filtered according to the number of the historical location requests in each block, and then the blocks in the mapping relationship set are filtered according to the number of the wireless network information in each block to obtain a filtered mapping relationship set, specifically, the step "filtering the blocks in the mapping relationship set according to the fused location information to obtain the filtered mapping relationship set" may include;
counting the quantity of the historical positioning requests in each block, and filtering a plurality of blocks according to the quantity to obtain a mapping relation set after initial filtering;
and counting the quantity of wireless network information of each block in the filtered mapping relation set, and filtering the plurality of blocks according to the quantity of the wireless network information to obtain the filtered mapping relation set.
The fused positioning information comprises historical positioning requests and wireless network information.
103. And acquiring a target positioning request initiated by the current terminal, wherein the target positioning request comprises the current positioning information of the current terminal.
The target location request is a location request initiated by the current terminal for determining the located location information, and the location request may include location information, that is, current location information of the current terminal.
Wherein the current positioning information may comprise a plurality of wireless network information. For example, there is a terminal that needs to obtain the current location information, and at this time, the terminal initiates a positioning request, or may interpret the positioning request as a target positioning request, where the target positioning request includes some positioning information to assist positioning to obtain the location information of the current terminal.
104. And matching the current positioning information with the positioning information in the mapping relation set, and determining a target block corresponding to the target positioning information based on the mapping relation set when the target positioning information matched with the current positioning information exists.
The current positioning information is positioning information included in a positioning request initiated by a current terminal, and is used for initiating a positioning requirement to confirm a geographic position of the current terminal, and the current positioning information may include a plurality of wireless network information.
The current positioning information includes a plurality of wireless network information for matching with the positioning information in the mapping relationship set, and the positioning information in the mapping relationship set may include a plurality of wireless network information, thereby indicating that matching the current positioning information with the positioning information in the mapping relationship set may be understood as matching the plurality of wireless network information in the current positioning information with the plurality of wireless networks in the positioning information.
Specifically, the step "matching the current positioning information with the positioning information in the mapping relationship set" may include:
and matching the plurality of wireless network information with the plurality of wireless network information in the mapping relation set respectively.
Specifically, after matching the current positioning information with the positioning information in the mapping relationship set, and when there is target positioning information matching the current positioning information, before determining a target block corresponding to the target positioning information based on the mapping relationship set, the area positioning method further includes:
obtaining a result of matching the wireless network information with the wireless network information of the block in the mapping relation set;
obtaining the information quantity of the block successfully matched with the wireless network information according to the result;
and when the information quantity reaches a preset quantity, determining that target positioning information matched with the current positioning information exists.
The target block is represented as a corresponding block in a preset geographic area where the current terminal is located, and it can be understood that the geographic position determined by the current terminal is the geographic position where the target block is located.
105. And taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
The geographic area where the target block is located may be known as the geographic area where the current terminal is located according to the matching result, and outputting the information of the target block may be understood as outputting the location information of the target block, that is, the location information of the current terminal, for example, when it is determined that the current terminal is located in one of a plurality of blocks within a preset geographic area, outputting the location information of the block to obtain the location information of the current terminal.
In one embodiment, the output target block information is stored in a block chain to facilitate the extraction and storage of subsequent information, as shown in fig. 4, the server may be a node in a distributed system, wherein, the distributed system can be a blockchain system, the blockchain system can be a distributed system formed by connecting a plurality of nodes in a network communication mode, Peer-To-Peer (P2P, Peer To Peer) networks can be formed among the nodes, any type of computer equipment, such as servers, terminals and other electronic equipment can become one node in the blockchain system by joining the Peer-To-Peer network, the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
As can be seen from the above, in the embodiment, the mapping relationship between the positioning information in the historical positioning request and the preset geographic area is established to obtain the mapping relationship set, and then the current positioning information in the current positioning request of the current positioning terminal is matched with the plurality of positioning information to determine the information such as the position of the current terminal, so that the positioning accuracy can be improved.
The embodiments of the present application will be described from the perspective of an area location device, which may be specifically integrated in a server.
As shown in fig. 5, a specific process of the area positioning method may be as follows:
201. the server obtains a historical positioning request initiated by a sample terminal in a preset geographic area, and obtains a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks.
For example, in an offline state, the server may obtain historical positioning requests initiated by a plurality of sample terminals in an outdoor 50-meter geographic area of some buildings (such as a mall, a hospital, an office building, and the like), where the historical positioning requests are positioning requests within a current previous segment, and filter the historical positioning requests to obtain a historical positioning request set, so as to serve positioning of subsequent terminals.
The preset geographic area can be a certain geographic area outside a mall building, as shown in fig. 6, the slower the movement speed of a person is, the slower the movement speed of the person is, the slower the initiation speed of a historical positioning request can be reflected, the farther the person is from the mall building, because of a positioning request in a mobile vehicle, the speed of a part of requests is faster, and the degree of distinction between the requests and the requests in the mall building is higher, according to the initiation speed of the historical positioning request, the certain geographic area outside the mall building can be divided, the area size of the preset geographic area can be obtained as required, and then the area can be divided into a plurality of blocks.
202. The server establishes a mapping relation between the positioning information and the block to obtain a mapping relation set.
For example, a mapping relationship is established between the acquired positioning information and a plurality of blocks, after the mapping relationship is established, the positioning information in the blocks is fused, and the plurality of blocks are filtered, for example, the plurality of blocks may be filtered according to the number of positioning requests, the wireless network information, and the like in the blocks.
The acquired historical positioning information can be updated at irregular time to ensure that the data is more accurate, and the positioning accuracy can be further improved.
For example, as shown in fig. 7, historical sample positioning requests of multiple sample terminals may be obtained, the sample positioning requests are screened, a historical positioning request set may be further obtained, a mapping relationship between historical positioning information in the historical positioning request and a block is established, a mapping relationship set is obtained, positioning information in the mapping set is fused, the block is filtered, and a filtered mapping relationship set is finally obtained, where the mapping relationship set may be used for indoor and outdoor determination and auxiliary positioning, for example, a current terminal initiates a target positioning request, and after a server obtains the target positioning request, it may be determined whether the current terminal is in the block, that is, whether the current terminal is indoor or outdoor, or may be in the block, by using positioning information included in the mapping relationship set and target positioning information included in the target positioning request, and may also be in the auxiliary positioning, and determining the geographical position information of the current terminal.
203. The server obtains a target positioning request initiated by the current terminal, wherein the target positioning request comprises the current positioning information of the current terminal.
For example, there is a current terminal that needs to locate the current geographic location, at this time, the current terminal initiates a target location request, and the server may obtain a location request initiated by the current terminal, that is, a target location request, to locate the current terminal.
The current positioning information of the current terminal includes wireless network information, and can be used for matching with the positioning information in the mapping set.
204. And the server matches the current positioning information with the positioning information in the mapping relation set, and determines a target block corresponding to the target positioning information based on the mapping relation set when the target positioning information matched with the current positioning information exists.
For example, during positioning, the server matches the acquired positioning information of the current terminal with the positioning information in the mapping set obtained in step 202, determines the geographical location information of the current terminal according to the matching result, such as whether the current terminal is located in a preset geographical area, and determines the location of the current terminal as a block corresponding to the preset geographical area according to the matched positioning information if the current terminal is located in the preset geographical area.
205. The server takes the target block as the geographic area where the current terminal is located, and outputs the information of the target block.
For example, it is known that the geographic location of the current terminal is the geographic area where the target block is located according to the matching result, and at this time, the information of the target block is output, so that the information of the geographic area where the current terminal needs to be obtained by the current terminal is located can be obtained.
As can be seen from the above, in this embodiment, the historical location request of the multiple sample terminals may be obtained in the certain outdoor geographic area of the large building, where the historical location request includes location information, and then a mapping relationship between the location information in the historical location request and the certain outdoor geographic area of the large building is established to obtain a mapping relationship set, where the certain outdoor geographic area of the large building may be divided into multiple blocks, and then the current location information in the current location request of the current location terminal is matched with the multiple location information to determine whether the location of the current terminal is located in the certain outdoor geographic area of the large building, and when the current location information exists in the certain outdoor geographic area of the large building, the location of the current terminal is determined to be a specific block of the multiple divided blocks, which may improve the accuracy of indoor and outdoor determination, the accuracy of the positioning can also be improved.
In order to better implement the method, correspondingly, the embodiment of the present application further provides an area locating device, wherein the area locating device may be specifically integrated in a server.
For example, as shown in fig. 8, the area locating apparatus may include a first acquiring unit 301, a establishing unit 302, a second acquiring unit 303, a matching unit 304, a first determining unit 305, and an output unit 306, as follows:
(1) a first acquisition unit 301;
a first obtaining unit 301, configured to obtain a historical positioning request initiated by a sample terminal in a preset geographic area, to obtain a historical positioning request set, where the historical positioning request includes positioning information of the sample terminal, and the preset geographic area includes a plurality of blocks.
In an embodiment, the first obtaining unit 301 includes:
a first obtaining subunit 3011, configured to obtain historical sample positioning requests initiated by multiple sample terminals;
the determining subunit 3012 is configured to determine, according to historical location information included in each sample historical location request, a sample historical location request initiated by a sample terminal in a preset geographic area;
a third filtering subunit 3013, configured to filter the historical positioning request to obtain a filtered historical positioning request set;
a second obtaining subunit 3014, configured to obtain the filtered historical positioning request set, to obtain a historical positioning request set.
In an embodiment, the third filtering subunit 3014 is further configured to calculate a time interval of the historical positioning request initiated by each sample terminal; calculating the starting speed of the historical positioning request of the sample according to the time interval and the quantity of the historical positioning requests of the sample; and filtering the sample historical positioning request according to the initiating speed to obtain a filtered historical positioning request set.
(2) A building unit 302;
an establishing unit 302 is configured to establish a mapping relationship between the positioning information and the block, so as to obtain a mapping relationship set.
(3) A second acquisition unit 303;
a second obtaining unit 303, configured to obtain a target location request initiated by a current terminal, where the target location request includes current location information of the current terminal.
(4) A matching unit 304;
a matching unit 304, configured to match the current positioning information with the positioning information in the mapping relationship set.
In one embodiment, the matching unit 304 includes:
the matching subunit 3041 is configured to match the wireless network information with the wireless network information of each block in the mapping relationship set.
(5) A first determination unit 305;
a first determining unit 305, configured to determine, when there is target location information that matches the current location information, a target block corresponding to the target location information based on the set of mapping relationships.
(6) An output unit 306;
an output unit 306, configured to take the target block as a geographic area where the current terminal is located, and output information of the target block.
In an embodiment, the area locating device may further include:
a fusion unit 307, configured to fuse at least one piece of positioning information corresponding to each block in the mapping relationship set to obtain fused positioning information corresponding to each block;
the filtering unit 308 is configured to filter blocks in the mapping relationship set according to the fused positioning information, so as to obtain a filtered mapping relationship set.
In one embodiment, the filtering unit 308 includes:
the first filtering subunit 3081, configured to count the number of historical location requests in each block, and filter a plurality of blocks according to the number to obtain an initial filtered mapping relationship set;
the second filtering subunit 3082 is configured to count the number of wireless network information of each block in the filtered mapping relationship set, and filter the multiple blocks according to the number of the wireless network information to obtain the filtered mapping relationship set.
In an embodiment, the area positioning method may further include:
a third obtaining unit 309, configured to obtain a result of matching the multiple pieces of wireless network information with multiple pieces of wireless network information of the blocks in the mapping relationship set;
a fourth obtaining unit 310, configured to obtain, according to the result, an information quantity that the block is successfully matched with the plurality of pieces of wireless network information;
a second determining unit 311, configured to determine that there is target positioning information matching the current positioning information when the number of information reaches a preset number.
As can be seen from the above, in the area locating device in the embodiment of the present application, the first obtaining unit 301 obtains a historical location request initiated by a sample terminal in a preset geographic area, to obtain a historical location request set, where the historical location request includes location information of the sample terminal, and the preset geographic area includes a plurality of blocks; then, the establishing unit 302 establishes a mapping relationship between the positioning information and the block to obtain a mapping relationship set; a second obtaining unit 303 obtains a target positioning request initiated by a current terminal, where the target positioning request includes current positioning information of the current terminal; matching, by the matching unit 304, the current positioning information with the positioning information in the set of mapping relationships; determining, by the first determining unit 305, when there is target positioning information matching the current positioning information, a target block corresponding to the target positioning information based on the set of mapping relationships; the output unit 306 takes the target block as the geographic area where the current terminal is located, and outputs the information of the target block. The scheme can improve the accuracy of area positioning.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Accordingly, an embodiment of the present application further provides a computer device, where the computer device may be a network-side device such as a server, as shown in fig. 9, which shows a schematic structural diagram of a server according to an embodiment of the present application, and specifically:
the computer device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 9 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the computer device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the computer device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the computer device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The computer device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The computer device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the computer device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing various functions as follows:
acquiring a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks; establishing a mapping relation between the positioning information and the block to obtain a mapping relation set; acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal; matching the current positioning information with the positioning information in the mapping relation set; when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set; and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
For the above embodiments, reference may be made to the foregoing embodiments, and details are not described herein.
In one embodiment, as shown in fig. 4, the server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. The nodes may form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computer device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
As can be seen from the above, in the embodiment, the mapping relationship between the positioning information in the historical positioning request and the preset geographic area is established to obtain the mapping relationship set, and then the current positioning information in the current positioning request of the current positioning terminal is matched with the plurality of positioning information to determine the information such as the position of the current terminal, so that the positioning accuracy can be improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer-readable storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the area location methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
acquiring a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, and the preset geographic area comprises a plurality of blocks; establishing a mapping relation between the positioning information and the block to obtain a mapping relation set; acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal; matching the current positioning information with the positioning information in the mapping relation set; when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set; and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
The above detailed implementation of each operation can refer to the foregoing embodiments, and is not described herein again.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any area positioning method provided in the embodiments of the present application, beneficial effects that can be achieved by any area positioning method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description is directed to a method, an apparatus, a terminal and a computer-readable storage medium for area location provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of area location, comprising:
acquiring a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, wherein the historical positioning request comprises positioning information of the sample terminal, the preset geographic area comprises a plurality of blocks, the preset geographic area is a geographic area which is divided into a certain outdoor range of a building according to the initiation speed of the historical positioning request, the historical positioning request set comprises filtered historical positioning requests, and the filtered historical positioning requests are filtered according to the initiation speed of the historical positioning request;
establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set;
acquiring a target positioning request initiated by a current terminal, wherein the target positioning request comprises current positioning information of the current terminal;
matching the current positioning information with the positioning information in the mapping relation set;
when target positioning information matched with the current positioning information exists, determining a target block corresponding to the target positioning information based on the mapping relation set;
and taking the target block as the geographic area where the current terminal is located, and outputting the information of the target block.
2. The area positioning method according to claim 1, wherein after the mapping relationship between the positioning information and the block is established and a mapping relationship set is obtained, and before the current positioning information is matched with the positioning information in the mapping relationship set, the method further comprises:
fusing at least one piece of positioning information corresponding to each block in the mapping relation set to obtain fused positioning information corresponding to each block;
and filtering blocks in the mapping relation set according to the fused positioning information to obtain a filtered mapping relation set.
3. The method of claim 2, wherein the fused positioning information comprises historical positioning requests and wireless network information;
filtering the blocks in the mapping relationship set according to the fused positioning information to obtain a filtered mapping relationship set, including:
counting the quantity of historical positioning requests in each block, and filtering a plurality of blocks according to the quantity to obtain an initially filtered mapping relation set;
and counting the quantity of wireless network information of each block in the filtered mapping relation set, and filtering the plurality of blocks according to the quantity of the wireless network information to obtain the filtered mapping relation set.
4. The area location method of claim 1, wherein the current location information comprises a plurality of wireless network information;
the matching the current positioning information with the positioning information in the mapping relation set includes:
matching the wireless network information with the wireless network information of each block in a mapping relation set respectively;
after the current positioning information is matched with the positioning information in the mapping relationship set, and when target positioning information matched with the current positioning information exists, before a target block corresponding to the target positioning information is determined based on the mapping relationship set, the method further includes:
obtaining a result of matching the wireless network information with the wireless network information of the blocks in the mapping relation set;
acquiring the information quantity of the successfully matched blocks and the wireless network information according to the result;
and when the information quantity reaches a preset quantity, determining that target positioning information matched with the current positioning information exists.
5. The area positioning method according to claim 1, wherein the obtaining of the historical positioning request initiated by the sample terminal in the preset geographic area to obtain a historical positioning request set comprises:
obtaining historical sample positioning requests initiated by a plurality of sample terminals;
determining a sample historical positioning request initiated by a sample terminal in a preset geographic area according to historical position information included in each sample historical positioning request;
filtering the sample historical positioning request to obtain a filtered historical positioning request set;
and acquiring the filtered historical positioning request set to obtain a historical positioning request set.
6. The method according to claim 5, wherein the filtering the historical positioning requests to obtain a filtered historical positioning request set comprises:
calculating the time interval of the historical positioning request initiated by each sample terminal;
calculating the initiating speed of the historical positioning request of the sample according to the time interval and the quantity of the historical positioning requests of the sample;
and filtering the sample historical positioning request according to the initiating speed to obtain a filtered historical positioning request set.
7. The area locating method according to claim 1, further comprising:
and storing the output information of the target block into a block chain.
8. An area locator device, comprising:
the system comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining a historical positioning request initiated by a sample terminal in a preset geographic area to obtain a historical positioning request set, the historical positioning request comprises positioning information of the sample terminal, the preset geographic area comprises a plurality of blocks, the preset geographic area is a geographic area which is divided into a certain outdoor range of a building according to the initiation speed of the historical positioning request, the historical positioning request set comprises filtered historical positioning requests, and the filtered historical positioning requests are filtered according to the initiation speed of the historical positioning request;
the establishing unit is used for establishing a mapping relation between the positioning information and the blocks to obtain a mapping relation set;
a second obtaining unit, configured to obtain a target location request initiated by a current terminal, where the target location request includes current location information of the current terminal;
the matching unit is used for matching the current positioning information with the positioning information in the mapping relation set;
a first determining unit, configured to determine, when target positioning information matching current positioning information exists, a target block corresponding to the target positioning information based on the mapping relationship set;
and the output unit is used for taking the target block as the geographic area where the current terminal is located and outputting the information of the target block.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps in the area location method according to any of claims 1 to 7.
10. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the area location method according to any one of claims 1 to 7.
CN201910857906.8A 2019-09-11 2019-09-11 Area positioning method, area positioning device, computer equipment and computer readable storage medium Active CN110809236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910857906.8A CN110809236B (en) 2019-09-11 2019-09-11 Area positioning method, area positioning device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910857906.8A CN110809236B (en) 2019-09-11 2019-09-11 Area positioning method, area positioning device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110809236A CN110809236A (en) 2020-02-18
CN110809236B true CN110809236B (en) 2022-02-01

Family

ID=69487580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910857906.8A Active CN110809236B (en) 2019-09-11 2019-09-11 Area positioning method, area positioning device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110809236B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382334B (en) * 2020-03-11 2022-05-13 腾讯科技(深圳)有限公司 Data processing method and device, computer and readable storage medium
CN111641924B (en) * 2020-04-28 2023-04-07 汉海信息技术(上海)有限公司 Position data generation method and device and electronic equipment
CN113014633B (en) * 2021-02-20 2022-07-01 杭州云深科技有限公司 Method and device for positioning preset equipment, computer equipment and storage medium
CN114302324B (en) * 2021-12-17 2024-06-25 上海安加心人力资源有限公司 Positioning method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016033800A1 (en) * 2014-09-05 2016-03-10 Nokia Technologies Oy Positioning based on radio frequency fingerprints
CN106255062A (en) * 2016-08-04 2016-12-21 京信通信系统(中国)有限公司 The construction method in a kind of indoor locating system location fingerprint storehouse and device
CN108882174A (en) * 2018-07-03 2018-11-23 北京三快在线科技有限公司 Mobile terminal locating method, device, electronic equipment and storage medium
CN110234062A (en) * 2018-03-05 2019-09-13 腾讯科技(深圳)有限公司 Localization method, positioning device, server and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016033800A1 (en) * 2014-09-05 2016-03-10 Nokia Technologies Oy Positioning based on radio frequency fingerprints
CN106255062A (en) * 2016-08-04 2016-12-21 京信通信系统(中国)有限公司 The construction method in a kind of indoor locating system location fingerprint storehouse and device
CN110234062A (en) * 2018-03-05 2019-09-13 腾讯科技(深圳)有限公司 Localization method, positioning device, server and computer readable storage medium
CN108882174A (en) * 2018-07-03 2018-11-23 北京三快在线科技有限公司 Mobile terminal locating method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110809236A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
CN110809236B (en) Area positioning method, area positioning device, computer equipment and computer readable storage medium
CN105227448B (en) A kind of information-pushing method and system
CN111090687B (en) Data processing method, device and system and computer readable storage medium
WO2017106661A1 (en) Constructing fingerprint database and positioning based on fingerprint database
JP6085353B2 (en) Location-based service providing method and system for changing setting of mobile terminal using cell identifier information
CN107153171B (en) Indoor positioning method, device and system
WO2022110800A1 (en) Positioning method and apparatus, electronic device, storage medium, and computer program product
CN109726885A (en) Electricity consumption anomaly assessment method, apparatus, equipment and computer storage medium
CN111629046B (en) Edge computing cooperation method, edge computing equipment and terminal
CN103905471A (en) Social network information push method, server and social network
EP3525527A1 (en) Positioning method, positioning device and access point (ap)
CN103810010A (en) Information processing method and first electronic device terminal
CN111065054B (en) Method, device, storage medium and terminal for positioning unmanned aerial vehicle
CN105392142A (en) Wireless fidelity Wi-Fi access point information storage method and device
CN109861869B (en) Configuration file generation method and device
CN106375561B (en) Mobile terminal and its remaining detection method for using the time
CN114286442A (en) Positioning method, control method of device to be positioned, mobile device and storage medium
CN114221985A (en) Device control method, device, electronic device and computer-readable storage medium
CN112044061A (en) Game picture processing method and device, electronic equipment and storage medium
CN106375551B (en) Information interaction method, device and terminal
EP3407568A1 (en) Service processing method and device
CN108347355A (en) A kind of detection method and its equipment of application state
CN107801228B (en) User data recording method, device and system
CN108876550A (en) A kind of leasing method based on shared charger baby, device and its system
CN111339394B (en) Method and device for acquiring information

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