CN103559213A - Efficient spatial nearest neighbor query method for highway networks - Google Patents

Efficient spatial nearest neighbor query method for highway networks Download PDF

Info

Publication number
CN103559213A
CN103559213A CN201310473051.1A CN201310473051A CN103559213A CN 103559213 A CN103559213 A CN 103559213A CN 201310473051 A CN201310473051 A CN 201310473051A CN 103559213 A CN103559213 A CN 103559213A
Authority
CN
China
Prior art keywords
data object
grid cell
sub
query
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310473051.1A
Other languages
Chinese (zh)
Other versions
CN103559213B (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.)
Henan University
Original Assignee
Henan University
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 Henan University filed Critical Henan University
Priority to CN201310473051.1A priority Critical patent/CN103559213B/en
Publication of CN103559213A publication Critical patent/CN103559213A/en
Application granted granted Critical
Publication of CN103559213B publication Critical patent/CN103559213B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Remote Sensing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses an efficient spatial nearest neighbor query method for highway networks. The method includes the steps of A, storing all data objects and correspondences of coordinates thereof in a Hash table 1; B, calculating spatial nearest neighbors of apexes of a highway, and storing the highway apexes, the nearest neighbors and nearest distances into a Hash table 2; C, dividing a two-dimensional space into a plurality of grid units by a virtual grid, and numbering the grid units; D, calculating and storing correspondences between the grid units and the data objects or highway apexes, and storing the correspondences into a Hash table 3; E, calculating the grid units where query points locate and determining numbers of the grid units; F, searching for the data objects that the grid units correspond to, and calculating the nearest data objects and returning the nearest data objects to users. The method has the advantages that time complexity in spatial nearest neighbor query for highway networks can be reduced, query efficiency is improved greatly, and neighbor query time is shortened.

Description

