CN101726312B - Method and device for retrieving interest points - Google Patents

Method and device for retrieving interest points Download PDF

Info

Publication number
CN101726312B
CN101726312B CN200810224269A CN200810224269A CN101726312B CN 101726312 B CN101726312 B CN 101726312B CN 200810224269 A CN200810224269 A CN 200810224269A CN 200810224269 A CN200810224269 A CN 200810224269A CN 101726312 B CN101726312 B CN 101726312B
Authority
CN
China
Prior art keywords
node
interest
peripheral
point
tree
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.)
Expired - Fee Related
Application number
CN200810224269A
Other languages
Chinese (zh)
Other versions
CN101726312A (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.)
Alibaba China Co Ltd
Original Assignee
Autonavi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Autonavi Information Technology Co Ltd filed Critical Autonavi Information Technology Co Ltd
Priority to CN200810224269A priority Critical patent/CN101726312B/en
Publication of CN101726312A publication Critical patent/CN101726312A/en
Application granted granted Critical
Publication of CN101726312B publication Critical patent/CN101726312B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for retrieving interest points, which comprises the following steps of: 1) reading the data of interest points in a map; 2) calculating peripheral interest points and peripheral distances; 3) screening the interest points meeting requirements through a peripheral binary sort tree of a fixed node number n; and 4) extracting the interest points meeting the requirements out. Through the method, the calculation time for each interest point, the time for calculating the peripheral distance between two interest points and the time for searching for the interest points matched with results can be shortened, so that retrieval time is greatly shortened. In addition, the method has the advantages of realizing the self-management of a memory and avoiding the problem of low speed caused by the small capacity and frequency allocation of the memory of a terminal.

Description

