Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of road positioning method, is intended to solve in the prior art have error because the used locating information of navigational system is originated, and makes navigational system have the problem that is positioned on the wrong path.
The embodiment of the invention is achieved in that a kind of road positioning method, said method comprising the steps of:
Receive locating information, calculate the bee-line of the anchor point in each bar road and the described locating information;
Filter out to the anchor point bee-line less than default road apart from threshold values, and the road that filters out pointed out;
Receive selection instruction, navigation object is navigated to described selection instruction road corresponding.。
Another purpose of the embodiment of the invention is to provide a kind of road locating device, and described device comprises:
The locating information processing module is used to receive locating information, calculates the bee-line of the anchor point in each bar road and the described locating information;
Road screening module, be used to filter out to the anchor point bee-line less than default road apart from threshold values, and the road that filters out pointed out;
The road locating module is used to receive selection instruction, and navigation object is navigated to described selection instruction road corresponding.
Another purpose of the embodiment of the invention is to provide a kind of navigator, comprises electronic map database, and described equipment also includes a road locating device, and described device comprises:
The locating information processing module is used to receive locating information, calculates the bee-line of the anchor point in each bar road and the described locating information;
Road screening module, be used to filter out to the anchor point bee-line less than default road apart from threshold values, and the road that filters out pointed out;
The road locating module is used to receive selection instruction, and navigation object is navigated to described selection instruction road corresponding.
Inventive embodiments is by receiving locating information, the bee-line of the anchor point in the compute location information and each bar road, filter out bee-line less than default apart from threshold values road and point out, after receiving selection instruction, navigation object is navigated to this selection instruction road corresponding.Like this, even if because there is error in the used locating information source of navigational system, also can make navigational system according on the correct road in user's selection location.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Inventive embodiments is by receiving locating information, the bee-line of the anchor point in the compute location information and each bar road, filter out bee-line less than default apart from threshold values road and point out, after receiving selection instruction, navigation object is navigated to this selection instruction road corresponding.
Fig. 1 shows the flow process of the road positioning method that the embodiment of the invention provides, and details are as follows.
In step S100, receive locating information.
Wherein, locating information comprises longitude, latitude, speed and direction.
In step S101, just selecting with the anchor point is the center, and the distance twice threshold values is the interior road collection of square area of the length of side.Wherein foursquare limit is parallel to warp or parallel.
In step S102, the bee-line of the anchor point in the compute location information and each bar road of primary election road collection, the screening bee-line is less than the default road apart from threshold values, and it is that example describes that the embodiment of the invention is 30 meters with the distance threshold values.
The information of road comprises road name, and identify label (Identify, ID), the set of node of wagon flow direction and orderly composition road.Wherein, the concrete nodal information of node correspondence comprises node ID, longitude, latitude etc.Because node is orderly, so adjacent node can be used for constituting the highway section; By asking the intersection point of anchor point, can further try to achieve intersection point and whether drop on the highway section to place, highway section straight line; If intersection point drops on the highway section, the distance of then using anchor point and intersection point is as the distance of anchor point to this highway section; If intersection point does not drop on the highway section, then with anchor point to the distance of highway section two end nodes the shorter one as the distance of anchor point to this highway section.Must there be minimum one in anchor point to a road in the distance in each highway section, be the bee-line of this anchor point to this road.
In step S103, judge that whether the road that filters out is more than one.If the road that filters out is more than one, execution in step S104; If the road that screens then returns step S101 not more than one.
In step S104, with the road prompting that filters out.
The concrete grammar that the embodiment of the invention is used is that these roads that screen are shown as a plurality of corresponding action buttons, clicks for the user, assigns selection instruction.
Wherein, demonstration after the near anchor point bee-line of the embodiment of the invention sorts less than the default road apart from threshold values, wherein, when sorting, sort with the probability size of the selected location of road, road location probability maximum is navigation object and most possibly navigates to this road.
In the embodiment of the invention, carrying out the distance conversion with the highway section direction (as then only selecting for use that and locating information angular separation not to be the direction at obtuse angle) at the shortest some place of the distance of anchor point and the differential seat angle absolute value of locating information direction on each road for two-way highway section, during conversion, change with following formula:
=30 meters of 90 degree;
After converting distance to, the distance of conversion is added to anchor point to the bee-line of each road,, is used to carry out mutual comparison to each other as the comprehensive distance of each road, the prompting of the short more road of comprehensive distance arrange in proper order forward more.After handling through above-mentioned method, come the road of front more, it be that the possibility of real roads at navigation object place is high more, can increase user's operating efficiency greatly, has reduced the first highlighted road of user number of times for confirmation.
In step S105, judge whether to receive selection instruction.
When not receiving selection instruction, execution in step S101.
When receiving user's selection instruction, execution in step S106.
In step S106, whether highlighted demonstration of the road of judge selecting.
When the highlighted demonstration of selecting of road, execution in step S108 then, otherwise execution in step S107.
In step S107, with the highlighted demonstration of selecting of road.Because the selected road of the last selection instruction and not highlighted, thus in this step the highlighted demonstration of this selecteed road, further confirm for the user, return execution in step 105 then.
In step S108, navigation object is navigated to the highlighted road new planning path of laying equal stress on.
The embodiment of the invention also provides a kind of navigator, comprises electronic map database, and this navigator also includes a road locating device, sees also Fig. 2.
Wherein, locating information processing module 11 receives locating information, the bee-line of the anchor point in the compute location information and each bar road.
Road screening module 12 filter out to the anchor point bee-line less than default road apart from threshold values, and the road that filters out pointed out.
In specific implementation process, road screening module 12 also comprises road order module 121 and road reminding module 122.
These road order module 121 near anchor point bee-lines show less than the default road apart from the threshold values back of sorting, and wherein, when sorting, sort with the probability size of the selected location of road.Road after road reminding module 122 will sort is pointed out, and in embodiments of the present invention, is to point out with the form of button.
Road selection instruction processing module 13 receives users' selection instruction, judges the whether highlighted demonstration of selecteed road.
If road selection instruction processing module 13 judges that the selection instruction road corresponding does not have highlighted demonstration, then control the highlighted display module 14 of road this selection instruction road corresponding is carried out highlighted demonstration, and then wait for the next selection instruction of reception.
If road selection instruction processing module 13 is judged the highlighted demonstration of selection instruction road corresponding, then control road locating module 15 navigation object is navigated to this selection instruction road corresponding.
The embodiment of the invention is by receiving locating information, the bee-line of the anchor point in the compute location information and each bar road, filter out bee-line less than default apart from threshold values road and point out, after receiving selection instruction, navigation object is navigated to this selection instruction road corresponding.Like this, even if because there is error in the used locating information source of navigational system, also can make navigational system according on the correct road in user's selection location.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.