A kind of network of highways efficient spatial arest neighbors querying method
Technical field
The present invention relates to a kind of space arest neighbors querying method, relate in particular to a kind of network of highways efficient spatial arest neighbors querying method.
Background technology
In recent years, along with popularizing of smart mobile phone, people use mobile phone to position, search, browse and sharing information more and more; Increasing facility can utilize the electronic chart in mobile phone to obtain as the geographic position of restaurant, shop, cinema etc.This service based on geographical location information towards smart phone user is accepted extensively by people.And along with the development of infotech, the application and service of this class based on geographical location information is also more and more.
In these application and service, the comparatively common service based on geographical location information is near search subscriber current location, meet the facility of user-defined keyword.In this class application, how efficiently to process the space querying of user's current geographic position, be also the inquiry of spatial key word, be an important research topic.Because a large number of users is initiated inquiry at one time by mobile terminal, and be desirably in the very short time and obtain answer, therefore, concurrent inquiry amount is large, inquiry requirement of real-time height is the main challenge that the current service application based on geographical location information faces.
How improving the search efficiency of space arest neighbors, is a basis and the very important key issue facing in the inquiry of spatial key word and a lot of service application based on geographical location information.In daily life, vehicle, pedestrian can only move conventionally on limited spatial network, also on network of highways, move and movably scope only limit to the existing road in network of highways.While searching the nearest object in the space of user's current location in network of highways, existing algorithm is conventionally all by means of the index structure of shortest path trees type.And the time complexity that uses the neighborhood of this class indexed search query point in network of highways is O (log N), the sum that wherein N is sub-section, this is by a large amount of query time of cost; And, after finding the neighborhood of query point on network of highways, existing method must be checked the candidate data object on all sub-sections in this neighborhood, and need to scan the index on network of highways and calculate shortest path and the length thereof from query point to each candidate target, this has further increased again the expense of calculating.
Summary of the invention
The object of this invention is to provide a kind of network of highways efficient spatial arest neighbors querying method, be applicable to that data volume is large, Real-time and Concurrent inquiry amount large and the high specific (special) requirements of response requirement of real-time, the time complexity of highway cyberspace arest neighbors inquiry can be reduced to O (1) from O (log N), greatly improve the efficiency of space arest neighbors inquiry.
The present invention adopts following technical proposals:
An efficient spatial arest neighbors querying method, is characterized in that, comprises the following steps:
A: the input data that comprise data object information on network of highways information and network of highways are provided by user, according to input data creation Hash table hashmap_1, and the corresponding relation of all data objects and its coordinate figure are stored in Hash table hashmap_1;
B: calculate respectively the space arest neighbors on every each summit of road, create Hash table hashmap_2, and the arest neighbors on spatial network and minimum distance are stored in Hash table hashmap_2 by link vertex, this summit;
C: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, determine the length of side of grid cell, and virtual grid is numbered;
D: calculate sub-section the save mesh unit that each grid cell comprises and control the data object in this sub-section or the corresponding relation between link vertex, and by result store in Hash table hashmap_3;
E: calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position;
F: the grid cell numbering according to calculating in step e, search the data object that this grid cell is corresponding, and calculating wherein returns to user from the nearest data object of query point.
The major key of described Hash table hashmap_1 is unique indications oid of data object, is worth the coordinate figure for this data object.
The major key of described Hash table hashmap_2 is unique indications vid of link vertex, is worth for the oid of the arest neighbors of this summit on spatial network and the minimum distance s between vid and this oid.
Described step C comprises the following steps:
C1: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, pass through formula
Figure BDA0000393620820000031
(1) determine the length of side of grid cell, wherein, l is the grid cell length of side, establishes d 1for the length of shortest path in all roads, establish d 2for having on the road of data object, the minimum value of the distance between all two adjacent data objects, d is d 1and d 2in minimum value, ξ=10 -9;
C2: making R is the minimum boundary rectangle that all data objects of data centralization form, with the summit (x in the lower left corner of R 0, y 0) be starting point, set up virtual grid, and from coordinate (x 0, y 0) grid cell at place starts, from left to right, incrementally grid cell is numbered from bottom to top; The formula of the grid cell numbering at coordinates computed point (x, y) place is:
id = m * ( ceil ( y - y 0 l ) - 1 ) + ceil ( x - x 0 l ) - 1 ; - - - ( 2 )
Wherein, id is the grid cell numbering at coordinate points (x, y) place, the quantity of the grid cell that every a line that m is grid comprises, and ceil is upper bracket function.
Described step D comprises the following steps:
D1: for any road, be divided into some sub-sections;
D2: for any strip section, calculate the grid cell crossing with this sub-section;
D3: calculate all sub-section that each grid cell comprises and the set of data objects of controlling this little section, and the corresponding relation of the slope in the sub-section at grid cell numbering and set of data objects and data object place is stored in Hash table hashmap_3, the key of hashmap_3 is the numbering of grid cell, to value that should key, be a set, each element in this set is for controlling the oid of each data object of this grid cell and the slope in the sub-section at this data object place; If controlling the point of this grid cell is link vertex, using the slope in the sub-section of the vid on this summit and place as an element, be stored in the set of this grid cell correspondence in hashmap_3.
In described step D1, for any road, from its summit, first by this insertion point, summit set ps; Then take out successively the data object on this road and be inserted in a set ps; For the line segment that in a set ps, two adjacent data group of objects of front and back become, being divided equally is in two sub-line segments difference intron line segment aggregate rs; Finally by another summit of road also insertion point set ps.
In described step D2, for any one sub-section, establish its two-end-point and be respectively v 1and v 2, calculate limit v 1→ v 2intersection point with longitudinal network ruling and transverse grid line; According to v 1to v 2direction, according to the above-mentioned intersection point of magnitude relationship ordered arrangement and the v of abscissa value 1and v 2the set of the point that two summits form; To in the set after sequence the mid point of all adjacent 2 in set of computations a little successively, the numbering of formula (2) in each mid point use step C2 being calculated to the grid cell at this mid point place, the set that the grid cell at mid point place forms is and limit v 1→ v 2crossing grid cell.
In described step e, utilize the formula (2) in step C2, calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position.
Described step F comprises the following steps:
F1: according to the grid cell numbering calculating in step e, search the slope in corresponding every the sub-section of this grid cell and control the oid of data object or the vid of link vertex in this sub-section in Hash table hashmap_3;
F2: the slope that calculates respectively the straight line that first object on query point and each strip section is formed by connecting; If the slope in corresponding a certain the sub-section of the slope calculating and grid cell equates, query point is positioned on the sub-section of this correspondence; If the slope calculating all equates with the slope in corresponding some the sub-sections of grid cell, calculate respectively the coordinate position relation between query point and the two-end-point of each sub-line segment, to determine sub-section, query point place;
F3: judge on the road of query point place whether have data object, if so, enter step F 4; If not, enter step F 5;
F4: if two end points in sub-section, query point place are respectively two data objects, calculate respectively the distance between these two data objects and query point, and will as Query Result, return to user with the nearest data object of query point, if these two data objects are identical with the distance between query point, these two data objects are returned to user as Query Result simultaneously;
If two end points in sub-section, query point place are respectively a data object and a link vertex, first calculate query point to the distance r of this data object 1with the distance r of query point to this link vertex 2, then from Hash table hashmap_2, inquire about arest neighbors and the minimum distance s of this link vertex on spatial network 2, finally compare r 1with r 2+ s 2size, if r 1less, data object corresponding to sub-section, query point place end points returned to user as Query Result; If r 2+ s 2less, using inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network from Hash table hashmap_2, as Query Result, return to user; If r 1with r 2+ s 2size identical, simultaneously using data object corresponding to sub-section, query point place end points, from Hash table hashmap_2, inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network as Query Result, return to user simultaneously;
F5: if two end points of query point place road are respectively two link vertex, first score is not calculated query point to the distance r of first link vertex 3with the distance r4 of query point to the second link vertex, then from Hash table hashmap_2, inquire about respectively arest neighbors and the minimum distance s of first link vertex on spatial network 3, second arest neighbors and the minimum distance s of link vertex on spatial network 4, calculate r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 4+ s 4less, using second link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 3+ s 3with r 4+ s 4size identical, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of the corresponding data object of arest neighbors on spatial network, second link vertex inquiring from the Hash table hashmap_2 arest neighbors on spatial network returns to user as Query Result simultaneously simultaneously.
The present invention is applied as starting point with the space querying of the service based on geographical location information, spatial query processing is divided into off-line index and sets up and real-time two megastages of spatial query processing.Off-line index establishment stage is served the real-time spatial query processing stage, the response speed of the space arest neighbors inquiry for improve between real-time empty processing stage.Off-line index establishment stage is responsible for index and is set up, and in the present invention, at off-line index establishment stage, has created three Hash table: hashmap_1, hashmap_2, hashmap_3.Wherein, the indications of hashmap_1 for storing data object, i.e. corresponding relation between the oid of data object and the coordinate of data object; Hashmap_2 is for storing the indications of link vertex, i.e. the vid of link vertex and this summit value of the bee-line between the oid of nearest data object on the oid of nearest data object and the vid of link vertex and spatial network on spatial network; Hashmap_3 is for corresponding relation, this sub-section slope between save mesh unit and the data object in this grid cell neutron section of control.In the real-time spatial query processing stage, each space arest neighbors is inquired about, first calculate the corresponding grid cell of query point in two-dimensional space, then three Hash tables setting up by off-line index establishment stage find the data object of controlling the sub-section comprising in this grid cell, determine on the road at query point place and the space arest neighbors on the road of query point place, the space arest neighbors using it as query point returns to user.The present invention can make the time complexity of highway cyberspace arest neighbors inquiry be reduced to O (1) from O (log N), greatly improved arest neighbors search efficiency between network of highways real-time empty, reduce arest neighbors query time, the position-based service application system on the network of highways large for data volume, Real-time and Concurrent inquiry amount is large and response requirement of real-time is high is extremely important.
Accompanying drawing explanation
Fig. 1 is schematic flow sheet of the present invention;
Fig. 2 is that use virtual grid of the present invention is divided into two-dimensional space the schematic diagram of the square net unit that several grades are large;
The schematic diagram of Fig. 3 when to be sub-section, query point place slope equate with the slope in corresponding a certain the sub-section of grid cell;
The schematic diagram of Fig. 4 when to be sub-section, query point place slope equate with the slope in corresponding some the sub-sections of grid cell;
Fig. 5 is the schematic diagram of two end points of the sub-line segment at query point place while being respectively data object and link vertex;
Schematic diagram when two end points that Fig. 6 and Fig. 7 are the sub-line segment at query point place are link vertex.
Embodiment
As shown in Figure 1, network of highways efficient spatial arest neighbors querying method of the present invention comprises the following steps, and wherein A, B, C, D step are for off-line index establishment stage; E, F step are used for the real-time spatial query processing stage:
A: the input data that comprise data object information on network of highways information and network of highways are provided by user, according to input data creation Hash table hashmap_1, and the corresponding relation of all data objects and its coordinate figure are stored in Hash table hashmap_1; The major key of Hash table hashmap_1 is unique indications oid of data object, is worth the coordinate figure for this data object.
B: calculate respectively the space arest neighbors on every each summit of road, create Hash table hashmap_2, and the arest neighbors on spatial network and minimum distance are stored in Hash table hashmap_2 by link vertex, this summit; The major key of Hash table hashmap_2 is unique indications vid of link vertex, is worth for the oid of the arest neighbors of this summit on spatial network and the minimum distance s between vid and this oid.
C: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, determine the length of side of grid cell, and virtual grid is numbered; When carrying out C step, according to following concrete steps, carry out:
C1: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, pass through formula
Figure BDA0000393620820000091
(1) determine the length of side of grid cell, wherein, l is the grid cell length of side, establishes d 1for the length of shortest path in all roads, establish d 2for having on the road of data object, the minimum value of the distance between all two adjacent data objects, d is d 1and d 2in minimum value, ξ=10 -9;
C2: making R is the minimum boundary rectangle that all data objects of data centralization form, with the summit (x in the lower left corner of R 0, y 0) be starting point, set up virtual grid, and from coordinate (x 0, y 0) grid cell at place starts, from left to right, incrementally grid cell is numbered from bottom to top; The formula of the grid cell numbering at coordinates computed point (x, y) place is:
id = m * ( ceil ( y - y 0 l ) - 1 ) + ceil ( x - x 0 l ) - 1 ; - - - ( 2 )
Wherein, id is the grid cell numbering at coordinate points (x, y) place, the quantity of the grid cell that every a line that m is grid comprises, and ceil is upper bracket function.
D: calculate sub-section the save mesh unit that each grid cell comprises and control the data object in this sub-section or the corresponding relation between link vertex, and by result store in Hash table hashmap_3; When carrying out D step, according to following concrete steps, carry out:
D1: for any road, be divided into some sub-sections; For any road, from its summit, first by this insertion point, summit set ps; Then take out successively the data object on this road and be inserted in a set ps; For the line segment that in a set ps, two adjacent data group of objects of front and back become, being divided equally is in two sub-line segments difference intron line segment aggregate rs; Finally by another summit of road also insertion point set ps.
D2: for any strip section, make to calculate with the following method the grid cell crossing with this sub-section: make the two-end-point in this sub-section be respectively v 1and v 2, calculate limit v 1→ v 2intersection point with longitudinal network ruling and transverse grid line; According to v 1to v 2direction, according to the above-mentioned intersection point of magnitude relationship ordered arrangement and the v of abscissa value 1and v 2the set of the point that two summits form; To in the set after sequence the mid point of all adjacent 2 in set of computations a little successively, the numbering of formula (2) in each mid point use step C2 being calculated to the grid cell at this mid point place, the set that the grid cell at mid point place forms is and limit v 1→ v 2crossing grid cell.
D3: calculate all sub-section that each grid cell comprises and the set of data objects of controlling this little section, and the corresponding relation of the slope in the sub-section at grid cell numbering and set of data objects and data object place is stored in Hash table hashmap_3, the key of hashmap_3 is the numbering of grid cell, to value that should key, be a set, each element in this set is for controlling the oid of each data object of this grid cell and the slope in the sub-section at this data object place.If controlling the point of this grid cell is link vertex, using the slope in the sub-section of the vid on this summit and place as an element, be stored in the set of this grid cell correspondence in hashmap_3.
E: utilize the formula (2) in step C2, calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position;
F: the grid cell numbering according to calculating in step e, search the data object that this grid cell is corresponding, and calculating wherein returns to user from the nearest data object of query point.When carrying out F step, according to following concrete steps, carry out:
F1: according to the grid cell numbering calculating in step e, search the slope in corresponding every the sub-section of this grid cell and control the oid of data object or the vid of link vertex in this sub-section in Hash table hashmap_3;
F2: the slope that calculates respectively the straight line that first object on query point and each strip section is formed by connecting; If the slope in corresponding a certain the sub-section of the slope calculating and grid cell equates, query point is positioned on the sub-section of this correspondence; If the slope calculating all equates with the slope in corresponding some the sub-sections of grid cell, calculate respectively the coordinate position relation between query point and the two-end-point of each sub-line segment, to determine sub-section, query point place;
F3: judge on the road of query point place whether have data object, if so, enter step F 4; If not, enter step F 5;
F4: if two end points in sub-section, query point place are respectively two data objects, calculate respectively the distance between these two data objects and query point, and will as Query Result, return to user with the nearest data object of query point, if these two data objects are identical with the distance between query point, these two data objects are returned to user as Query Result simultaneously;
If two end points in sub-section, query point place are respectively a data object and a link vertex, first calculate query point to the distance r of this data object 1with the distance r of query point to this link vertex 2, then from Hash table hashmap_2, inquire about arest neighbors and the minimum distance s of this link vertex on spatial network 2, finally compare r 1with r 2+ s 2size, if r 1less, data object corresponding to sub-section, query point place end points returned to user as Query Result; If r 2+ s 2less, using inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network from Hash table hashmap_2, as Query Result, return to user; If r 1with r 2+ s 2size identical, simultaneously using data object corresponding to sub-section, query point place end points, from Hash table hashmap_2, inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network as Query Result, return to user simultaneously;
F5: if two end points of query point place road are respectively two link vertex, first score is not calculated query point to the distance r of first link vertex 3distance r with query point to the second link vertex 4, then from Hash table hashmap_2, inquire about respectively arest neighbors and the minimum distance s of first link vertex on spatial network 3, second arest neighbors and the minimum distance s of link vertex on spatial network 4, calculate r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 4+ s 4less, using second link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 3+ s 3with r 4+ s 4size identical, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of the corresponding data object of arest neighbors on spatial network, second link vertex inquiring from the Hash table hashmap_2 arest neighbors on spatial network returns to user as Query Result simultaneously simultaneously.
Below in conjunction with specific embodiment, network of highways efficient spatial arest neighbors querying method of the present invention is explained:
A: the input data that comprise data object information on network of highways information and network of highways are provided by user, according to input data creation Hash table hashmap_1, and the corresponding relation of all data objects and its coordinate figure are stored in Hash table hashmap_1; The major key of Hash table hashmap_1 is unique indications oid of data object, is worth the coordinate figure for this data object.Like this, the oid of data-oriented object, by searching the respective value in Hash table hashmap_1, just can obtain the coordinate position of this data object.
B: calculate respectively the space arest neighbors on every each summit of road, create Hash table hashmap_2, and the arest neighbors on spatial network and minimum distance are stored in Hash table hashmap_2 by link vertex, this summit; The major key of Hash table hashmap_2 is unique indications vid of link vertex, is worth for the oid of the arest neighbors of this summit on spatial network and the minimum distance s between vid and this oid.
As shown in Figure 2, a, b, c, d, e, f, the summit that g is network of highways, o 1to o 7for the data object on network of highways, grid 0,1,2 ... for virtual grid element number hereinafter described, Q 1, Q 2for query point, P 1,
P 2, P 3the mid point between adjacent two data object on road, wherein, P 1the upper data object o of road ab 1with data object o 2mid point; P 2data object o 2with data object o 3mid point, P 3the upper data object o of road bc 4with data object o 5mid point.
Because every road all has two summits, and some roads can be shared a summit, therefore, in Fig. 2, have 11 roads, and the number on summit is 7.For each summit, use dijkstra algorithm to calculate the nearest data object of this summit on spatial network.In Fig. 2, b nearest data object on spatial network in summit is o 7.Create Hash table hashmap_2, unique indications vid that major key is link vertex, is worth for the oid of the nearest data object of this summit on spatial network and the minimum distance s between vid and oid.Vid corresponding value in Hash table hashmap_2 is two tuples, and this two tuple is the oid of the nearest data object of vid and the bee-line between oid and vid.
C: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, determine the length of side of grid cell, and virtual grid is numbered; When carrying out C step, according to following concrete steps, carry out:
C1: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, pass through formula
Figure BDA0000393620820000141
(1) determine the length of side of grid cell, wherein, l is the grid cell length of side, establishes d 1for the length of shortest path in all roads, establish d 2for having on the road of data object, the minimum value of the distance between all two adjacent data objects, d is d 1and d 2in minimum value, ξ=10 -9;
C2: making R is the minimum boundary rectangle that all data objects of data centralization form, with the summit (x in the lower left corner of R 0, y 0) be starting point, set up virtual grid, and from coordinate (x 0, y 0) grid cell at place starts, from left to right, incrementally grid cell is numbered from bottom to top; The formula of the grid cell numbering at coordinates computed point (x, y) place is:
id = m * ( ceil ( y - y 0 l ) - 1 ) + ceil ( x - x 0 l ) - 1 ; - - - ( 2 )
Wherein, id is the grid cell numbering at coordinate points (x, y) place, the quantity of the grid cell that every a line that m is grid comprises, and ceil is upper bracket function.
In Fig. 2, use virtual grid to divide the two-dimensional space at network of highways place.This virtual grid one has 12 row, and every row comprises 16 grid cells, is also m=16.Wherein, 0,1,2,3 numberings that are respectively front 4 grid cells of the 1st row.And 16,17,18 be the numbering of first three grid cell of the 2nd row.119 and 120 is numberings of the 8th, the 9th grid cell of the 12nd row.
D: calculate sub-section the save mesh unit that each grid cell comprises and control the data object in this sub-section or the corresponding relation between link vertex, and by result store in Hash table hashmap_3; When carrying out D step, according to following concrete steps, carry out:
D1: for any road, be divided into some sub-sections; For any road, from its summit, first by this insertion point, summit set ps; Then take out successively the data object on this road and be inserted in a set ps; For the line segment that in a set ps, two adjacent data group of objects of front and back become, being divided equally is in two sub-line segments difference intron line segment aggregate rs; Finally by another summit of road also insertion point set ps.
In Fig. 2, a, b, c, d, e, f, the summit that g is network of highways, o 1, o 2..., o 7for the data object on network of highways.For the line segment that in a set ps, two adjacent data group of objects of front and back become, being divided equally is in two sub-line segments difference intron line segment aggregate rs, as P 1, P 2for the mid point between the upper adjacent two data object of road ab.Wherein, P 1data object o 1with data object o 2mid point; P 2data object o 2with data object o 3mid point.And two, group section end points one of them while being link vertex, do not divide this sub-section, as upper in road ab in Fig. 2, a → o 1, o 3two sub-sections of → b are not split into two sub-sections.
D2: for any strip section, make to calculate with the following method the grid cell crossing with this sub-section: make the two-end-point in this sub-section be respectively v 1and v 2, calculate limit v 1→ v 2intersection point with longitudinal network ruling and transverse grid line; According to v 1to v 2direction, according to the above-mentioned intersection point of magnitude relationship ordered arrangement and the v of abscissa value 1and v 2the set of the point that two summits form; To in the set after sequence the mid point of all adjacent 2 in set of computations a little successively, the numbering of formula (2) in each mid point use step C2 being calculated to the grid cell at this mid point place, the set that the grid cell at mid point place forms is and limit v 1→ v 2crossing grid cell.
D3: calculate all sub-section that each grid cell comprises and the set of data objects of controlling this little section, and the corresponding relation of the slope in the sub-section at grid cell numbering and set of data objects and data object place is stored in Hash table hashmap_3, the key of hashmap_3 is the numbering of grid cell, to value that should key, be a set, each element in this set is for controlling the oid of each data object of this grid cell and the slope in the sub-section at this data object place; If controlling the point of this grid cell is link vertex, using the slope in the sub-section of the vid on this summit and place as an element, be stored in the set of this grid cell correspondence in hashmap_3.
E: utilize the formula (2) in step C2, calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position; As in Fig. 2, utilize formula id = m * ( ceil ( y - y 0 l ) - 1 ) + ceil ( x - x 0 l ) - 1 ; Calculate query point Q 1the grid cell at place is numbered 135.
F: the grid cell numbering according to calculating in step e, search the data object that this grid cell is corresponding, and calculating wherein returns to user from the nearest data object of query point.When carrying out F step, according to following concrete steps, carry out:
F1: according to the grid cell numbering calculating in step e, search the slope slope in corresponding every the sub-section of this grid cell and control the oid of data object or the vid of link vertex in this sub-section in Hash table hashmap_3;
F2: the slope that calculates respectively the straight line that first data object on query point and each strip section is formed by connecting; If the slope in corresponding a certain the sub-section of the slope calculating and grid cell equates, query point is positioned on the sub-section of this correspondence; If the slope calculating all equates with the slope in corresponding some the sub-sections of grid cell, calculate respectively the coordinate position relation between query point and the two-end-point of each sub-line segment, to determine sub-section, query point place;
For example, in Fig. 3, Q is query point, O 1and O 2for controlling the data object of the grid at query point place, the common vertex that a is two road.Difference calculated line Q → O 1with Q → O 2slope, known Q → O 1slope with only with road a → O 1slope identical, therefore, query point Q is at road a → O 1on.
In Fig. 4, Q is query point, O 1and O 2for controlling the data object of the grid at query point place, the common vertex that a is two road.Difference calculated line Q → O 1with Q → O 2slope, known Q → O 1with Q → O 2slope identical, and with road a → O 1and a → O 2slope all identical, in the case, by calculating the coordinate position relation between the two-end-point of query point and each individual sub-line segment, can determine that query point Q is at road a → O 2upper, and be not positioned at road a → O 1on.
F3: judge on the road of query point place whether have data object, if so, enter step F 4; If not, enter step F 5;
F4: if two end points in sub-section, query point place are respectively two data objects, calculate respectively the distance between these two data objects and query point, and will as Query Result, return to user with the nearest data object of query point, if these two data objects are identical with the distance between query point, these two data objects are returned to user as Query Result simultaneously;
As the query point Q in Fig. 2 2position, Q 2be positioned at sub-route O 4→ O 5between, and O 4with O 5be respectively two data objects, rather than summit, crossing.So only need to be from O 4with O 5in find out from query point Q 2nearest data object returns to user as Query Result.In Fig. 2, data object O 4for O 4with O 5in from query point Q 2nearest data object, so in situation shown in Fig. 2, O 4be the space arest neighbors inquiring.
If two end points in sub-section, query point place are respectively a data object and a link vertex, first calculate query point and arrive the distance r1 of this data object and the distance r that query point arrives this link vertex 2, then from Hash table hashmap_2, inquire about arest neighbors and the minimum distance s of this link vertex on spatial network 2, finally compare r 1with r 2+ s 2size, if r 1less, data object corresponding to sub-section, query point place end points returned to user as Query Result; If r 2+ s 2less, using inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network from Hash table hashmap_2, as Query Result, return to user; If r 1with r 2+ s 2size identical, simultaneously using data object corresponding to sub-section, query point place end points, from Hash table hashmap_2, inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network as Query Result, return to user simultaneously;
Query point Q as shown in Figure 2 1position, query point Q 1the grid cell at place is numbered 135, query point Q 1the sub-line segment at place is o 3→ b, two corresponding end points are respectively data object o 3with link vertex b.For this situation, first calculate query point Q 1to data object o 3distance r 1with the distance r of query point to link vertex b 2, then from Hash table hashmap_2, inquire the arest neighbors o of link vertex b on spatial network 7and link vertex b is to its arest neighbors o 7minimum distance s 2, finally compare r 1with r 2+ s 2size, if r 1less, by query point Q 1data object o corresponding to sub-section, place end points 3as Query Result, return to user; If r 2+ s 2less, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex b on spatial network 7as Query Result, return to user.As can be seen from Figure 2, r 1< r 2+ s 2, therefore, by query point Q 1data object o corresponding to sub-section, place end points 3as the arest neighbors inquiring, return to user.
Query point Q as shown in Figure 5 again 1position, query point Q 1the sub-line segment at place is o 2→ d, two corresponding end points are respectively data object o 2with link vertex d.For this situation, first calculate query point Q 1to data object o 2distance r 1with the distance r of query point to link vertex d 2, then from Hash table hashmap_2, inquire the arest neighbors o of link vertex d on spatial network 1and link vertex d is to its arest neighbors o 1minimum distance s 2, finally compare r 1with r 2+ s 2size, if r 1less, by query point Q 1data object o corresponding to sub-section, place end points 2as Query Result, return to user; If r 2+ s 2less, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex d on spatial network 1as Query Result, return to user.As can be seen from Figure 5, r 1> r 2+ s 2, therefore, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex d on spatial network 1as Query Result, return to user.
F5: if two end points of query point place road are respectively two link vertex, first score is not calculated query point to the distance r of first link vertex 3distance r with query point to the second link vertex 4, then from Hash table hashmap_2, inquire about respectively arest neighbors and the minimum distance s of first link vertex on spatial network 3, second arest neighbors and the minimum distance s of link vertex on spatial network 4, calculate r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 4+ s 4less, using second link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 3+ s 3with r 4+ s 4size identical, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of the corresponding data object of arest neighbors on spatial network, second link vertex inquiring from the Hash table hashmap_2 arest neighbors on spatial network returns to user as Query Result simultaneously simultaneously.
Query point Q as shown in Figure 6 1position, query point Q 1the sub-line segment at place is d → e, and two corresponding end points are respectively link vertex d and link vertex e.For this situation, first calculate query point Q 1distance r to link vertex d 3with the distance r of query point to link vertex e 4, then from Hash table hashmap_2, inquire the arest neighbors o of link vertex d on spatial network 1and link vertex d is to its arest neighbors o 1minimum distance s 3, the arest neighbors o of link vertex e on spatial network 2and link vertex e is to its arest neighbors o 2minimum distance s 4, finally compare r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, the corresponding data object o of arest neighbors on spatial network by first link vertex d inquiring from Hash table hashmap_2 1as Query Result, return to user; If r 4+ s 4less, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex e on spatial network 2as Query Result, return to user.As can be seen from Figure 6, r 3+ s 3> r 4+ s 4, therefore, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex e on spatial network 2as Query Result, return to user.
Query point Q as shown in Figure 7 again 1position, query point Q 1the sub-line segment at place is d → e, and two corresponding end points are respectively link vertex d and link vertex e.For this situation, first calculate query point Q 1distance r to link vertex d 3with the distance r of query point to link vertex e 4, then from Hash table hashmap_2, inquire the arest neighbors o of link vertex d on spatial network 1and link vertex d is to its arest neighbors o 1minimum distance s 3, the arest neighbors o of link vertex e on spatial network 2and link vertex e is to its arest neighbors o 2minimum distance s 4, finally compare r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, the corresponding data object o of arest neighbors on spatial network by first link vertex d inquiring from Hash table hashmap_2 1as Query Result, return to user; If r 4+ s 4less, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex e on spatial network 2as Query Result, return to user.As can be seen from Figure 6, r 3+ s 3> r 4+ s 4, therefore, will from Hash table hashmap_2, inquire about the corresponding data object o of the arest neighbors of this link vertex e on spatial network 2as Query Result, return to user.
The present invention is applied as starting point with the space querying of the service based on geographical location information, spatial query processing is divided into off-line index and sets up and real-time two megastages of spatial query processing.
Off-line index establishment stage is served the real-time spatial query processing stage, the response speed of the space arest neighbors inquiry for improve between real-time empty processing stage.Off-line index establishment stage is responsible for index and is set up, and in the present invention, at off-line index establishment stage, has created three Hash table: hashmap_1, hashmap_2, hashmap_3.Wherein, the indications of hashmap_1 for storing data object, i.e. corresponding relation between the oid of data object and the coordinate of data object; Hashmap_2 is for storing the indications of link vertex, i.e. the vid of link vertex and this summit value of the bee-line between the oid of nearest data object on the oid of nearest data object and the vid of link vertex and spatial network on spatial network; Hashmap_3 is for corresponding relation, this sub-section slope between save mesh unit and the data object in this grid cell neutron section of control.
In the real-time spatial query processing stage, each space arest neighbors is inquired about, first calculate the corresponding grid cell of query point in two-dimensional space, then three Hash tables setting up by off-line index establishment stage find the data object of controlling the sub-section comprising in this grid cell, determine on the road at query point place and the space arest neighbors on the network of highways of query point place, the space arest neighbors using it as query point returns to user.