Interest point search method and device
Technical field
The present invention relates to the GIS-Geographic Information System of navigating, be specifically related to a kind of point of interest (point of interest) search method and interest point search device.
Background technology
Mobile phone has obtained application more and more widely as a kind of novel navigation terminal, and interest point search is a very important use of one of mobile phone navigation.User such as need are searched the point of interest of current location periphery, only need input point of interest type or title, then, trigger navigation terminal and start interest point search method, search the nearest and point of interest that meet search condition of distance users current location.
About interest point search method, prior art is taked is point of interest type and the current lat/longitude of user according to user's input, calculates map sheet that the current point of user's input belongs to and several map sheets on next door thereof by lat/longitude; Read the interest point data in these map sheets; Calculate peripheral distance, if peripheral distance is less than the peripheral distance that presets, as 5 kilometers; It then is the point of interest that meets search condition; Otherwise then for not meeting the point of interest of search condition, the point of interest that meets search condition is sorted, prior art adopts sort method to comprise: limit insert edge discharge method or the point of interest that meets search condition reach the method that some is carried out a minor sort.
For current mobile phone terminal, because processor speed is slower, internal memory is less, and there is following shortcoming in prior art:
1) will be that point of interest compares and searches to all data of one or several map sheet in current city, and a map sheet comprise several ten thousand data, so the data volume that reads is very big.And peripheral distance all will be calculated in each the interest point strong point in the map sheet, and the speed of calculating peripheral distance is relatively slow, so consumed time is longer.
2) when periphery is searched, the time that is used to calculate two point of interest peripheral distances is long.
3) when periphery is searched, the data that meet the result that find will be by the ascending ordering of peripheral distance.
4) owing to be dynamic assigning memory, system also wants common memory with other place, certainly will influence speed.
Summary of the invention
The present invention is intended to solve above-mentioned the problems of the prior art, proposes a kind of method of searching interest point fast.
Second purpose of the present invention provides a kind of interest point search device.
In order to address the above problem and to achieve the above object, interest point search method of the present invention may further comprise the steps: the data that 1) read the point of interest in the map sheet; 2) calculate peripheral extent point of interest and peripheral distance; 3) the peripheral binary sort tree with the fixed-node number n screens interest points meeting requirements; After said peripheral binary tree sort tree is meant that binary tree is by inorder traversal; Resulting node is pressed the peripheral binary tree of the ascending orderly arrangement of peripheral distance, and should preserve left subtree, right subtree, father's node and peripheral distance by the periphery binary tree; 4) take out interest points meeting requirements.
In interest point search method of the present invention, the storage of putting together of the longitude of all points of interest and latitude, the remainder data of point of interest is placed on its back and stores together.
So just can when calculating peripheral distance and peripheral extent point of interest at every turn, only need read the longitude in the detailed data of point of interest and latitude and remainder data separate processes in longitude and latitude, and need not read other data, thus the time of shortening read data.
In interest point search method of the present invention, before calculating peripheral distance, judge that the peripheral extent point of interest is in a rectangular extent.The scope of rectangular extent on longitude and latitude is respectively A*B and A*C, and wherein A is the maximum length that allows, and B is a longitude factor, and C is a latitude.As not just to judge that this point of interest is not in the scope that will search.If the longitude and the longitude of current location point of interest and other points of interest subtract each other, latitude and latitude subtract each other respectively less than A*B, A*C, then this point of interest is in rectangular extent, otherwise this point of interest is not in said rectangular extent.
Like this,, do not need to calculate peripheral distance again, thereby reduced the time of calculating peripheral distance for not being the point of interest in the rectangular extent.
In interest point search method of the present invention, introduce the peripheral binary sort tree of fixed-node number n, and always minimum front n of the peripheral distance of all nodes in the binary sort tree.And be rightmost that the maximum node of peripheral distance is preserved.Reduce the time of ordering like this with regard to available following steps.
Step 1: if in the peripheral binary sort tree of fixed-node number the node number less than n; (n is that the fixed-node number of the peripheral binary sort tree of fixed-node number is the maximal value of binary sort tree node number) then inserted this node by the method that binary sort tree inserts new node.But if this peripheral distance that inserts node equals the peripheral distance of certain node A in the peripheral binary sort tree of fixed-node number, then this inserts node and inserts as the left child node of node A.And the original left child node of node A is placed on the left child node that inserts node.
Step 2: if the node number equals n in the peripheral binary sort tree of fixed-node number, (n is that the fixed-node number of the peripheral binary sort tree of fixed-node number is the maximal value of binary sort tree node number).Compare the rightmost node that the maximum node of this new node and peripheral distance is promptly preserved, see that which peripheral distance is big; If this new node is big, then skip, continue more next point of interest.If this new node is little; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then, rightmost node M inserts by the method that binary sort tree inserts new node in the binary tree deleting again; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M.Continue more next point of interest.If the peripheral distance of this new node equals the peripheral distance of certain node B in the peripheral binary sort tree of fixed-node number; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then; Deleted rightmost node M in the binary tree to this and inserted, and the original left child node of node B is placed on this left child node of having deleted rightmost node M in the binary tree as the left child node of node B; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M.Continue more next point of interest.
Because n node of the fixing use of the peripheral binary sort tree of fixed-node number is promptly only with array [n]; Each array member's size is the node size of the peripheral binary sort tree of fixed-node number.The left subtree of node, right subtree, father's node are all represented to one of n with subscript 1; Realize the management voluntarily of internal memory; Avoid because of internal memory is too little frequent dynamic assignment and the slow-footed problem that causes.Thereby improve speed generally.
Inorder traversal through binary sort tree at last can obtain the result.
Because the screen of mobile phone is less, its processor speed is slow and internal memory is little, and preferably, the n value is 50 to 200.
In the said method, read data: effect is to read out point of interest longitude and latitude in the map sheet, is used to calculate peripheral extent point of interest and peripheral distance.Calculate peripheral extent point of interest and peripheral distance: effect is to judge whether given arbitrary point of interest is the peripheral point of interest of wanting.Peripheral binary sort tree screening interest points meeting requirements with the fixed-node number: effect is to be whether peripheral distance should be stayed in the peripheral binary sort tree less than the point of interest of certain numerical value to what meet the peripheral distance requirement.After all interest point datas are all handled, finally stay point of interest in the peripheral binary sort tree and be exactly the point of interest that will obtain.Take out interest points meeting requirements: effect is to take out the point of interest in the peripheral binary sort tree, converts the detailed data of point of interest to.
The present invention further proposes a kind of interest point search device, and it comprises: storage unit, center calculation unit, output unit as a result; Storage unit is being deposited the interest point data in the map sheet; Interest point data in the center calculation unit reading cells; Calculate peripheral extent point of interest and peripheral distance,, take out interest points meeting requirements at last with the peripheral binary sort tree screening interest points meeting requirements of fixed-node number n; Output to output unit as a result; After said peripheral binary tree sort tree was meant that binary tree is by inorder traversal, resulting node was pressed the peripheral binary tree of the ascending orderly arrangement of peripheral distance, and should preserve left subtree, right subtree, father's node and peripheral distance by the periphery binary tree.
Through said method and device, the point of interest point that can reduce the computing time of peripheral distance between the computing time of each point of interest, two points of interest and meet the result is searched the time, thereby has reduced retrieval time greatly.In addition, this method has realized the management voluntarily of internal memory, avoids too little because of the terminal internal memory, frequently distributes the slow-footed problem that causes.
Description of drawings
Fig. 1 is the flow chart of steps of interest point search method of the present invention;
Fig. 2 a-Fig. 2 d is the process flow diagram according to a preferred embodiment of interest point search method of the present invention.
Embodiment
From to the preferred embodiment that purport of the present invention and use thereof are described and the following description of accompanying drawing,
Above and other purpose, characteristics and advantage of the present invention will be conspicuous.
Term definition
Distance: be meant that two points with different longitudes and latitude couple together formed length of straigh line in plane right-angle coordinate.
Peripheral distance: be meant the distance between the point of interest at the current place of automobile in auto navigation and the arbitrary definite point of interest on every side.
Periphery binary tree: be meant that the node in the binary tree preserves left subtree, right subtree, the binary tree of father's node and peripheral distance.
The periphery binary sort tree: after being meant that binary tree is by inorder traversal, resulting node is pressed the peripheral binary tree of the ascending orderly arrangement of peripheral distance.
The peripheral binary sort tree of fixed-node number: the nodal point number that is meant peripheral binary sort tree is no more than fixed-node number (being assumed to n); When the nodal point number of peripheral binary sort tree surpasses n,, must delete rightmost node earlier as inserting new node; Delete node as new node with this, compose and give initial value, insert this new node of method insertion of new node then by binary sort tree.If the nodal point number of peripheral binary sort tree during less than n, inserts the method for new node and inserts this new node by binary sort tree.
The peripheral extent point of interest: be meant in plane right-angle coordinate, with the point of interest length in the horizontal and vertical directions at the current place of automobile in auto navigation all less than the point of interest of certain numerical value.
The detailed data of point of interest: be meant all data that point of interest is relevant.Like longitude, latitude, point of interest title, address, letter assembly, cities and towns name, telephone number etc.
Fig. 1 is the key step of the embodiment of the invention:
(1) reads the data of the point of interest in the map sheet, read out the longitude of point of interest and latitude.
(2) calculate peripheral extent point of interest and peripheral distance.
(3) the peripheral binary sort tree with the fixed-node number screens the point of interest that meets the requirements.
(4) also have data to handle, forward (1) to.All data all read out and handle and forward (5) to.
(5) all take out all interest points meeting requirements with inorder traversal.
The data structure of using among this embodiment is following:
The data structure of node in the peripheral binary sort tree of fixed-node number
Figure GSB00000831479900051
Figure GSB00000831479900061
In this embodiment, use a plurality of variablees, implication is following:
The maximum node number of the peripheral binary sort tree of #define n 50//fixed-node number, preferably n is 50-100, n gets 50 in this embodiment;
BinTreeStruct BTN [n+1] //BTN [n+1] is a n+1 node array.BTN [0] need not;
XB is array BTN [n+1] subscript value, is 1 to n;
MAX_AROUND is the peripheral distance maximal value, is 5000m;
RR is a rightmost point in the peripheral binary sort tree of fixed-node number, i.e. the maximum node of peripheral distance in the peripheral binary sort tree of fixed-node number;
DisTemp is the peripheral distance between the POI point at peripheral extent POI point and the current place of automobile;
SearchPos is a temporary variable.
Fig. 2 a is the concrete realization of screening interest points meeting requirements to Fig. 2 d.
(1) initialization of various data; Array BTN initialization, size is (n+1), subscript zero need not, only with 1 to the n subscript simulated as binary tree, establishing peripheral distance maximal value MAX_AROUND is 5 kilometers, makes subscript XB that initial value is 1, establishing n is 50.
(2) A1: the longitude of point of interest, latitude data run through, and take out interest points meeting requirements and withdraw from; Otherwise read the longitude and the latitude of point of interest.
(3) do you be respectively A*B with longitude and latitude scope and the A*C rectangular extent judges it is the peripheral extent point of interest? If the longitude and the longitude of current location point of interest and other points of interest subtract each other, latitude and latitude subtract each other respectively less than A*B, A*C; Then this point of interest is in rectangular extent; It is the peripheral extent point of interest; Otherwise this point of interest is not the peripheral extent point of interest not in said rectangular extent.Wherein A is 5 kilometers for maximum permission length, and B is a longitude factor, and C is a latitude.
(4) be not the peripheral extent point of interest, the read next point of interest forwards A1 to.Be the peripheral extent point of interest, forward (5) to.
(5) the peripheral distance disTemp between the point of interest at calculating peripheral extent point of interest and the current place of automobile.
(6) whether judge peripheral distance disTemp less than peripheral distance maximal value MAX_AROUND, such as, preset five kilometers.
(7) not, the read next point of interest forwards A1 to.Be to forward (8) to.
Whether the peripheral binary sort tree of (8) judging the fixed-node number is empty, judges promptly whether root node is zero.
(9) be to forward (10) to., do not forward (11) to.
(10) root node equals subscript XB, and the value of XB value BTN of array [XB] is zero for father's node; Left subtree is zero; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Rightmost point is that the maximum node RR of peripheral distance is a root node.Subscript XB increases one.(annotate: RR does not belong to the codomain scope of BTN [XB]).The read next point of interest forwards A1 to.
(11) whether subscript XB is more than or equal to (n+1).
(12) not, forward A4 to.Be to forward (13) to.
(13) whether the value of current peripheral distance is greater than the value of the peripheral distance of BTN [RR].RR is a rightmost point in the peripheral binary sort tree of fixed-node number, i.e. the maximum node of peripheral distance in the peripheral binary sort tree of fixed-node number.
(14) be that the read next point of interest forwards A1 to., do not forward (15) to.
(15) compose root node to searchPos, searchPos is a temporary variable.
(16) whether A2:searchPos is leaf node.
(17) be that the read next point of interest forwards A1 to., do not forward (18) to.
(18) whether current peripheral distance disTemp equals the peripheral distance of BTN [searchPos].
(19) equal, forward (20) to.Be not equal to, forward (24) to.
(20) rightmost point is whether the maximum node RR of peripheral distance is root node.
(21) be to forward (22) to., do not forward (23) to.
(22) preserving the point of interest address is the point of interest address among the maximum node RR of peripheral distance to rightmost point; Forward next point of interest to; Turn to A1.
(23) the node relation of change RR node is left out it from binary tree.The value of RR value BTN of array [RR] is searchPos for father's node; Left subtree is the left subtree of searchPos; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into RR in the left subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Forward next point of interest to; Turn to A1.
(24) whether current peripheral distance is less than the peripheral distance of BTN [searchPos].
(25) not, forward A3 to.Be to forward (26) to.
(26) whether the left subtree of BTN [searchPos] is zero.
(27) not to forward (28) to.Be to forward (29) to.
(28) left subtree of BTN [searchPos] is composed to searchPos and is turned to A2.
(29) the node relation of change RR node is left out it from binary tree.The value of RR value BTN of array [RR] is searchPos for father's node; Left subtree is zero; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into RR in the left subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Forward next point of interest to; Turn to A1.
(30) whether the right subtree of A3:BTN [searchPos] is zero.
(31) non-vanishing, forward (32) to.Be zero, forward (33) to.
(32) right subtree of BTN [searchPos] is composed to searchPos and is turned to A2.
(33) the node relation of change RR node is left out it from binary tree.The value of RR value BTN of array [RR] is searchPos for father's node; Left subtree is zero; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into RR in the right subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Forward next point of interest to; Turn to A1.
(34) A4: compose root node to searchPos, searchPos is a temporary variable.
(35) whether A5:searchPos is leaf node.
(36) be that the read next point of interest forwards A1 to., do not forward (37) to.
(37) whether current peripheral distance equals the peripheral distance of BTN [searchPos].
(38) equal, forward (39) to.Be not equal to, forward (40) to.
(39) value of XB value BTN of array [XB] is searchPos for father's node; Left subtree is the left subtree of searchPos; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into XB in the left subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Subscript XB increases one.Forward next point of interest to; Turn to A1.
(40) whether current peripheral distance is less than the peripheral distance of BTN [searchPos].
(41) be to forward (42) to., do not forward (43) to.
(42) whether the left subtree of BTN [searchPos] is zero.
(43) not, forward (44) to.Be to forward (45) to.
(44) left subtree of BTN [searchPos] is composed to searchPos and is turned to A5.
(45) value of XB value BTN of array [XB] is searchPos for father's node; Left subtree is zero; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into XB in the left subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Subscript XB increases one.Forward next point of interest to; Turn to A1.
(46) whether the right subtree of BTN [searchPos] is zero.
(47) not, forward (48) to.Be to forward (49) to.
(48) right subtree of BTN [searchPos] is composed to searchPos and is turned to A5.
(49) value of XB value BTN of array [XB] is searchPos for father's node; Left subtree is zero; Right subtree is zero, the value of preserving current peripheral distance; Preserve the address value of point of interest.Be inserted into XB in the right subtree of searchPos; Seeking rightmost point is that the maximum node of peripheral distance is composed the node to RR.Subscript XB increases one.Forward next point of interest to; Turn to A1.
Through these steps, periphery is searched searched on speed, to reach same class with key word index.And the speed that key word index is searched on mobile phone is fast.
Interest point search method of the present invention can be used on the portable terminals such as mobile phone, makes this portable terminal become a kind of interest point search device.Portable terminal comprises storage unit, center calculation unit, output unit as a result; Storage unit is being deposited the interest point data in the map sheet; Interest point data in the center calculation unit reading cells; Calculate peripheral extent point of interest and peripheral distance; With the peripheral binary sort tree screening interest points meeting requirements of fixed-node number n, take out interest points meeting requirements at last, output to output unit as a result.
Although illustrated and described the preferred embodiments of the present invention, it is contemplated that those skilled in the art can be in the spirit of accompanying claims and scope carries out various modifications to of the present invention.

