The content of the invention
It is a primary object of the present invention to propose a kind of compensation method of vehicle driving trace and device, computer-readable deposit
Storage media, it is intended to which it is during turning to solve vehicle, and the time interval that positional information reports is longer, and line is unable to actual response
The problem of going out the trace information of vehicle.
To achieve the above object, first aspect of the embodiment of the present invention provides a kind of compensation method of vehicle driving trace, institute
Stating method includes step:
Obtain the code stream information that GPS reports;
The code stream information reported to the GPS decodes, and obtains the current azimuth letter of vehicle
Breath;
If the current azimuth of vehicle is higher than pre-configured orientation angle, by the positional information of the GPS
Report frequency to report frequency to adjust to second from first and report frequency.
Optionally, described second frequency is reported to report frequency more than described first.
Optionally, the GPS includes global position system GPS, GLONASS GLONASS, Galileo
Satellite navigation system GSNS and Beidou satellite navigation system BDS.
Optionally, if the current azimuth of the vehicle is higher than pre-configured orientation angle, by the GPS
Positional information report the frequency to report frequency to adjust to second to report and also include step after frequency from first:
The warning information that the reception server is sent, the GPS is adjusted according to the warning information received
Report frequency to report frequency to the 3rd.
Optionally, the described 3rd report frequency to report frequency more than described first and report frequency less than second.
Optionally, if the current azimuth of the vehicle is higher than pre-configured orientation angle, by the GPS
Positional information report the frequency to report frequency to adjust to second to report and also include step after frequency from first:
Retrieve the current azimuth information of vehicle;
If the current azimuth of vehicle is less than pre-configured orientation angle, the positional information of the GPS is adjusted
Report frequency to report frequency to first.
Optionally, if the current azimuth of the vehicle is higher than pre-configured orientation angle, by the GPS
Positional information report the frequency to report frequency to adjust to second to report and also include step after frequency from first:
The positional information of upload is shown on map, the location point that each positional information is shown on map connects
Pick up to form movement locus.
Optionally, methods described also includes step:
The movement locus is compared with the road net data in GPS navigation data, will be with road network
The location point of the inconsistent positional information of data automatic fitration Null Spot position, forms new movement locus as Null Spot position.
In addition, to achieve the above object, second aspect of the embodiment of the present invention provides a kind of compensation dress of vehicle driving trace
Put, the compensation device of the vehicle driving trace includes:Memory, processor and it is stored on the memory and can be described
The compensation program of the vehicle driving trace run on processor, the compensation program of the vehicle driving trace are held by the processor
The step of compensation method of the vehicle driving trace described in first aspect is realized during row.
Furthermore to achieve the above object, the third aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, institute
State the compensation program that vehicle driving trace is stored with computer-readable recording medium, the compensation program of the vehicle driving trace
The step of compensation method of the vehicle driving trace described in first aspect is realized when being executed by processor.
The compensation method of vehicle driving trace provided in an embodiment of the present invention and device, computer-readable recording medium, lead to
Cross decoding and obtain the current azimuth information of vehicle, if the current azimuth of vehicle be higher than pre-configured orientation angle, the raising whole world is defended
The positional information of star navigation system reports frequency;Solve solve vehicle be during turning, positional information report when
Between be spaced longer, line is unable to the problem of actual response goes out the trace information of vehicle;Improve Consumer's Experience.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize each embodiment of the present invention referring now to accompanying drawing.In follow-up description, using for representing
For the suffix of such as " module ", " part " or " unit " of element only for being advantageous to the explanation of the present invention, itself is not special
Fixed meaning.
It will be further appreciated that the term "and/or" used in description of the invention and appended claims is
Refer to any combinations of one or more of the associated item listed and be possible to combine, and including these combinations.
Be related in the present invention " first ", " second " etc. description be only used for describe purpose, and it is not intended that instruction or
Imply its relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, " first ", " second " are defined
At least one this feature can be expressed or be implicitly included to feature.In addition, the technical scheme between each embodiment can phase
Mutually combine, but must can be implemented as basis with those of ordinary skill in the art, when the combination of technical scheme occurs mutually
Contradiction will be understood that the combination of this technical scheme is not present when can not realize, also not application claims protection domain it
It is interior.
First embodiment
As shown in figure 1, first embodiment of the invention provides a kind of compensation method of vehicle driving trace, methods described includes
Step:
S11, obtain the code stream information that GPS reports.
In the present embodiment, the GPS include global position system GPS, GLONASS GLONASS,
Galileo satellite navigation system GSNS and Beidou satellite navigation system BDS.
S12, the code stream information reported to the GPS decode, and obtain the current azimuth of vehicle
Information.
As illustratively, by taking global position system GPS as an example, NMEA (National Marine that GPS is reported
Electronics Association, National Marine Electronics association) in code stream, wrapped in GPRMC (recommendation location information) item
The azimuth information of current driving is contained, has been decoded by the NMEA code streams reported to GPS, you can it is current to obtain the vehicle
Azimuth information.GLONASS GLONASS, galileo satellite navigation system GSNS and Beidou satellite navigation system BDS with it is such
As, therefore not to repeat here.
If the current azimuth of S13, vehicle is higher than pre-configured orientation angle, the position of the GPS is believed
Breath reports frequency to report frequency to adjust to second from first to report frequency.
In the present embodiment, described second frequency is reported to report frequency more than described first.
In the present embodiment, pre-configured orientation angle can be voluntarily configured by user, can be obtained according to different values is set
Different compensation precisions.
Still by taking global position system GPS as an example, decoded by the NMEA code streams reported to GPS, obtain the vehicle
After current azimuth information, can determine whether out vehicle is to be in turn condition.When vehicle is to be in straight travel state,
Report a GPS position information within every 15 seconds, the time interval reported is more relatively long, and vehicle can be learnt by smooth line
Driving trace.But turn condition is in vehicle, if still reporting a GPS position information, smooth line with every 15 seconds
Cannot actual response go out the trace information of vehicle.Therefore, after using the present embodiment, if it is determined that out vehicle is to be in
Turn condition, then a GPS position information was reported with every 3 seconds, that is, improve and report frequency.
It refer to shown in Fig. 2, in one embodiment, if the current azimuth of the vehicle is higher than pre-configured orientation angle,
Then the positional information of the GPS is reported frequency to report frequency to adjust to second from first to report frequency
Also include step afterwards:
The warning information that S14, the reception server are sent, the global navigation satellite is adjusted according to the warning information received
System reports frequency to report frequency to the 3rd.
In this embodiment, the described 3rd report frequency to report frequency more than described first and frequency is reported less than second
Rate.
As previously described, if it is determined that out vehicle is to be in turn condition, then a GPS location letter was reported with every 3 seconds
Breath, that is, improve and report frequency.But be not to report frequency higher, performance is better.The increase of frequency is reported, can no doubt be increased
Add GPS position information point, trace information is more smooth, but the information thing for reporting the increase of frequency that server can be caused to receive
Part frequency increases.And corresponding to server it is the vehicle individual of magnanimity, if reporting frequency too high, can not only to report thing
Part queue event of joining the team is too fast, can also increase the pressure of server process event, and extreme case may result in server and delay machine.
Therefore, in this embodiment, by the warning information obtained or the reception server is sent, adjust in time
Frequency is reported, on the one hand contributes to reduce the pressure of server process event, on the other hand reduces GPS and report frequency, money can be saved
Source.
In one embodiment, if the current azimuth of the vehicle is higher than pre-configured orientation angle, the whole world is defended
The positional information of star navigation system reports frequency to report frequency to adjust to second to report and also include step after frequency from first:
Retrieve the current azimuth information of vehicle;
If the current azimuth of vehicle is less than pre-configured orientation angle, the positional information of the GPS is adjusted
Report frequency to report frequency to first.
In this embodiment, by judging whether vehicle enters straight-line travelling again, and global navigation satellite system is adjusted
The positional information of system reports frequency, helps to reduce the pressure of server process event, reduces GPS and report frequency, can save
Resource.
In another embodiment, if the current azimuth of the vehicle is higher than pre-configured orientation angle, by the whole world
The positional information of satellite navigation system reports frequency to report frequency to adjust to second to report and also include step after frequency from first
Suddenly:
The positional information of upload is shown on map, the location point that each positional information is shown on map connects
Pick up to form movement locus.
In this embodiment, methods described also includes step:
The movement locus is compared with the road net data in GPS navigation data, will be with road network
The location point of the inconsistent positional information of data automatic fitration Null Spot position, forms new movement locus as Null Spot position.
In this embodiment, according to the historical track in the short time, automatic fitration Null Spot position, in the M of have collected over
After N bars point position information in second, with reference to the road net data in its track and GPS navigation data, automatically analyze
Null Spot position is filtered, the point position for ensureing to upload all is available point position, improves the accuracy of track of vehicle monitoring.
When the quantity of monitoring objective is changed into magnanimity from single, monitors magnanimity target in real time, Null Spot position is visually non-
Chang Rongyi forms interference, and in the research carried out to magnanimity historical track, when filtering Null Spot position often consumes substantial amounts of
Between and amount of calculation.Present embodiment has used for reference the thought of Distributed Calculation, and its track is combined during the data of bleeding point position
With the road net data in GPS navigation data, filtering Null Spot position is automatically analyzed, ensures the point position uploaded all
It is available point position, eliminates Null Spot position at once, the application after being substantially increases efficiency.
For further explaination the present embodiment, now it is described in detail by taking global position system GPS as an example:
For vehicle in straight-line travelling, global position system GPS reports a GPS position information in every 15 seconds.
In real time, the code stream information that global position system GPS reports, and the code reported to global position system GPS are obtained
Stream information is decoded, and obtains the current azimuth information of vehicle.If if the current azimuth of vehicle is higher than 5 degree, by the whole world
The positional information of position system GPS reports frequency, reported a GPS position information to adjust to every 3 seconds from every 15 seconds and reports one
Secondary GPS position information.
If after this, judging that vehicle enters straight-line travelling again by azimuth information, then return on every 15 seconds
Report a GPS position information.
If receiving the warning information of server transmission, the positional information of global position system GPS is reported into frequency
Rate, reported a GPS position information to adjust to every 10 seconds from every 3 seconds and report a GPS position information.
The compensation method of vehicle driving trace provided in an embodiment of the present invention, the current azimuth of vehicle is obtained by decoding
Information, if the current azimuth of vehicle is higher than pre-configured orientation angle, the positional information for improving GPS reports
Frequency;It is during turning to solve solution vehicle, and the time interval that positional information reports is longer, and line is unable to actual response
The problem of going out the trace information of vehicle;Improve Consumer's Experience.
Second embodiment
Reference picture 2, Fig. 2 provide a kind of compensation device of vehicle driving trace, the vehicle for second embodiment of the invention
The compensation device 20 of driving trace includes:Memory 21, processor 22 and it is stored on the memory 21 and can be at the place
The compensation program of the vehicle driving trace run on reason device 22, the compensation program of the vehicle driving trace is by the processor 22
During execution, the step of compensation method for realizing vehicle driving trace as described below:
S11, obtain the code stream information that GPS reports;
S12, the code stream information reported to the GPS decode, and obtain the current azimuth of vehicle
Information;
If the current azimuth of S13, vehicle is higher than pre-configured orientation angle, the position of the GPS is believed
Breath reports frequency to report frequency to adjust to second from first to report frequency.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
Described second reports frequency to report frequency more than described first.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
The GPS includes global position system GPS, GLONASS GLONASS, Galilean satellite and led
Boat system GSNS and Beidou satellite navigation system BDS.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
If the current azimuth of the vehicle is higher than pre-configured orientation angle, the position of the GPS is believed
Breath reports frequency to report frequency to adjust to second to report and also include step after frequency from first:
The warning information that S14, the reception server are sent, the global navigation satellite is adjusted according to the warning information received
System reports frequency to report frequency to the 3rd.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
Described 3rd reports frequency to report frequency more than described first and reports frequency less than second.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
If the current azimuth of the vehicle is higher than pre-configured orientation angle, the position of the GPS is believed
Breath reports frequency to report frequency to adjust to second to report and also include step after frequency from first:
Retrieve the current azimuth information of vehicle;
If the current azimuth of vehicle is less than pre-configured orientation angle, the positional information of the GPS is adjusted
Report frequency to report frequency to first.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
If the current azimuth of the vehicle is higher than pre-configured orientation angle, the position of the GPS is believed
Breath reports frequency to report frequency to adjust to second to report and also include step after frequency from first:
The positional information of upload is shown on map, the location point that each positional information is shown on map connects
Pick up to form movement locus.
When the compensation program of the vehicle driving trace is performed by the processor 22, for realizing vehicle as described below
The step of compensation method of driving trace:
The movement locus is compared with the road net data in GPS navigation data, will be with road network
The location point of the inconsistent positional information of data automatic fitration Null Spot position, forms new movement locus as Null Spot position.
For further explaination the present embodiment, now it is described in detail by taking global position system GPS as an example:
For vehicle in straight-line travelling, global position system GPS reports a GPS position information in every 15 seconds.
In real time, the code stream information that global position system GPS reports, and the code reported to global position system GPS are obtained
Stream information is decoded, and obtains the current azimuth information of vehicle.If if the current azimuth of vehicle is higher than 5 degree, by the whole world
The positional information of position system GPS reports frequency, reported a GPS position information to adjust to every 3 seconds from every 15 seconds and reports one
Secondary GPS position information.
If after this, judging that vehicle enters straight-line travelling again by azimuth information, then return on every 15 seconds
Report a GPS position information.
If receiving the warning information of server transmission, the positional information of global position system GPS is reported into frequency
Rate, reported a GPS position information to adjust to every 10 seconds from every 3 seconds and report a GPS position information.
The compensation device of vehicle driving trace provided in an embodiment of the present invention, the current azimuth of vehicle is obtained by decoding
Information, if the current azimuth of vehicle is higher than pre-configured orientation angle, the positional information for improving GPS reports
Frequency;It is during turning to solve solution vehicle, and the time interval that positional information reports is longer, and line is unable to actual response
The problem of going out the trace information of vehicle;Improve Consumer's Experience.
3rd embodiment
Third embodiment of the invention provides a kind of computer-readable recording medium, is deposited on the computer-readable recording medium
The compensation program of vehicle driving trace is contained, the compensation program of the vehicle driving trace realizes that first is real when being executed by processor
The step of applying the compensation method of the vehicle driving trace described in example.
Computer-readable recording medium provided in an embodiment of the present invention, the current azimuth of vehicle is obtained by decoding and believed
Breath, if the current azimuth of vehicle be higher than pre-configured orientation angle, the positional information for improving GPS reports frequently
Rate;It is during turning to solve solution vehicle, and the time interval that positional information reports is longer, and line is unable to actual response and gone out
The problem of trace information of vehicle;Improve Consumer's Experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, article or device.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.