Claims (9)

1. a network of highways efficient spatial arest neighbors querying method, is characterized in that, comprises the following steps:
A: the input data that comprise data object information on network of highways information and network of highways are provided by user, according to input data creation Hash table hashmap_1, and the corresponding relation of all data objects and its coordinate figure are stored in Hash table hashmap_1;
B: calculate respectively the space arest neighbors on every each summit of road, create Hash table hashmap_2, and the arest neighbors on spatial network and minimum distance are stored in Hash table hashmap_2 by link vertex, this summit;
C: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, determine the length of side of grid cell, and virtual grid is numbered;
D: calculate sub-section the save mesh unit that each grid cell comprises and control the data object in this sub-section or the corresponding relation between link vertex, and by result store in Hash table hashmap_3;
E: calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position;
F: the grid cell numbering according to calculating in step e, search the data object that this grid cell is corresponding, and calculating wherein returns to user from the nearest data object of query point.
2. network of highways efficient spatial arest neighbors querying method according to claim 1, is characterized in that: unique indications oid that the major key of described Hash table hashmap_1 is data object, is worth the coordinate figure for this data object.
3. network of highways efficient spatial arest neighbors querying method according to claim 2, it is characterized in that: unique indications vid that the major key of described Hash table hashmap_2 is link vertex, is worth for the oid of the arest neighbors of this summit on spatial network and the minimum distance s between vid and this oid.
4. network of highways efficient spatial arest neighbors querying method according to claim 3, is characterized in that, described step C comprises the following steps:
C1: use virtual grid that two-dimensional space is divided into the square net unit that several grades are large, pass through formula
Figure FDA0000393620810000021
(1) determine the length of side of grid cell, wherein, l is the grid cell length of side, establishes d 1for the length of shortest path in all roads, establish d 2for having on the road of data object, the minimum value of the distance between all two adjacent data objects, d is d 1and d 2in minimum value, ξ=10 -9;
C2: making R is the minimum boundary rectangle that all data objects of data centralization form, with the summit (x in the lower left corner of R 0, y 0) be starting point, set up virtual grid, and from coordinate (x 0, y 0) grid cell at place starts, from left to right, incrementally grid cell is numbered from bottom to top; The formula of the grid cell numbering at coordinates computed point (x, y) place is:
id = m * ( ceil ( y - y 0 l ) - 1 ) + ceil ( x - x 0 l ) - 1 ; - - - ( 2 )
Wherein, id is the grid cell numbering at coordinate points (x, y) place, the quantity of the grid cell that every a line that m is grid comprises, and ceil is upper bracket function.
5. network of highways efficient spatial arest neighbors querying method according to claim 4, is characterized in that, described step D comprises the following steps:
D1: for any road, be divided into some sub-sections;
D2: for any strip section, calculate the grid cell crossing with this sub-section;
D3: calculate all sub-section that each grid cell comprises and the set of data objects of controlling this little section, and the corresponding relation of the slope in the sub-section at grid cell numbering and set of data objects and data object place is stored in Hash table hashmap_3, the key of hashmap_3 is the numbering of grid cell, to value that should key, be a set, each element in this set is for controlling the oid of each data object of this grid cell and the slope in the sub-section at this data object place; If controlling the point of this grid cell is link vertex, using the slope in the sub-section of the vid on this summit and place as an element, be stored in the set of this grid cell correspondence in hashmap_3.
6. network of highways efficient spatial arest neighbors querying method according to claim 5, is characterized in that: in described step D1, for any road, from its summit, first by this insertion point, summit set ps; Then take out successively the data object on this road and be inserted in a set ps; For the line segment that in a set ps, two adjacent data group of objects of front and back become, being divided equally is in two sub-line segments difference intron line segment aggregate rs; Finally by another summit of road also insertion point set ps.
7. network of highways efficient spatial arest neighbors querying method according to claim 6, is characterized in that: in described step D2, for any one sub-section, establish its two-end-point and be respectively v 1and v 2, calculate limit v 1→ v 2intersection point with longitudinal network ruling and transverse grid line; According to v 1to v 2direction, according to the above-mentioned intersection point of magnitude relationship ordered arrangement and the v of abscissa value 1and v 2the set of the point that two summits form; To in the set after sequence the mid point of all adjacent 2 in set of computations a little successively, the numbering of formula (2) in each mid point use step C2 being calculated to the grid cell at this mid point place, the set that the grid cell at mid point place forms is and limit v 1→ v 2crossing grid cell.
8. network of highways efficient spatial arest neighbors querying method according to claim 7, it is characterized in that: in described step e, utilize the formula (2) in step C2, calculate the grid cell at place, query point position, and the numbering of the corresponding grid cell in definite query point position.
9. network of highways efficient spatial arest neighbors querying method according to claim 8, is characterized in that, described step F comprises the following steps:
F1: according to the grid cell numbering calculating in step e, search the slope in corresponding every the sub-section of this grid cell and control the oid of data object or the vid of link vertex in this sub-section in Hash table hashmap_3;
F2: the slope that calculates respectively the straight line that first object on query point and each strip section is formed by connecting; If the slope in corresponding a certain the sub-section of the slope calculating and grid cell equates, query point is positioned on the sub-section of this correspondence; If the slope calculating all equates with the slope in corresponding some the sub-sections of grid cell, calculate respectively the coordinate position relation between query point and the two-end-point of each sub-line segment, to determine sub-section, query point place;
F3: judge on the road of query point place whether have data object, if so, enter step F 4; If not, enter step F 5;
F4: if two end points in sub-section, query point place are respectively two data objects, calculate respectively the distance between these two data objects and query point, and will as Query Result, return to user with the nearest data object of query point, if these two data objects are identical with the distance between query point, these two data objects are returned to user as Query Result simultaneously;
If two end points in sub-section, query point place are respectively a data object and a link vertex, first calculate query point and arrive the distance r1 of this data object and the distance r that query point arrives this link vertex 2, then from Hash table hashmap_2, inquire about arest neighbors and the minimum distance s of this link vertex on spatial network 2, finally compare r 1with r 2+ s 2size, if r 1less, data object corresponding to sub-section, query point place end points returned to user as Query Result; If r 2+ s 2less, using inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network from Hash table hashmap_2, as Query Result, return to user; If r 1with r 2+ s 2size identical, simultaneously using data object corresponding to sub-section, query point place end points, from Hash table hashmap_2, inquire about the corresponding data object of the arest neighbors of this link vertex on spatial network as Query Result, return to user simultaneously;
F5: if two end points of query point place road are respectively two link vertex, first score is not calculated query point to the distance r of first link vertex 3distance r with query point to the second link vertex 4, then from Hash table hashmap_2, inquire about respectively arest neighbors and the minimum distance s of first link vertex on spatial network 3, second arest neighbors and the minimum distance s of link vertex on spatial network 4, calculate r 3+ s 3with r 4+ s 4size, if r 3+ s 3less, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 4+ s 4less, using second link vertex inquiring from Hash table hashmap_2, the corresponding data object of arest neighbors on spatial network returns to user as Query Result; If r 3+ s 3with r 4+ s 4size identical, using first link vertex inquiring from Hash table hashmap_2, the corresponding data object of the corresponding data object of arest neighbors on spatial network, second link vertex inquiring from the Hash table hashmap_2 arest neighbors on spatial network returns to user as Query Result simultaneously simultaneously.
CN201310473051.1A 2013-10-10 2013-10-10 A kind of network of highways efficient spatial K-NN search method Active CN103559213B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310473051.1A CN103559213B (en) 2013-10-10 2013-10-10 A kind of network of highways efficient spatial K-NN search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310473051.1A CN103559213B (en) 2013-10-10 2013-10-10 A kind of network of highways efficient spatial K-NN search method