Claims (18)

1. interest point search method, it may further comprise the steps:
1) reads the data of point of interest in the map sheet;
2) calculate peripheral extent point of interest and peripheral distance;
3) the peripheral binary sort tree with the fixed-node number n screens interest points meeting requirements; After said peripheral binary tree sort tree is meant that binary tree is by inorder traversal; Resulting node is pressed the peripheral binary tree of the ascending orderly arrangement of peripheral distance, and should preserve left subtree, right subtree, father's node and peripheral distance by the periphery binary tree;
4) take out interest points meeting requirements.
2. interest point search method as claimed in claim 1 is characterized in that:
The storage of putting together of the longitude of the data of all points of interest and latitude, other data of point of interest are placed on the storage together of its back.
3. interest point search method as claimed in claim 1 is characterized in that:
Before calculating peripheral distance, judge that the peripheral extent point of interest is in a rectangular extent; If just can judge that this point of interest is in the scope that will search; If not, just can judge that this point of interest is not in the scope that will search.
4. interest point search method as claimed in claim 3 is characterized in that:
The scope of said rectangular extent on longitude and latitude is respectively A*B and A*C, and wherein A is the maximum length that allows, and B is a longitude factor, and C is a latitude.
5. interest point search method as claimed in claim 4 is characterized in that: wherein maximum permission length A is 5 kilometers.
6. like claim 4 or 5 described interest point search methods; It is characterized in that: if the longitude of current location point of interest and other points of interest and longitude subtract each other, latitude and latitude subtract each other respectively less than A*B, A*C; Then this point of interest is in said rectangular extent; Otherwise this point of interest is not in said rectangular extent.
7. interest point search method as claimed in claim 1 is characterized in that:
If the node number is then inserted this node of method insertion of new node less than n in the peripheral binary sort tree of fixed-node number by binary sort tree; But if this peripheral distance that inserts node equals the peripheral distance of certain node A in the peripheral binary sort tree of fixed-node number, then this inserts node and inserts as the left child node of node A; And the original left child node of node A is placed on the left child node that inserts node;
If the node number equals n in the peripheral binary sort tree of fixed-node number; Compare the rightmost node that the maximum node of this new node and peripheral distance is promptly preserved, see that which peripheral distance is big; If this new node is big, then skip, continue more next point of interest; If this new node is little; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then, rightmost node M inserts by the method that binary sort tree inserts new node in the binary tree deleting again; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M; Continue more next point of interest; If the peripheral distance of this new node equals the peripheral distance of certain node B in the peripheral binary sort tree of fixed-node number; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then; Deleted rightmost node M in the binary tree to this and inserted, and the original left child node of node B is placed on this left child node of having deleted rightmost node M in the binary tree as the left child node of node B; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M; Continue more next point of interest.
8. interest point search method as claimed in claim 7 is characterized in that:
The value of n is 50-200.
9. interest point search method as claimed in claim 7 is characterized in that:
Before taking out interest points meeting requirements, the inorder traversal through binary sort tree obtains interest points meeting requirements.
10. interest point search device, it comprises: storage unit, center calculation unit, output unit as a result; Storage unit is deposited the interest point data in the map sheet; Interest point data in the center calculation unit reading cells; Calculate peripheral extent point of interest and peripheral distance, with the peripheral binary sort tree screening interest points meeting requirements of fixed-node number n, take out interest points meeting requirements at last then; Output to output unit as a result; After said peripheral binary tree sort tree was meant that binary tree is by inorder traversal, resulting node was pressed the peripheral binary tree of the ascending orderly arrangement of peripheral distance, and should preserve left subtree, right subtree, father's node and peripheral distance by the periphery binary tree.
11. interest point search device as claimed in claim 10 is characterized in that: the storage of putting together of the longitude of the data of all points of interest and latitude, other data of point of interest are placed on the storage together of its back.
12. interest point search device as claimed in claim 11 is characterized in that: before calculating peripheral distance, judge that the peripheral extent point of interest is in a rectangular extent; If just can judge that this point of interest is in the scope that will search; If not, just can judge that this point of interest is not in the scope that will search.
13. interest point search device as claimed in claim 12 is characterized in that:
The scope of said rectangular extent on longitude and latitude is respectively A*B and A*C, and wherein A is the maximum length that allows, and B is a longitude factor, and C is a latitude.
14. interest point search device as claimed in claim 13 is characterized in that: wherein maximum permission length A is 5 kilometers.
15. like claim 13 or 14 described interest point search devices; It is characterized in that: if the longitude of current location point of interest and other points of interest and longitude subtract each other, latitude and latitude subtract each other respectively less than A*B, A*C; Then this point of interest is in said rectangular extent; Otherwise this point of interest is not in said rectangular extent.
16. interest point search device as claimed in claim 10 is characterized in that:
If the node number is then inserted this node of method insertion of new node less than n in the peripheral binary sort tree of fixed-node number by binary sort tree; But if this peripheral distance that inserts node equals the peripheral distance of certain node A in the peripheral binary sort tree of fixed-node number, then this inserts node and inserts as the left child node of node A; And the original left child node of node A is placed on the left child node that inserts node;
If the node number equals n in the peripheral binary sort tree of fixed-node number; Compare the rightmost node that the maximum node of this new node and peripheral distance is promptly preserved, see that which peripheral distance is big; If this new node is big, then skip, continue more next point of interest; If this new node is little; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then, rightmost node M inserts by the method that binary sort tree inserts new node in the binary tree deleting again; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M; Continue more next point of interest; If the peripheral distance of this new node equals the peripheral distance of certain node B in the peripheral binary sort tree of fixed-node number; Then delete rightmost node M in the peripheral binary sort tree of fixed-node number; Compose the value of new node to deleting rightmost node M in the binary tree then; Deleted rightmost node M in the binary tree to this and inserted, and the original left child node of node B is placed on this left child node of having deleted rightmost node M in the binary tree as the left child node of node B; The back is new binary tree rightmost that the maximum node of peripheral distance is preserved; Compose and give node M; Continue more next point of interest.
17. interest point search device as claimed in claim 16 is characterized in that:
The value of n is 50-200.
18. interest point search device as claimed in claim 16 is characterized in that:
Before taking out interest points meeting requirements, the inorder traversal through binary sort tree obtains interest points meeting requirements.
CN200810224269A 2008-10-15 2008-10-15 Method and device for retrieving interest points Expired - Fee Related CN101726312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810224269A CN101726312B (en) 2008-10-15 2008-10-15 Method and device for retrieving interest points

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810224269A CN101726312B (en) 2008-10-15 2008-10-15 Method and device for retrieving interest points

