Summary of the invention
Fundamental purpose of the present invention is the method that the quick playback of a kind of historical track is provided, and can improve playback speed.
The present invention proposes the method for the quick playback of a kind of historical track, comprising:
Obtain the positional information of historical track;
Inquire about the off-set value of said positional information;
Calculate actual position information according to said positional information and off-set value, according to said actual position information location.
Preferably, saidly calculate positional information accurately according to said positional information and off-set value, according to said positional information accurately location and show that historical track comprises:
Extract a positional information of said historical track;
Off-set value according to said positional information is corresponding is calculated actual position information;
Said actual position information is marked in map;
Judging whether said positional information is the last item positional information of historical track, is then to finish; Go on foot a positional information obtaining said historical track otherwise return.
Preferably, said positional information comprises latitude and longitude information.
Preferably, also comprise before the off-set value of the said positional information of said inquiry:
Through preset correction matrix computations off-set value.
The present invention also proposes the device of the quick playback of a kind of historical track, comprising:
Acquisition module is used to obtain the positional information of historical track;
Enquiry module is used to inquire about the off-set value of said positional information;
The compute location module is used for calculating actual position information according to said positional information and off-set value, according to said actual position information location.
Preferably, said compute location module comprises:
Extraction unit is used to extract a positional information of said historical track;
Computing unit is used for calculating actual position information according to the corresponding off-set value of said positional information;
The mark unit is used for said actual position information is marked in map;
Judging unit is used to judge whether said positional information is the last item positional information of historical track, otherwise returns the positional information that extraction module extracts said historical track.
Preferably, said positional information comprises latitude and longitude information.
Preferably, said device also comprises:
The calculations of offset module is used for through preset correction matrix computations off-set value.
The method and apparatus of the quick playback of a kind of historical track that the present invention proposes, the positional information while rectifying a deviation after the mark correction has improved the speed of historical track playback on map.
Embodiment
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.
With reference to Fig. 1, method one embodiment of the quick playback of historical track of the present invention is proposed.Wherein, this method can comprise:
Step S101, obtain the positional information of historical track;
The off-set value of step S102, the said positional information of inquiry;
Step S103, calculate actual position information according to said positional information and off-set value, according to said actual position information location.
With reference to Fig. 2, above-mentioned steps S103 can comprise:
Step S1031, obtain a positional information of said historical track;
Step S1032, calculate actual position information according to the corresponding off-set value of said positional information;
Step S1033, said actual position information is marked in map;
Step S1034, judging whether said positional information is the last item positional information of historical track, is then to finish; Otherwise return step S1031.
Present embodiment is applicable to various navigator such as global positioning system apparatus, the mobile phone with navigation feature or personal digital assistant etc.When the user carries out path navigation through above-mentioned navigator; Navigator is noted each positional information in the path of passing through automatically to memory module; When needs during to the playback of passing path, from this memory module, obtain all positional informations of historical track, the indication positional information is often referred to the latitude and longitude information of each position on the historical track etc. here; Above-mentioned positional information also is the GPS locating information simultaneously, the positional information that promptly receives from GPS.
Above-mentioned in the present embodiment navigator can be the equipment that rear-view mirror system etc. can navigate, and this memory module can be arranged at and can carry out vehicle service platform of communication etc. by this rear-view mirror system.
When needs carry out the historical track playback, at first need obtain the positional information that this section needs the playback history track, and through preset correction matrix computations off-set value.Then, from article one positional information of this historical track, travel through all positional informations and rectify a deviation.This correction can be latitude and longitude information and the off-set value according to record, calculates accurate latitude and longitude information.
With reference to Fig. 3, in another embodiment of the present invention, also comprise before the above-mentioned steps S102:
Step S104, correction matrix computations off-set value through presetting.
One correction matrix can be set in advance, the side-play amount of positional information in the positional information of record GPS and the corresponding map.Through inquiry correction matrix, how many positions are the positional information that can obtain each GPS need squint to meet the positional information of map.The correction matrix is obtained by certain inclined to one side algorithm that adds.After inquiring all corresponding side-play amounts of historical track, all side-play amounts are stored.
From the positional information of historical track, extract a positional information, the positional information that can be used for map according to this positional information and corresponding side-play amount accurately is data such as longitude and latitude, and these data are marked on map, accomplishes the reproduction of this positional information.Whether the positional information of judging said extracted last positional information of historical track, as not being, then continues to extract a positional information, and repeats the process of rectifying a deviation and marking, till the positional information mark of all GPS location finishes in historical track.
The method of the quick playback of above-mentioned historical track, but locate while rectifying a deviation, to locate again after finishing with respect to the whole corrections of the positional information of all historical tracks, its speed improves greatly; The playback of above-mentioned historical track all can realize on rear-view mirror system and vehicle service platform, and is convenient and practical; Especially on rearview mirror, realize, more can embody the advantage of its speed.
With reference to Fig. 4, device one embodiment of the quick playback of historical track of the present invention is proposed.Wherein, this device can comprise:
Acquisition module 10 is used to obtain the positional information of historical track;
Enquiry module 20 is used to inquire about the off-set value of said positional information;
Compute location module 30 is used for calculating actual position information according to said positional information and off-set value, according to said actual position information location.
With reference to Fig. 5, compute location module 30 comprises:
Extraction unit 31 is used to extract a positional information of said historical track;
Computing unit 32 is used for calculating actual position information according to the corresponding off-set value of this positional information;
Mark unit 33 is used for said actual position information is marked in map;
Judging unit 34 is used to judge whether said positional information is the last item positional information of historical track, is not to return the positional information that extraction module 31 extracts said historical track.
The device of present embodiment can be various navigator such as global positioning system apparatus, the mobile phone with navigation feature or personal digital assistant etc.When the user carries out path navigation through above-mentioned navigator; Navigator is noted each positional information in the path of passing through automatically to memory module; When needs during to the playback of passing path, from this memory module, obtain all positional informations of historical track, the indication positional information is often referred to the latitude and longitude information of each position on the historical track etc. here; Above-mentioned positional information also is the GPS locating information simultaneously, the positional information that promptly receives from GPS.
Above-mentioned in the present embodiment navigator can be the equipment that rear-view mirror system etc. can navigate, and this memory module can be arranged at and can carry out vehicle service platform of communication etc. by this rear-view mirror system.
When needs carry out the historical track playback, at first need obtain the positional information that this section needs the playback history track, and through preset correction matrix computations off-set value.Then, from article one positional information of this historical track, travel through all positional informations and rectify a deviation.This correction can be latitude and longitude information and the off-set value according to record, calculates accurate latitude and longitude information.
With reference to Fig. 6, in another embodiment of the present invention, said apparatus also can comprise: calculations of offset module 40 is used for through preset correction matrix computations off-set value.One correction matrix can be set in advance, the side-play amount of positional information in the positional information of record GPS and the corresponding map.Through inquiry correction matrix, how many positions are the positional information that can obtain each GPS need squint to meet the positional information of map.The correction matrix is obtained by certain inclined to one side algorithm that adds.After inquiring all corresponding side-play amounts of historical track, all side-play amounts are temporary in memory module.
From the positional information of historical track, extract a positional information, the positional information that can be used for map according to this positional information and corresponding side-play amount accurately is data such as longitude and latitude, and these data are marked on map, accomplishes the reproduction of this positional information.Whether the positional information of judging said extracted last positional information of historical track, as not being, then continues to extract a positional information, and repeats the process of rectifying a deviation and marking, till the positional information mark of all GPS location finishes in historical track.
The device of the quick playback of above-mentioned historical track, but locate while rectifying a deviation, to locate again after finishing with respect to the whole corrections of the positional information of all historical tracks, its speed improves greatly; The playback of above-mentioned historical track all can realize on rear-view mirror system and vehicle service platform, and is convenient and practical; Especially on rearview mirror, realize, more can embody the advantage of its speed.
The above is merely the preferred embodiments of the present invention; Be not so limit claim of the present invention; Every equivalent structure or equivalent flow process conversion that utilizes instructions of the present invention and accompanying drawing content to be done; Or directly or indirectly be used in other relevant technical fields, all in like manner be included in the scope of patent protection of the present invention.