Querying spatial events in a vehicle network, and optimized querier
First Claim
Patent Images
1. A method of querying spatial events in a vehicle network, comprising:
- receiving, by a processing device, a query condition of a user;
in response to reception of the query condition of the user, determining context information of a position where the user locates; and
according to the query condition of the user and the context information of the position where the user locates, querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user;
wherein the query condition of the user comprises an expected reachable distance, representing the maximum distance of spatial events to be searched by the user to a position where the user locates;
wherein querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user comprises;
according to the query condition of the user and the context information of a position where the user locates, determining a remaining reachable distance, wherein the context information of a position where the user locates comprises a road where the user locates and the ending node thereof, and the remaining reachable distance indicates, in order to meet the expected reachable distance in the query condition of the user, the maximum distance of spatial events expected to be searched to the ending node of the road where the user currently locates; and
querying the index table according to the remaining reachable distance to obtain spatial events meeting the query condition of the user;
and wherein determining the remaining reachable distance comprises calculating a distance from a current position of the user to the ending node of the road where the user locates based on the road and the ending node thereof, subtracting the distance between the current position of the user and the ending node of the road from the expected reachable distance to obtain the remaining reachable distance.
1 Assignment
0 Petitions
Accused Products
Abstract
A method of querying spatial events in a vehicle network includes receiving, by a processing device, a query condition of a user; in response to reception of the query condition of the user, determining context information of a position where the user locates; and according to the query condition of the user and the context information of the position where the user locates, querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user.
19 Citations
12 Claims
-
1. A method of querying spatial events in a vehicle network, comprising:
-
receiving, by a processing device, a query condition of a user; in response to reception of the query condition of the user, determining context information of a position where the user locates; and according to the query condition of the user and the context information of the position where the user locates, querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user; wherein the query condition of the user comprises an expected reachable distance, representing the maximum distance of spatial events to be searched by the user to a position where the user locates; wherein querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user comprises; according to the query condition of the user and the context information of a position where the user locates, determining a remaining reachable distance, wherein the context information of a position where the user locates comprises a road where the user locates and the ending node thereof, and the remaining reachable distance indicates, in order to meet the expected reachable distance in the query condition of the user, the maximum distance of spatial events expected to be searched to the ending node of the road where the user currently locates; and querying the index table according to the remaining reachable distance to obtain spatial events meeting the query condition of the user; and wherein determining the remaining reachable distance comprises calculating a distance from a current position of the user to the ending node of the road where the user locates based on the road and the ending node thereof, subtracting the distance between the current position of the user and the ending node of the road from the expected reachable distance to obtain the remaining reachable distance. - View Dependent Claims (2, 3)
-
-
4. An optimized querier for querying spatial events in a vehicle network, comprising:
-
a receiving unit, implemented by a processing device, configured to receive a query condition of a user; a context information collector, configured to, in response to reception of the query condition, determine context information of a position where the user locates; a spatial event querier, configured to, according to the query condition of the user and the context information of the position where the user locates, query an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user; wherein the query condition of the user comprises an expected reachable distance, representing the maximum distance of spatial events to be searched by the user to a position where the user locates; wherein querying an index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user comprises; according to the query condition of the user and the context information of a position where the user locates, determining a remaining reachable distance, wherein the context information of a position where the user locates comprises a road where the user locates and the ending node thereof, and the remaining reachable distance indicates, in order to meet the expected reachable distance in the query condition of the user, the maximum distance of spatial events expected to be searched to the ending node of the road where the user currently locates; and querying the index table according to the remaining reachable distance to obtain spatial events meeting the query condition of the user; and wherein determining the remaining reachable distance comprises calculating a distance from a current position of the user to the ending node of the road where the user locates based on the road and the ending node thereof, subtracting the distance between the current position of the user and the ending node of the road from the expected reachable distance to obtain the remaining reachable distance. - View Dependent Claims (5, 6, 7, 8, 9, 10)
-
-
11. A vehicle network server, comprising:
-
a database system and an optimized querier for querying spatial events in a vehicle network; wherein the database system comprises; a spatial event change receiver, configured to receive change of spatial events; a road network information extractor, configured to receive a road map and extract road network information from the road map; and a reachable distance calculating and index maintaining unit, configured to dynamically maintain an index table recording correspondence between terminal nodes of roads in the road map and spatial events according to the change of the spatial events and the road network information, the index table recording correspondence between terminal nodes of roads in the road map and spatial events by setting index reachable distances, and for the terminal nodes of the roads, recording all spatial events having reachable distances to those terminal nodes falling into the index reachable distances; wherein the optimized querier comprises; a receiving unit, implemented by a processing device, configured to receive a query condition of a user; a context information collector, configured to, in response to reception of the query condition, determine context information of a position where the user locates; a spatial event querier, configured to, according to the query condition of the user and the context information of the position where the user locates, query the index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user; wherein the query condition of the user comprises an expected reachable distance, representing the maximum distance of spatial events to be searched by the user to a position where the user locates; wherein querying the index table recording correspondence between terminal nodes of roads in a road map and spatial events to obtain spatial events meeting the query condition of the user comprises; according to the query condition of the user and the context information of a position where the user locates, determining a remaining reachable distance, wherein the context information of a position where the user locates comprises a road where the user locates and the ending node thereof, and the remaining reachable distance indicates, in order to meet the expected reachable distance in the query condition of the user, the maximum distance of spatial events expected to be searched to the ending node of the road where the user currently locates; and querying the index table according to the remaining reachable distance to obtain spatial events meeting the query condition of the user; and wherein determining the remaining reachable distance comprises calculating a distance from a current position of the user to the ending node of the road where the user locates based on the road and the ending node thereof, subtracting the distance between the current position of the user and the ending node of the road from the expected reachable distance to obtain the remaining reachable distance. - View Dependent Claims (12)
-
Specification