Publications (2)

Publication Number Publication Date
CN101726312A CN101726312A (en) 2010-06-09
CN101726312B true CN101726312B (en) 2012-09-19

Family

ID=42447543

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810224269A Expired - Fee Related CN101726312B (en) 2008-10-15 2008-10-15 Method and device for retrieving interest points

Country Status (1)

Country Link
CN (1) CN101726312B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142003B (en) * 2010-07-30 2013-04-24 华为软件技术有限公司 Method and device for providing point of interest information
KR101640104B1 (en) * 2012-03-08 2016-07-15 텐센트 테크놀로지(센젠) 컴퍼니 리미티드 Method and device for providing user information, and computer storage medium
CN105488066A (en) * 2014-09-19 2016-04-13 昆达电脑科技(昆山)有限公司 Method for creating spatial data base and data structure product of creating spatial data base
CN104317905B (en) * 2014-10-27 2017-10-03 深圳供电局有限公司 A kind of method and system of information monitoring real time data caching process
CN106323266B (en) * 2015-06-15 2020-03-06 北京四维图新科技股份有限公司 Method and device for processing information of interest point
CN106814162A (en) * 2016-12-15 2017-06-09 珠海华海科技有限公司 A kind of Outdoor Air Quality solution and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955958A (en) * 2005-10-26 2007-05-02 腾讯科技(深圳)有限公司 Sort data storage and split catalog inquiry method based on catalog tree
CN101110026A (en) * 2007-08-03 2008-01-23 北京握奇数据系统有限公司 Resource limited equipment and data access method
CN101187560A (en) * 2007-12-27 2008-05-28 凯立德欣技术(深圳)有限公司 Peripheral information searching method when advancing, device and navigation apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1955958A (en) * 2005-10-26 2007-05-02 腾讯科技(深圳)有限公司 Sort data storage and split catalog inquiry method based on catalog tree
CN101110026A (en) * 2007-08-03 2008-01-23 北京握奇数据系统有限公司 Resource limited equipment and data access method
CN101187560A (en) * 2007-12-27 2008-05-28 凯立德欣技术(深圳)有限公司 Peripheral information searching method when advancing, device and navigation apparatus