Publications (2)

Publication Number Publication Date
CN103559213A true CN103559213A (en) 2014-02-05
CN103559213B CN103559213B (en) 2016-08-17

Family

ID=50013460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310473051.1A Active CN103559213B (en) 2013-10-10 2013-10-10 A kind of network of highways efficient spatial K-NN search method

Country Status (1)

Country Link
CN (1) CN103559213B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868336A (en) * 2016-03-28 2016-08-17 哈尔滨工程大学 Set-oriented space keyword query method for road network
CN106033440A (en) * 2015-03-16 2016-10-19 中国石油化工股份有限公司 Management method for spatial data
CN107301254A (en) * 2017-08-24 2017-10-27 电子科技大学 A kind of road network hot spot region method for digging
CN109902711A (en) * 2019-01-14 2019-06-18 南京航空航天大学 A kind of mobile object k nearest neighbor search algorithm on Time Dependent road network
CN110657805A (en) * 2018-09-30 2020-01-07 北京奇虎科技有限公司 Method and device for searching moving target based on road scene
CN113449208A (en) * 2020-03-26 2021-09-28 阿里巴巴集团控股有限公司 Space query method, device, system and storage medium
CN115392955A (en) * 2022-08-10 2022-11-25 中国银联股份有限公司 Store duplicate removal processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210413A1 (en) * 2008-02-19 2009-08-20 Hideki Hayashi K-nearest neighbor search method, k-nearest neighbor search program, and k-nearest neighbor search device
CN102810118A (en) * 2012-07-05 2012-12-05 上海电力学院 K nearest neighbor search method for variable weight network
CN103020319A (en) * 2013-01-11 2013-04-03 江苏大学 Real-time mobile space keyword approximate Top-k query method
CN103020130A (en) * 2012-11-20 2013-04-03 北京航空航天大学 k nearest neighbor query method oriented to support area in LBS (Location-based Service) of urban road network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210413A1 (en) * 2008-02-19 2009-08-20 Hideki Hayashi K-nearest neighbor search method, k-nearest neighbor search program, and k-nearest neighbor search device
CN102810118A (en) * 2012-07-05 2012-12-05 上海电力学院 K nearest neighbor search method for variable weight network
CN103020130A (en) * 2012-11-20 2013-04-03 北京航空航天大学 k nearest neighbor query method oriented to support area in LBS (Location-based Service) of urban road network
CN103020319A (en) * 2013-01-11 2013-04-03 江苏大学 Real-time mobile space keyword approximate Top-k query method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHONGSHENG ZHANG ET AL.: "On efficient processing of multiple KNN queries in constrained spatial networks", 《FUZZY SYSTEMS AND KNOWLEDGE DISCOVERY》, vol. 4, 20 October 2008 (2008-10-20) *
YONGHUN PARK ET AL.: "K-Nearest neighbor query processing method based on distance relation pattern", 《PROCEEDINGS OF THE 20TH ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT》, 24 October 2011 (2011-10-24) *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106033440A (en) * 2015-03-16 2016-10-19 中国石油化工股份有限公司 Management method for spatial data
CN105868336A (en) * 2016-03-28 2016-08-17 哈尔滨工程大学 Set-oriented space keyword query method for road network
CN105868336B (en) * 2016-03-28 2019-11-29 哈尔滨工程大学 Spatial key word querying method in road network towards set
CN107301254A (en) * 2017-08-24 2017-10-27 电子科技大学 A kind of road network hot spot region method for digging
CN107301254B (en) * 2017-08-24 2020-07-10 电子科技大学 Road network hot spot area mining method
CN110657805A (en) * 2018-09-30 2020-01-07 北京奇虎科技有限公司 Method and device for searching moving target based on road scene
CN109902711A (en) * 2019-01-14 2019-06-18 南京航空航天大学 A kind of mobile object k nearest neighbor search algorithm on Time Dependent road network
CN113449208A (en) * 2020-03-26 2021-09-28 阿里巴巴集团控股有限公司 Space query method, device, system and storage medium
CN115392955A (en) * 2022-08-10 2022-11-25 中国银联股份有限公司 Store duplicate removal processing method, device, equipment and storage medium
CN115392955B (en) * 2022-08-10 2024-03-01 中国银联股份有限公司 Store duplicate removal processing method, store duplicate removal processing device, store duplicate removal processing equipment and storage medium

Also Published As

Publication number Publication date
CN103559213B (en) 2016-08-17

Similar Documents

Publication Publication Date Title
CN103559213A (en) Efficient spatial nearest neighbor query method for highway networks
CN103884345B (en) Interest point information collecting method, interest point information displaying method, interest point information collecting device, interest point information displaying device, and interest point retrieval system
CN106708837B (en) Interest point searching method and device
CN107167136A (en) Recommend method and system in a kind of position towards electronic map
CN109902711B (en) K-nearest neighbor query algorithm for moving object on time-dependent road network
CN103697896A (en) Unmanned aerial vehicle route planning method
CN108241712A (en) A kind of map data processing method and device
CN103559209A (en) Method for querying nearest neighbor of efficient space combined by Voronoi Diagram and virtual grids
CN102997928A (en) Inter-city road network index and matching method
CN103810194A (en) Geographic coding method, position inquiring system and position inquiring method
CN101488158A (en) Road network modeling method based on road element
CN102867004A (en) Method and system for matching addresses
CN109146360B (en) Grid establishing method and device and distribution method and device
CN101587650A (en) GPS bus transfering navigation method and system thereof
CN112347596B (en) Urban public transport network optimization method
CN102779231A (en) Coordinate conversion parameter calculating method based on adjacent control point sets
CN102175252A (en) Method for planning dynamic merging and united path of distributed multi-stage road network
CN104391907A (en) Variable resolution rapid path searching method
CN107247761A (en) Track coding method based on bitmap
CN103020130A (en) k nearest neighbor query method oriented to support area in LBS (Location-based Service) of urban road network
CN103778191A (en) Vector contour line data partitioning method with space proximity relation considered
CN100428236C (en) Network information classification and search method
CN106980029B (en) Vehicle overspeed judgment method and system
CN103177650A (en) Simple digital map manufacturing method based on aerial photo
CN105678601A (en) Order sending method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 475001 Henan province city Minglun Street No. 85

Patentee after: Henan University

Address before: 475004 Jinming Avenue, Kaifeng City, Henan Province

Patentee before: Henan University

CP02 Change in the address of a patent holder