Also Published As

Publication number Publication date
CN101726312A (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN101726312B (en) Method and device for retrieving interest points
CN103471610B (en) A kind ofly support online, the double mode air navigation aid of off-line
CN103150397B (en) A kind of data directory creation method, data retrieval method and system
US9995586B2 (en) Method and apparatus for identifying geographic locations
CN101873525A (en) Method and device for storing contact information in mobile terminal
WO2017140232A1 (en) Method, apparatus, and electronic device for pushing travel information
CN103279539A (en) Interest point set displaying method, electronic map displaying method, interest point set displaying device and electronic map displaying device
CN109492066B (en) Method, device, equipment and storage medium for determining branch names of points of interest
CN110674247A (en) Barrage information intercepting method and device, storage medium and equipment
CN104572717A (en) Information searching method and device
EP3582111A1 (en) Methods and devices for displaying electronic map
WO2017173783A1 (en) Method of displaying point of interest, and terminal
CN102831224A (en) Creating method for data index base and searching suggest generation method and device
CN110555432B (en) Method, device, equipment and medium for processing interest points
CN105354318A (en) File searching method and device
WO2013182736A1 (en) Determination of context-aware user preferences
CN111144121B (en) Geographical name recognition method and device, electronic equipment and readable storage medium
CN103810204A (en) Information search method and information search device
US20100332524A1 (en) Name Searching Apparatus
CN106201198B (en) Lookup method, device and the mobile terminal of terminal applies
CN104615620A (en) Map search type identification method and device and map search method and system
CN103955519A (en) Account inquiring and recording system and inquiring and recording method thereof
CN103902626A (en) Interest point search method and device and equipment with device
CN103218406B (en) The processing method and equipment of the address information of point of interest
US20200380018A1 (en) Device and method for displaying and searching for location by using grid and words

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200511

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing city Haidian District No. three Suzhou Street Daheng Technology Building South 16 floor room 2

Patentee before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120919

Termination date: 20211015

CF01 Termination of patent right due to non-payment of annual fee